Questions tagged [auto-completion]

Auto-completion is a feature in (La)TeX source code editors that predicts the (La)TeX commands close to the command being typed to eliminate the need for typing frequently used commands. If your question concerns the functionality of specific editors (e.g., {texstudio}, {emacs}), include them as tags as well.

Filter by
Sorted by
Tagged with
55 votes
1 answer
23k views

TeXStudio : Disable auto-completion of parentheses

I cannot stand the auto-completion of TeXStudio (formerly TexMakerX) regarding parentheses, braces, etc. I agree auto-completion is useful sometimes, but here it does just not work as I would like. ...
redfiloux's user avatar
  • 887
38 votes
4 answers
19k views

Does AucTeX Autocomplete?

The quick start guide for AUCTeX says As nearly everywhere in AUCTeX, you can use the TAB or SPC key to get a list of available level names, and to auto-complete what you started typing. Which ...
Awnani Maus's user avatar
28 votes
6 answers
12k views

Shortcut for inserting matching \end{something} in VIM

I remember some time ago I always used a shortcut in VIM that allowed me to type this (<X> is indication of the location of the cursor): ... rest of document ... \begin{<ENVIRONMENT>} ...
pancake's user avatar
  • 381
23 votes
2 answers
3k views

Add \midrule Every 5 Lines Automatically

I wrote a table listing scores of 40 students using booktabs package. How to write midrule command automatically every 5 rows? \documentclass{article} \usepackage{booktabs} \begin{document} \begin{...
Edy Jo's user avatar
  • 841
22 votes
4 answers
5k views

TeXstudio: Don't autocomplete "content..." in block environments

Each time I use autocompletion in TeXstudio for a block environment, e.g. \begin{itemize} content... \end{itemize} the "content..." is automatically inserted. Is it possible to disable that? It ...
Augustin's user avatar
  • 5,715
19 votes
1 answer
12k views

Customize auto-completion in Texmaker

How can I work with customize completion? I want to add some new auto-completion but I don't know How the wizard works. It's here: User>Customize Completion I don't know what should be writen in the ...
Hoseyn Heydari's user avatar
19 votes
1 answer
11k views

How to add new auto-complete options in TeXnicCenter?

When I type "ite" in TeXnicCenter, I see the autocomplete option: \begin{itemize} \item \end{itemize} Pressing ctrl+space will activate the auto-completion. How do I add additional auto-...
willem's user avatar
  • 2,341
18 votes
1 answer
4k views

Why does TeXShop add a dot after autocomplete

Why does TeXShop add a dot after auto-completing an environment? An example is shown in the following image: I'm referring to the dot after \end{itemize}. If I don't delete it pdflatexmk can not ...
Saaru Lindestøkke's user avatar
17 votes
1 answer
20k views

How can I make texmaker autocomplete commands that it doesn't already autocomplete?

When I write \begin{ in texmaker, I want it to suggest flalign} as a possible choice for autocompletion. At the moment, texmaker doesn't complete \begin{flalign} automatically; as a result, it also ...
RidableCthulu's user avatar
15 votes
5 answers
6k views

Confusing code auto-completion in TeXnicCenter yields double \begin

I have experience in programming Python in NetBeans and using the code hints with Ctrl+Space or Tab is a breeze. Here is my experience with using the code hints in TeXnicCenter: When I type the ...
Kit's user avatar
  • 16.4k
14 votes
2 answers
5k views

Configuring auto-completion with TeXstudio

TeXstudio does a pretty good job with autocompletion. For example, when I type \eqref{, it already comes with suggestions, see the example below. However, suppose that I don't want to use \eqref but ...
EdG's user avatar
  • 429
14 votes
2 answers
6k views

Get emacs to automatically insert \end{} commands after a \begin{} command

I've recently switched from Kile to Emacs/AUCTeX for LaTeX editing. I like AUCTeX a lot more in general, in part because I've put a lot of effort into learning Emacs really well. One feature I really ...
Dan's user avatar
  • 869
13 votes
6 answers
13k views

IDE with AutoCompletion?

I was looking for an Latex editor that has an auto completion function. Is there any available? I thought about auto complete suggestion for common commands like for example defining chapters and ...
RoflcoptrException's user avatar
13 votes
2 answers
23k views

Automatic completion of common functions in TeXShop?

Is there a way to allow TeXShop complete common functions to avoid typing the same word multiple times ? For example, when you type \sub , TeXShop would automatically provide options to complete ...
Razor's user avatar
  • 2,691
12 votes
9 answers
5k views

Is there any LaTeX editor allowing you to tab through curly braces?

I tried several LaTeX editors with auto-completion functionality, but none of them make life easier. The problem is when they auto-complete a command, such as \frac, they usually add {} automatically ...
Siyuan Ren's user avatar
  • 1,519
12 votes
1 answer
7k views

Where does TeXstudio store the .cwl files for hyperref and xspace?

TeXstudio uses .cwl files for storing information about which macros are defined by which packages, one file per package. This information is used for autocompletion suggestions and highlighting of ...
doncherry's user avatar
  • 54.7k
11 votes
2 answers
9k views

How to use the autocompletion of enumerate in latexing (sublime text)

When I write \begin{enumerate} sublime text does not auto complete it to \begin{enumerate} \item \end{enumerate} like I would expect. Is there a way to achieve this?
Yoni Zohar's user avatar
11 votes
1 answer
462 views

How to get a list of valid commands?

I want to dynamically create a list of LaTeX commands that are valid in a particular file based on the packages used so that I can use them for code completion. Does LaTeX provide a method for ...
Zorgoth's user avatar
  • 371
10 votes
11 answers
5k views

Which editors can autocomplete any word from document?

Of course, any LaTeX editor will autocomplete common LaTeX commands and environments. Many (most?) let user add new commands to be autocompleted. However, in technical documents there will usually be ...
Alexey Romanov's user avatar
10 votes
2 answers
834 views

Looking for a good Emacs/AUCTeX setup for LaTeX3

I'm trying to switch my editor from vscodium (telemetry free VS Code) to Emacs. So far, I've installed AUCTeX and tried some things in a testdocument. For regular LaTeX code everything is fine. But ...
lukeflo's user avatar
  • 1,575
9 votes
1 answer
14k views

Autocomplete in TeXworks editor on TeX Live

How I can enable autocomplete option in TeXworks Editor (texlive-win.OS) for latex command, i.e., when I type \incl it automatically shows \includgraphics[]{} or when i type \begin{fi it can show (and ...
msabet's user avatar
  • 305
8 votes
6 answers
23k views

Auto-complete feature for Texmaker citations

I have Texmaker 4.1.1 and autocomplete feature for citations doesn't work in it. I have my .bib file in the correct directory (the same as my .tex file), use biblatex, have added the command \...
James's user avatar
  • 183
8 votes
3 answers
3k views

Getting \cite{} autocompletion to work in gvim with latex-suite on windows 7

I am using gvim (latest version) with latex-suite (latest version) on Windows 7 32 bits. This is a fresh install from my previous Ubuntu setup. Everything runs fine except for cite autocompletion, and ...
wiwh's user avatar
  • 297
8 votes
2 answers
1k views

Auto-completion for (only) \citet using bibtex and natbib using texmaker does not work

I am using bibtex and natbib for a scrartcl and the editor texmaker and everything works fine, except that I don't have auto-completion for (only) the command \citet. For \citep it works just fine. ...
menow's user avatar
  • 301
8 votes
2 answers
2k views

Position of cursor around brace when using auto-completion in TeXStudio

In using TeXStudio to edit my text file under Debian, I have a problem in locating the cursor while using the auto-completer to complete a pair of braces. There is a little box frame holding the place ...
azhi's user avatar
  • 579
8 votes
1 answer
3k views

How to disable auto-complete braces in TEXStudio?

I want to disable auto-complete for braces in TeXstudio. In its simplest form, when I type { I do not want it to automatically add a }. When it does this, many times I end up deleting the brace, ...
Curtis's user avatar
  • 81
7 votes
1 answer
2k views

Backup of user-defined entries of autocompletion in Texmaker?

Where does Texmaker store the user-defined entries for the autocompletion feature? I'd like to back up (as well as export) my own entries...
jub0bs's user avatar
  • 59k
7 votes
1 answer
885 views

Argument names for autocompletion in Kile

Let say I created the following command in my latex document \newcommand{\red}[1]{ \textcolor{red}{#1} } When working with the LaTeX editor Kile, the autocompletion gives me something like \red{x}...
Palimpseste's user avatar
7 votes
3 answers
16k views

Add to TexStudio autocompletion

I'd love to know how to add the eqnarray* environment to autocompletion, I only get the regular eqnarray. (I'm using Windows 7)
Julio Cáceres's user avatar
7 votes
2 answers
6k views

Macros in TeXStudio

I noticed in this post, when the user hits (( what actually generates in the editor is \left( \right), where the cursor is positioned between the first parenthesis and before \right. How does one do ...
TheRealFakeNews's user avatar
7 votes
1 answer
12k views

Autocomplete current environment

Is there a keyboard shortcut in TeXnicCenter to complete the current environment? In other words, it should add the appropriate \end{....}.
Jeremy Hurwitz's user avatar
7 votes
1 answer
1k views

how to get TexShop to auto-complete custom citation and cross-reference commands

I'd like to use a custom cross-referencing command, called \pref{}, in TexShop and have it trigger autocompletion the way \ref{} does. Similarly for a custom citation command \citepage{}. I have the ...
Daniel Buring's user avatar
7 votes
1 answer
295 views

How to prevent Texmaker to missunderstand Alt+Tab as auto completion command when it is meant for swiching windows

When I compile a pdf document in texmaker, I often press Alt+Tab to swich to the external pdf viewer. If at that point the cursor in texmaker is by coincidence at a position where texmaker can make ...
Andre's user avatar
  • 71
7 votes
1 answer
1k views

Kile - autocompletion for bibtex entries

I would like to Kile autocomplete my citations, so when I type \citep{ a list with my bibliography entries pops up. I tried also by typing the first 3 letters of the entry key, and/or pressing Ctrl+...
Violet's user avatar
  • 71
6 votes
2 answers
2k views

Dynamic autocomplete for words (non-LaTeX commands) in WinEdt 6.0

Does anyone know how to get WinEdt 6.0 to perform dynamic autocomplete ?. I would like to expand words I've already used, either in the current .tex file, or in the directory tree for a given ...
Bruce's user avatar
  • 99
6 votes
1 answer
524 views

Enable parentheses bib entry with RefTeX

I have built my .bib file using parentheses, like this: @ARTICLE(Campbell2006, author="Campbell, K. and McKay, M.D. and Williams, B.J.", title="Sensitivity Analysis when Model Outputs are Functions", ...
M. Toya's user avatar
  • 3,227
6 votes
1 answer
3k views

Adding custom macros to completion list with AUCTeX

I would like AUCTeX (that is, Emacs with auctex loaded) to suggest more LaTeX macros when using completion (M-Tab or C-Ret) than it does by default. I would like to have macros from packages I have ...
M. Toya's user avatar
  • 3,227
6 votes
1 answer
2k views

Is it possible to remove dynamically added autocompletions from Overleaf?

This question is the converse to: Is it possible to add new predictions/autofill in Overleaf? In Overleaf LaTeX Editor, if you type some markup that the autocomplete does not recognise, it gets added ...
Robino's user avatar
  • 165
6 votes
1 answer
828 views

Mac Texshop "autofilling"

I couldn't find it anywhere here, but sorry in advance if this is a repeated question. When using Texshop on my Mac, when I do the following... Type out f(x) = 2x + 3 highlight f(x) = 2x + 3 type $ ...
Travis Hayes's user avatar
6 votes
2 answers
768 views

TexStudio autocompletes when I type braces

When I try to type something in texstudio that has a macro associated, such as \hl{} it actually autocompletes to \hline{} as soon as I type the brace (it also does this for brackets). Words don't ...
Necarion's user avatar
  • 121
5 votes
4 answers
2k views

Editor with Word like "word completion" feature

Besides defining longer technical words by \newcommand{\trimam}{trans-impedance-amplifier} to save typing time. Is there a Latex Editor (can be Linux or Windows) that offers "word completion" ...
James Last's user avatar
5 votes
1 answer
3k views

Autocompletion in Texstudio

I am using Texstudio 2.6. I enabled autocompletion of schemabloc package in the Texstudio Options. When I am typing in the document, autocompletion for package commands is not working? Can somebody ...
K Prakasam's user avatar
5 votes
1 answer
2k views

Citep or citet does not display references list?

I am having an issue that randomly occurs while citing references. When I type " \cite{ " in my file a list of references usually pops up and I can select any reference by selecting them, as such: ...
J. Doe's user avatar
  • 137
5 votes
3 answers
4k views

Methods for autocompletion in TexStudio don't work

I've made a mymacros.sty file which I would like my LaTeX files to be able to access with commands that I've defined. I've managed to get it to work by putting \usepackage{mymacros} in my preamble. ...
Sam Davenport's user avatar
5 votes
1 answer
3k views

TeXworks auto-complete

TeXworks autocomplete capability is incomplete, messy and unpredictable. Is there any way to migrate TeXStudio auto-complete data to TeXworks?
Real Dreams's user avatar
  • 8,308
5 votes
1 answer
826 views

Stopping automatic compilation

As I stop writing in Texstudio, the compiler automatically starts compilation. I don't even need to press F6 button. Sometimes this is very uncomfortable. How do I stop auto compilation? P.S: I have ...
Manjoy Das's user avatar
5 votes
1 answer
1k views

How can I cite from bibliography in separate .tex files?

I'm working on a large document, and for that reason I'm using a main.tex file and including several files like chapterX.tex etc. Problem is that only my main.tex file has the bibliography in the ...
Dr. Hoenikker's user avatar
5 votes
2 answers
865 views

Automatic conversion from tex to unicode

I am increasingly working with XeLaTeX and stated using unicode characters instead of Latex command. For instance, I use → instead of \to in my documents. Now, I'd like my IDE to automatically ...
Clément's user avatar
  • 5,591
5 votes
1 answer
3k views

TeXStudio Autocomplete or suggest image path

I am writing a report in TexStudio. I recently exported the report from sharelatex. In sharelatex, it autocompletes or suggests the image file location. But I can't make TeXstudio do the same thing. ...
Samuel Eliasson's user avatar
5 votes
2 answers
723 views

How to make TeXstudio recognize \DeclarePairedDelimiter declaration

I'm using TeXstudio as editor because I think it provides the best features among other software I tried (namely Kile and TeXworks), especially about highlighting, autocompletion and spell checking. ...
Rackbox's user avatar
  • 927

1
2 3 4 5 6