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
0 votes
0 answers
13 views

Auto-completion all text in Texstudio without shortcut

How to autocomplete regular text in Texstudio, not just mathematical text, and without using shortcuts? Whenever I type 3 letters consecutively, I want the autocomplete window to appear. I don't want ...
Denis da Mata's user avatar
1 vote
0 answers
37 views

How to enable auto-completion for \gls* and friends in TeXstudio when using package glossaries-extra with bib2gls?

It is standard behaviour of TeXstudio to autocomplete certain commands with arguments. For example, when correctly set up, \cite commands will offer bibliography entries, \ref will provide created ...
Linear Christmas's user avatar
0 votes
0 answers
13 views

Is there an autocomplete function for main body text in overleaf?

Commands can autocomplete, but ideally, I would have an extension that can also autocomplete main body text. I have this in VS Code, but I like the overleaf editor more. Does anyone know if such a ...
Smamorti7's user avatar
1 vote
1 answer
14 views

How to change keybinding to move to next placeholder in TeXShop on Mac

I am currently using TeXShop to edit my LaTeX documents on my Mac. say on my Latex document I write-\frac and press tab.This will automatically generate- \frac{|*}{*} with my cursor where '|' is made. ...
SilianRail's user avatar
0 votes
0 answers
29 views

Adding the command \text{} to the TeXstudio autocompletion list

TeXstudio suggests \texttt{} and \textwidth as completions for \text. It does not suggest \text{}. I believe that \text{} is part of the amsmath package, and amsmath.cwl is checked in preferences/...
Marc's user avatar
  • 1
2 votes
1 answer
47 views

TexShop Autocompletes & with a period

For some reason, TexShop started autocompleting any ampersand & by adding a period/full stop, which is not a feature that I consider desirable, given that I almost exclusively use the symbol for ...
user297024's user avatar
0 votes
0 answers
79 views

AUCTeX does not autocomplete environment commands of packages loaded in TeX-master

I am encountering a similar problem to this very old question, in that AUCTeX is not autocompleting commands outside the TeX-master file. I have the following files: main.tex: % arara: pdflatex % ...
Johannes Nauta's user avatar
0 votes
0 answers
38 views

Triggers and auto-completions with ```glossaries-extra``` + ```bib2gls``` in Latex Workshop and Overleaf

I've recently raised a question about citing and keeping track of long lists of species names (Is it possible to add triggers (like the ones used in snippets) for quickly citing specific terms my text ...
Michele Rossini's user avatar
0 votes
0 answers
34 views

Is it possible to add triggers (like the ones used in snippets) for quickly citing specific terms my text (LaTex, Overleaf)?

I am writing a paper that includes hundreds of species names, authors and years (e.g., Homo sapiens Linnaeus, 1758). It is very hard to keep track of all these details and fairly easy to accumulate ...
Michele Rossini's user avatar
0 votes
0 answers
50 views

Sublime text - autofill/autocompletion within {}

It is obvious that within {}, Tab will move the cursor out of the {}. However, in order to autocomplete the content within the {}, e.g., to autofill defined labels in \ref{}, I have to use Tab, but ...
Hubert Cheung's user avatar
0 votes
0 answers
34 views

Auto-completion of citation tags in Kile when using \parencite

I am currently trying out KDE's Latex editor Kile. Auto-completion of citation tags stored in a .bib file seems to only work for the commands \cite{} and \citep{} from bibtex. Does anyone know of a ...
L_W's user avatar
  • 101
0 votes
0 answers
26 views

Can you have a cwl file with a macro that is only avaliable within another command?

The mathtools' documentation gives an example for defining a helpful Set command (page 27 of version dated 2022/06/29): % just to make sure it exists \providecommand\given{} % can be useful to refer ...
TimeTravelPenguin's user avatar
1 vote
0 answers
37 views

References undefined while autocomplete does find the reference [duplicate]

When I add references to my file it outputs a question mark and the error message "citation 'label' in page '1' undefined." However, autocomplete does notice the reference which implies to ...
dorus Boogaard's user avatar
0 votes
1 answer
39 views

Why Texstudio somtimes autocomplete the longer command?

I wanted to input the command \rightarrow in Texstudio, so I just typed \righta and then Textstudio gave me two suggestions \rightarrow and \rightarrowtail. As the command \rightarrow was selected, I ...
jack S's user avatar
  • 1
2 votes
2 answers
620 views

how to add unicode characters in vscode latex (input)

In vscode, I would like to type something like \scrK to get 𝒦. There is a Unicode Latex plugin but it takes several extra keystrokes. What would be the easiest way to accomplish this? Thanks! (I'm ...
JPi's user avatar
  • 13.5k
0 votes
1 answer
86 views

Trouble with enabling bibliography entries in Winedt editor

I currently have a tiny problem with enabling bib references autocompletion when using Winedt editor. Here comes the description: I have a collection of bib reference entries in a myref.bib file and I ...
Jiameng Zhao's user avatar
0 votes
1 answer
71 views

TexShop does not accept the keyboard global configuration

I have a question, perhaps for Unix/MacOS connoisseurs, or maybe rather for TeX users. This is my problem: I work with LaTeX almost daily in several languages, mainly English, but also and frequently ...
GPadilla's user avatar
0 votes
0 answers
37 views

Auto complete intext citation key not working properly

I am having trouble with the auto-complete citation key. I have 2 problems and tried finding solutions online, but there seems limited information with regards to the auto-complete citation keys. ...
Joanna's user avatar
  • 1
0 votes
1 answer
94 views

Get citation autocomplete to work with custom style on TexStudio

I have read through and tried question 1 and question 2, however I still can't get to work. The autocomplete does not complete, TexStudio can't find the citation. I am using subfile if that matters. ...
G. Bay's user avatar
  • 2,037
0 votes
0 answers
65 views

Is it possible to remove a specific command from Overleaf autocomplete?

I'm aware of this post: Can suggested commands be removed from TeXstudio's autocomplete? However I wanna remove a VERY ANNOYING suggestion from overleaf which is \frac{} instead of \frac{}{}. I've ...
pepepopo's user avatar
1 vote
1 answer
144 views

cwl files not getting updated

I am using TeXstudio on macOS Monterey. I am facing the following scenario: I have created the files abc.tex and abc.sty in some same folder. I compile them. But, seeing no autocompletion happening ...
Atom's user avatar
  • 513
1 vote
1 answer
80 views

cwl files not rendering autocompletion

I am using TeXstudio 4.2.3 on Mac. So, I start with a blank folder and create an abc.sty file, defining some \newcommands. I then use that package in, say abc.tex file, that I create in the same ...
Atom's user avatar
  • 513
1 vote
1 answer
28 views

Suppress Texmaker pre determined autocompletion

I have tried pretty much all Latex editors out there, and I find Texmaker the best compromise between features and simplicity. However, I am quite annoyed that it is not possible to remove certain pre ...
Tommaso Seneci's user avatar
0 votes
0 answers
21 views

autocompletion removes the \ in the beginning of latex code

https://github.com/SublimeText/LaTeXTools/issues/1527 a work around for problems with auto complete in ST4 hopefully of some use to other users
js bibra's user avatar
  • 20.2k
0 votes
0 answers
96 views

Autocomplete not working when loading Biblatex in *.sty file

For clarity reasons I want to outsource all my packages in a packages.sty and all my commands in a commands.sty. I can now call them by running \documentclass{scrbook} \usepackage{packages} % ...
Dominicus1165's user avatar
0 votes
1 answer
146 views

TeXShop is not auto-completing \ref{...} commands with labels using F5 any more?

In TeXShop, I used to use F5 to suggest auto-completions for \ref{ } commands, for example, \ref{fig: ... and then pressing F5 would list all the fig:... labels I had assigned for me to choose from. ...
Leah Wrenn Berman's user avatar
0 votes
1 answer
160 views

Auto completing the \begin{....}

Previously, before installing the version 4.2 for texstudio, I was able to write \begin{... and press enter for studio to write automatically \begin{*environment-name*} content... \end{*...
Oğuzhan Kılıç's user avatar
1 vote
0 answers
41 views

texStudio more comprehensive autocompletion

I have been typing a pretty long hand-written note using TexStudio, and noticed that whenever I typed a previously used long expression with sub/superscripts, it would automatically complete the ...
username123's user avatar
2 votes
1 answer
115 views

Algorithmically generating the syntax of math equations

Is there a way to algorithmically write equation syntax in latex?? Suppose I want to write the N-point DFT matrix in an equation, then is it possible if i specify what each entry of NxN matrix will be ...
Kutsit's user avatar
  • 169
3 votes
0 answers
47 views

Setting additional brackets according to the pattern in the operator

Good day everyone! Maybe someone can suggest how to define a new (or override an existing) operator in a document, so that depending on the argument, the external output changes. In particular, I'm ...
Sssur's user avatar
  • 97
1 vote
0 answers
26 views

Auto completion duplicates text [Kile]

When I try to autocomplete an argument in Kile it ends up writing the entire command and ignores what I wrote, like this: \document \document\documentclass{} I'm not sure what's causing this, any ...
Koishi's user avatar
  • 11
0 votes
2 answers
236 views

Is there a way to change the default autofill of \begin{figure}?

Eg. I want it to, when I type \begin{figure} and press enter, autocomplete the following: \begin{figure}[!htb] \centering \includegraphics[width=\textwidth]{} \caption{} \label{} \end{...
Rvan8's user avatar
  • 23
2 votes
1 answer
972 views

How to Autoclose $...$ (math mode enclosed using single dollar signs?)

I'm using Visual Studio Code text editor to type up a LaTeX .tex document. Most text editors will auto-close brackets for you, so that when you type "{" it adds "}" and then moves ...
Benjamin Tupper's user avatar
2 votes
1 answer
119 views

How to add External Bibtex File to Autocompletion List in Texstudio?

I recently generated a large separate Bibtex file with all the references I ever should need. I use Texstudio to type my Latex documents, which has the advantage that it suggests commands. The ...
Constantin K's user avatar
2 votes
1 answer
185 views

Autocompletion and replacing macros abbreviation by code in TeXStudio

I'm trying to migrate to TeXstudio from a different editor, and was wondering whether it's possible to configure the following functionality: If I write "\thm" (without the quotation marks) ...
Reveillark's user avatar
0 votes
0 answers
89 views

Texstudio autocomplete figure environment, insert expected content

Using texstudio when I being to write \begin{figure} of course it introduces some autocomplete possibilities. That being said, when I choose \begin{figure}[placement]... it only writes \begin{figure}[...
Morten Nissov's user avatar
1 vote
0 answers
78 views

keyvals not recognized from *.cwl file

I'm making a .cwl file for the package nicematrix, and am unsure how TeXstudio checks keyvals for completion. Here is a sample .cwl file and an image of the editor in TeXstudio that display the issue: ...
mbert's user avatar
  • 2,521
1 vote
1 answer
143 views

TexStudio Setting

How do I remove the small white rectangles around the bracket? I have brackets set to autocomplete, and the only manual way of getting rid of them is to manually write the other bracket which I find ...
Ritvik's user avatar
  • 11
1 vote
0 answers
44 views

TeXShop autocompletion gone crazy!

Quite often when typing in the TeXShop editor, weird snippets of text suddenly appear where I am typing. Usually, it's an word or a couple of words, and usually they are completely unrelated to ...
James J Madden's user avatar
5 votes
1 answer
604 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
3 votes
2 answers
232 views

TeXStudio: Autocomplete missing for some commands (acronym pkg)

I'm using TeXstudio 3.1.1 (git 3.1.1) on Windows 10 to write a TeX document with BibLaTeX bibliography. The document uses this KOMA thesis template. To support using acronyms, I use the acronym ...
stefanbschneider's user avatar
2 votes
1 answer
143 views

TeXStudio macro not showing in auto-completion

I have created two macros in TeXStudio to input figure and subfigure environments with the abbreviations/usertags \myFigure and \Subfigure respectively, as shown below. The Figure macro works as ...
Nawit's user avatar
  • 85
1 vote
1 answer
297 views

Sublime text 3 Latex autocomplete issue

I use sublime text 3 for Latex. Whenever I use autocomplete say I wrote \section{ then hit enter what sublime text suggests, I end up having section{} without \ sign in front. Am I missing something? ...
Oner Yigit's user avatar
3 votes
1 answer
60 views

backspace makes autocomplete disappear until I have retyped entire text

When using the autocomplete feature in TexStudio, I am facing this strange problem. Usually, autocomplete suggests me the right suggestions and closes the parantheses after pressing "Enter". ...
honeybadger's user avatar
1 vote
1 answer
208 views

How to auto-complete with comma-separated citations?

I am using TexMaker and I want my editor to auto-complete the \parencite{} command for biblatex for any number of arguments. I already added \parencite{#bib#} in User > customize Completion, but I ...
Olivier Melançon's user avatar
1 vote
0 answers
71 views

TeXstudio does not recognize csvsimple commands [closed]

My file compiles fine, but TexStudio doesn't recognise commands from the csvsimple package. I tried setting the completion file manually under preferences>completion, but the csvsimple.cwl file is ...
MDescamps's user avatar
  • 125
0 votes
0 answers
77 views

How can I auto-populate in set fields with the word typed in a specific place in Overleaf/LaTex?

I´m applying for different jobs, more or less in the same areas but the names might differ (Analyst, Business Analyst, etc.). Hence, in order not to have to review the text every time, it´d be pretty ...
Manuel C.'s user avatar
0 votes
0 answers
90 views

TeXMaker keybindings: accept code suggestion with `TAB`, but not `ENTER`?

I have looked around and did not see a question about this. TeXMaker has a feature where it gives code suggestions. For example when you type \fra, it suggests \frac{•}{•} I use this feature with the ...
doublefelix's user avatar
1 vote
0 answers
35 views

Texmaker on Ubuntu, autocomplete doesn't work properly

When I type \ref{..., there is a list of available items. But when I confirm an item by clicking Enter, instead of filling that item, Texmaker create a new subsection at the end of document. However, ...
Grani Mark's user avatar
4 votes
2 answers
811 views

Auto-completion for \newcommand in TexStudio

I created a new command like this: \newcommand{\longref}[1]{{\ref{#1} (\nameref{#1})}} it works as expected - it prints the chapter number and it's name. Great. Now I'm using Texstudio, and it always ...
Standard's user avatar
  • 165

1
2 3 4 5 6