Tag Info

Hot answers tagged

14

In your TeXnicCenter installation folder and subfolders look out for xml files, such as base.xml and math.xml. Edit these files or create your own xml file. Some example lines for align autocompletion: <lxEnvironment name="align" parameters="1" desc="Math environment" icon="math.bmp" index="10" ...


13

Start typing only the name of the environment, e.g. docu, press the code-completion shortcut, and TexnicCenter will create it with \begin, and appropriate braces. I've been tripped off by this in the beginning as well, but apparently it's supposed to save more typing.


11

AUCTeX has autocompletion mechanisms different from most of the other LaTeX editors. In Emacs, when TeX-latex-mode is activated, the sequence Ctrl-c Ctrl-e (the - means that the second key has to be pressed while holding the first, while the space implies the release of both keys before the next combination) opens the mini-buffer dialog interface at the ...


10

In Windows, WinEdt offers this feature. You write few letters of a word and then press Ctrl + Enter. A pop-up window will show you the possible list of words as in the following figure. Double clicking on the desired word will insert it in the place. Sublimetext Sublime text too has this feature. But I found that its word completion is not as ...


10

It's a feature. To save typing, TeXnicCenter additionally inserts \begin{ when environments are completed. This may be confusing if you don't know it. With this knowledge, it should be easy to use, as mindcorrosive said. Though, you could change this behavior if you like. To do this, go to TeXnicCenter directory (C:\Program Files\TeXnicCenter for instance), ...


10

It does have auto-complete powers. (It has more than any one person knows about.) Try, e.g., C-c C-m (for calling macros like \footnote or \ref); type the letter 's' and hit TAB. The rest will become clear. C-c C-e will prompt for for starting new environments. And so on. If you use AUCTeX with reftex, try things like C-[ to prompt you for a ...


9

Here are a few examples of what I put in the field: \makeatletter (see What do \makeatletter and \makeatother do?) \makeatother \documentclass{@} (Texmaker only has \documentclass[@]{@} preconfigured) \cref{#label#} (for the cleveref package) \Cref{#label#} \qroof{@}.@ (for the qtree package) When you start typing one of these commands, Texmaker will ...


9

Under Options → Configure TeXstudio → Adv. Editor → Special options the option Auto Complete Parentheses dis-/enables the Auto-Completion of all braces, brackets and parentheses. The Tab Adv. Editor is visible after the checkbox Show Advanced Options is checked.


8

I raised this issue on the TeX on OS X mailing list a few years ago, and received the following reply from Herb Schulz, who created the basic autocompletion file for TeXShop: Well, they will show up depending upon your input encoding. You are supposed to replace them by using the Next/Previous Mark commands to move and select them and replace them. When ...


8

Any LaTeX editor can accommodate this style of auto-completion by means of macro definitions. It is probably the fastest way to perform this without having to switch from your existing editor to a new/different one. In my opinion, it is flexible, transferable and accommodates a host of variability that you may require based on (say) conditional support from ...


7

Yes, this is a bug and will be fixed in WinEdt 8.2. In the meantime, you can get things working properly in this way. Open Tree.ini from the "Options Interface". Do the following global replacement with Regular Expressions on: Search for: <\(0@{ }\)MACRO="GlobalReturn;\(1*\)GlobalMark;" Replace with: <\0MACRO="GlobalMark(1);GlobalReturn;\1" ...


6

You can use physics package and exploit its expval (or the short ev) command: \documentclass{article} \usepackage{physics} \begin{document} $\langle x \rangle $ $\langle x^{A} \rangle$ $\expval{x}$ $\ev*{x^{A}}$ $\expval{x^{A}}$ $\ev{x^{A}}$ \end{document} Or use mathtools package and define a macro \DeclarePairedDelimiter\ev{\langle}{\rangle}% ...


6

The correct place to fix this is the regular expressions that RefTeX uses to parse the BibTeX file. However, in the version of RefTeX (4.31) that I am looking at it seems that [{(] shows up every place you would expect. EDIT: After poking at it a bit, it seems the issue is that in reftex.el ( and ) are defined as punctuation is the reftex-syntax-table and ...


6

Something that is pretty much as useful is to type nameofenvironment then F5 which gives \begin{nameofenvironment} \end{nameofenvironment}<++> and puts the cursor in the body of the environment. You can leave the environment easily by pressing CTRL J


5

Qrrbrbirlbel is exactly right: They probably are stored in the .exe. Proposal: Copy both xspace.cwl and hyperref.cwl to the %APPDATA%\texstudio\ folder and add the missing macros. Entries in %APPDATA%\texstudio\ override the ones integrated in TeXstudio. Also, I encourage you to share your updated cwl files, so we can integrate them for the next ...


5

Besides the choices listed by Robert in his answer, which probably won't work in the latest versions of WinEdt (version 6 is quite obsolete now and has not full support for Unicode), WinEdt has a built-in completion feature. Execute the command 'Complete Word' (Ctrl+Enter) in the Tools menu and WinEdt will display a dialog with a list of possible ...


5

TeXnicCenter allows for the creation of "user text modules" that are initiated via a shortcut. To insert your own module, follow Insert>Own Text Modules>Manage Text Modules. Now you can enter a new one called (say) Separator: Once you've established the correct "before cursor" and "after cursor" combination, it is accessible via the menu selection: Or ...


5

AUCTeX has to be configured to parse files so that it can extract the macros you want. Make sure you have the variable TeX-parse-self set to t, so that it scans the current file for macros defined there, set TeX-auto-regexp-list to TeX-auto-full-regexp-list so it looks for as many macros as it can, and TeX-auto-parse-length to 999999 so it handles long ...


5

Emacs can also do this, for example using Toby Cubitt's predictive mode. There are a bunch of other modes that can also help, as well. Other options include AutoComplete and company-mode Even more options are listed in the Emacswiki Completion Category page


4

Adding (add-hook 'find-file-hook 'predictive-mode) to your .emacs file should be enough to turn it on everywhere (leave a comment if you don't know what this is). If you want it only on latex-mode, do this instead: (add-hook 'LaTeX-mode-hook 'predictive-mode)


4

If you are editing a file with .tex extension, then emacs should automatically enter latex-mode (you will see (LaTeX) in the status bar). In this mode, C-c C-o calls latex-insert-block which will prompt for the block name and arguments, with history and automatic name suggestion. This will insert both the beginning and end commands. If you already typed ...


4

As you mention AUCTeX has an auto-complete function which per default is bound to M-Tab which conflicts with many window managers. The function is called TeX-complete-symbol and you can use it via M-x TeX-complete-symbol or bind it to any other key you prefer. By inserting the following into your .emacs you bind it to C-Tab in LaTeX-mode (i.e. AUCTeX): ...


4

By adding these three lines \makeatletter \@ifpackageloaded{biblatex}{\addbibresource{literatur.bib}}{\bibliography{literatur}} \makeatother instead of just \addbibresource{} TeXnicCenter believes you are using \bibliography{} and integrates it accordingly into the GUI and for autocomplete. This solution has the beauty of working with both ...


4

I would use a TeXstudio macro for something like this. Go to Macros ⇒ Edit Macros.... Click + Add. Enter a name, e.g. My table. This will appear in the macros menu. Enter a trigger. I like to use things like MYTABLE, which you’re unlikely to use as normal text. When you type this trigger anywhere in your document, it will be replaced by your table ...


4

This can be achieved by creating a custom auto completion file. Such a file has the extension cwl and (on my systom) has to be saved under ~/.kde4/share/apps/kile/completion/tex. The # is a comment char in such a file. In such a file you write the commands with the text you want to appear in the arguments. # custom auto-completion file # ...


4

(comment converted to answer) You can backup all of your settings via Options→Settings File→Save a copy of the settings file and restore them with Replace the settings file by a new one in the same menu. The .ini file you get as a backup contains the custom autocomplete entries; in my file, it was line 27: Editor\UserCompletion=\\ex, ...


3

I use TeXstudio also. I don't know if this is what you want but: Menu options>configure. Then you can edit your completion tools. Disable the option use placeholders (or some similar, I don't use it in English). See the image below and the option above the field with 100%.


3

According to About TeXShop (available here) "Auto completion is user configurable. To configure, open the file ˜/Library/TeXShop/Keyboard/autocompletion.plist with TeXShop. Read the comments at the top, edit appropriately to redefine Landweber’s choices or add your own, and save. Be sure to edit and save in UTF-8 format if you use Unicode ...


3

For things like this you should always check WinEdt's community site. There you'll find two macros for auto-completion (however, they both will only search in the current file, not in the current directory): complete will incrementally search backwards for words starting with the same letters as the current word; you can invoke the macro multiple times ...


3

As of recently, AucTEX seems to work out of the box with Predictive Mode, providing "full "Intellisense" features for writing LaTeX documents in Emacs." (See the AucTeX entry on the EmacsWiki for more info). I have not tried this yet, but surely will when I get home in the evening.



Only top voted, non community-wiki answers of a minimum length are eligible