# Tag Info

60

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.

32

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-c [ to prompt you for a ...

24

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 offer ...

19

The following macro \midruleV sets a \midrule every five rows. Counter midruleV is used to count the rows inside a block of five rows. Therefore the counter is reset before the table and after the header, because the header does not count. The larger problem is finding a place to put \midruleV. The example puts it after the last cell by escaping the current ...

19

In the menu, select User > Customize Completion. Then add \begin{flalign} to the list of commands. You can also specify arguments using @, e.g \foobar{@}.

18

When using VimTeX, you can type ]] in insert mode to close the current environment.

17

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 ...

16

For that, you will have to make use of a custom .cwl file (which, afaik, requires a recent version of TeXstudio). Create a file, let's say mycwl.cwl, in either %appdata%\texstudio\completion\user or .config/texstudio/completion/user according to your system. In it, place the following line: \alternative{label}#r and save it. Technically, you can put ...

15

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 ...

14

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 I ...

13

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

11

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. As of TeXstudio 2.10.8 the mechanism for searching cwl files has been refined. TXS searches for cwl ...

10

Made comment into answer which satisfied the OP Options-->Configure Texmaker-->Editor--> Is completion checked on and add .bib extension \addbibresource{biblatex-examples.bib}. Check if you can see .bib file in Structure on left side pane or open the .bib file with Texmaker from File menu.

9

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): (add-...

9

(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, \\documentclass{\...

9

Here's an option using the pgfplotstable package. The idea is to read the data into a macro (called edytable below) and then typeset it using the command \pgfplotstabletypeset[ columns/Student Id/.style={string type}, columns/Name/.style={string type}, every head row/.style={ before row={% \toprule ...

8

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 # \mycommand{date}{...

8

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 ...

8

Completion and syntax check is both based on so called cwl files, which contain the definitions of the commands. TXS ships with cwls for some frequently used packages but by far not for all. If there is no cwl for a package yet, TXS tries to create one by extracting the information from the TeX source of the package. By default these commands are marked as ...

7

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.

7

This is a misunderstanding: LaTeX doesn't help you to write your text, which is the job of the editor. I'm quite confident that such a thing (capitalize each first letter after a dot) can be achieved with emacs or vim. Word is all and everything in one: editor, typesetting machine, spreadsheet and so on and does nothing really well (OK, millions of people ...

7

As of time of writing, I do not think there is an option to delete corresponding brackets automatically (which is a shame :o). There is a way to do this via a macro/user script in TeXstudio, but is slightly more involved, so I'll lay it out in a step-by-step manner. User script for "Automatically deleting corresponding brackets" Notes on use: The ...

7

I suggest to use the cleveref package instead of manually defining commands for all possible types of labels. cleveref will automatically insert the appropriate string based on the type of label you are referring to texstudio automatically suggest possible labels \documentclass{article} \usepackage{amsmath} \usepackage[capitalise]{cleveref} \begin{...

7

Your problem is perfectly answered by an (unfortunately) deleted answer by @Chris. As you cannot yet see deleted answers, I'll quote it here in a community wiki post: I think that your problem is that texstudio will not autocomplete citekeys when you use commands other than \cite? If you want to add \citep to the commands that are linked to your ...

6

In TeXstudio (formerly called TexmakerX) you can easily do that as it allows you to define custom keyboard shortcuts. Under "Options" -> "Configure TeXstudio..." -> "Shortcuts" -> "Editor" -> "Basic Key Mapping", you can redefine the shortcuts for the commands "Next placeholder" and "Previous placeholder" or "Next placeholder or one word right" and "...

6

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 biblatex (+...

6

TeXstudio and TeXworks take a somewhat different approach to auto-complete information, at least in part as the two programs have slightly different aims (TeXstudio is a LaTeX editor, TeXworks is a TeX editor and so has fewer LaTeX-specific parts at least in the core). That said, it certainly would be possible to use the auto-complete information from ...

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