Hello,
I'm using TeXstudio 2.5.1 with Win7-64.
What I'm really missing is the auto completion of (long) words, the user has already written in the current document. Writing s.th. like 'trans-impedance-amplifier' a dozen times in a text is awful. Writing it out once and later just typing 'tran' and pressing Enter would be really alleviative. Surely it would make sense to limit the list of suggested words to entries longer than 5..6 characters (maybe adjustable in the options).
I know that using a word very often is not a good writing style, but in technical/science texts it's not usual to use synonyms.
Anonymous
I don't think such a feature is necessary. You are better to use instead personal macros, such as:
and then make use of TXS features about personal macros (see § 4.5 Personal macros of TXS manual).
IMHO, you should even use glossary and/or acronym for such af technical term. See for instace glossaries package.
Personally, I would not use
\newcommand
for abbreviation because it reduces readability of the text.But User Macros/Scripting can be really helpful here. Below is a script for autocompletion of a fixed word list:
Once you've created this macro, you can change it's shortcut to e.g. Shift-Enter
Options -> Configure -> Shortcuts -> Macros
Btw. you could even set the shortcut to Enter, however then you'd have to insert the newline in case no replacement was found (add
editor.write("\n")
to the last if statement).You should ;) The big advantage is that
\newcommand
lets you easily change the way such terms are typeset. For instance, if you decide just the day before the dead line to typeset "trans impedance amplifier" rather than "trans-impedance-amplifier", you need to change it in a single location. If you decide just the hour before the dead line to typeset "trans impedance amplifier" in red rather than in black, it is still easy, quick and "errorless" to do it.I must admit the macro name I used was not that clear (2 first letters of each word of "trans-impedance-amplifier") but it was just an example.
Moreover, reading quite often such a long term makes the reader tired and doesn't increase readability. By contrast, clear acronyms with easy to find definitions are easier to read.
Well, I think it's personal taste :). I know that some people use \newcommand that way. I do this myself for chemical formulas. For plain words I think it is cracking a nut with a sledgehammer. (Concerning the change argument: This happens quite rarely and in many cases you can go search-replace, if required with a regexp.) But I don't want to start an argument about this.
\Of \course \I \do \not \proceed \that \way \for \every \plain \word :) But for long, error-prone and technical ones, I'm convinced it is not cracking a nut with a sledgehammer. (And, once again, I'm convinced an acronym should be used in the present case.)
In the precise case of this long expression with the minus symbols, I'm not so sure: maybe the original poster will decide to remove them because of the numerous overfull hbox it will probably generate.
Except that, precisely because of the error-prone nature of such a long term, some occurrences of it may be missed when searching-replacing because they are not properly spelled.
The same for me ;)
Our spellchecker protects me from this ;)
Even for words as 'trans-impedance-amplifier'? ;)
Another argument against search-replace: if you deal with master and slave files, you'll need to proceed in each slave files.
Search-replace across multiple files is indeed an issue that could be improved. I currently use Notepad++ for this.
Indeed :) Nevertheless it would be longer to type than a shortcut or a trigger assigned to a personal macro and, also, such a feature as requested by the OP would be annoying because intrusive.
Could be nice.
if there weren't these minus symbols in the name, you could just press
ctrl+space to complete it...
I doubt many words have them