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
1 vote
1 answer
20 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 ...
user avatar
  • 319
1 vote
1 answer
20 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 ...
user avatar
  • 319
0 votes
0 answers
23 views

Overleaf Emacs mode Autofill Selection

I've noticed that when I enable Emacs mode on overleaf I stop being able to scroll through the autofill suggestions menu by using the up and down arrow keys. Instead the arrowkeys close out of the ...
user avatar
1 vote
1 answer
18 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 ...
user avatar
0 votes
0 answers
15 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
user avatar
  • 18.8k
0 votes
0 answers
38 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} % ...
user avatar
0 votes
1 answer
39 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. ...
user avatar
0 votes
0 answers
40 views

Is it possible to autocomplete Acronyms in TexStudio just like you can autocomplete references and citations?

I am trying to figure out if I can enable autocomplete to fill out the rest of an Acronym when using the acronym package. So for example when I have defined the Acronym: \acro{BEV}{Battery Electric ...
user avatar
0 votes
1 answer
59 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{*...
user avatar
1 vote
0 answers
33 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 ...
user avatar
2 votes
1 answer
83 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 ...
user avatar
  • 161
0 votes
0 answers
22 views

Define arguments of custom command as label so autocomplete picks it up as labels

With texstudio, there is a nice autocomplete feature for labels. I created a custom command where I pass two labels as arguments. Since they are just regular command argument, there is no autocomplete....
user avatar
  • 101
3 votes
0 answers
35 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 ...
user avatar
  • 97
0 votes
0 answers
30 views

TeXStudio hides lower part of screen while autocompleting

this is a new issue I am encountering with TeXStudio. The problem is shown in the image below: As you can see here, while autocomplete suggestions are shown, all the lower part of screen has a white ...
user avatar
  • 289
1 vote
0 answers
21 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 ...
user avatar
  • 11
0 votes
0 answers
81 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{...
user avatar
  • 23
0 votes
0 answers
37 views

Autocomplete custom .sty when calling \usepackage

I have created a custom package, say mystuff.sty, and followed the steps here regarding placing the file in the adequate directory. The new TXMF root directory is in my Dropbox, although I don't think ...
user avatar
  • 101
1 vote
0 answers
296 views

How to Autoclose $...$

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 ...
user avatar
2 votes
1 answer
46 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 ...
user avatar
2 votes
1 answer
94 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) ...
user avatar
0 votes
0 answers
49 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}[...
user avatar
1 vote
0 answers
61 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: ...
user avatar
  • 165
1 vote
1 answer
50 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 ...
user avatar
  • 11
1 vote
0 answers
40 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 ...
user avatar
3 votes
1 answer
252 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 ...
user avatar
3 votes
2 answers
163 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 ...
user avatar
  • 1,491
2 votes
1 answer
83 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 ...
user avatar
  • 85
1 vote
1 answer
140 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? ...
user avatar
3 votes
1 answer
46 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". ...
user avatar
1 vote
1 answer
141 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 ...
user avatar
1 vote
0 answers
56 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 ...
user avatar
  • 125
0 votes
0 answers
38 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 ...
user avatar
0 votes
0 answers
54 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 ...
user avatar
1 vote
0 answers
25 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, ...
user avatar
4 votes
2 answers
381 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 ...
user avatar
  • 165
1 vote
0 answers
48 views

Unwanted Closing Brace Keeps Appearing with Every \Command{

Question: How may I prevent an annoying closing brace from appearing each time I type \begin{ or \ followed by some command{ Incidentally, I am using TeXStudio 2.6.6 I have gone to Options, Configure (...
user avatar
4 votes
1 answer
573 views

How to create a autocomplete list for my own packages in TeXstudio?

After learning how to create my own commands and how to make them available in TeXstudio through a autocomplete list with a .cwl file, I could not do the same with packages files I created with those ...
user avatar
  • 3,462
0 votes
0 answers
81 views

Overleaf keeps suggesting the least used variant

So basically my document looks like this. I once use \begingroup and after this i only use \begin{equation} (about 50 times). Every time i type \begin Overleaf keeps suggesting the least used ...
user avatar
1 vote
0 answers
81 views

How to auto-complete filenames in texstudio

I have lots of images to be used in a specific folder ./figures/, so I set \graphicspath{{./figures/}}. However, how can I auto-complete filenames of these images in \includegraphics{}?
user avatar
  • 205
1 vote
0 answers
84 views

Unrecognized unicode-math command in TeXstudio although unicode-math.cwl is activated

TeXstudio 3.0.4 shows some commands defined by unicode-math as 'unrecognized command' and highlights them in red although I've enabled unicode-math.cwl and unicode-math-xetex.cwl in TeXstudio. All the ...
user avatar
1 vote
1 answer
259 views

How to setup auto-correction in LyX to automatically convert <= to \leq?

Is there a way to configure LyX 2.3.4.4 to auto-correct string1 into string2? Specifically, I would like to type <= in an equation and get it replaced by \leq or simply by ≤. I know it can be ...
user avatar
  • 121
1 vote
0 answers
118 views

\left\{ \right\} – TeXstudio

Unfortunately, neither google nor stackoverflow wants to search special characters like \ and {, I was not able to find a similar question. I am wondering why TXS immediately autocomplete \} and \...
user avatar
  • 2,803
1 vote
1 answer
114 views

Arara rule for gnuplot in Texstudio on Windows 10

I run gnuplot with a user command pdflatex --shell-escape %.tex perfectly. Is there any rule for arara to automate this process to be used, instead of running arara then user defined then arara ...
user avatar
  • 45
4 votes
2 answers
518 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 ...
user avatar
  • 4,700
0 votes
1 answer
93 views

Where can I find a Textmate bundle for BibDesk autocompletion?

I would like to be able to insert citations automatically from BibDesk (v. 1.7.5) while using Textmate (v. 2.0.6), not TeXShop. Over a year and a half ago, @AdamMaxwell mentioned that he had written a ...
user avatar
  • 1,303
3 votes
1 answer
149 views

\glsentrytext does not autocomplete in TexStudio

I am using texstudio TeXstudio 2.12.22 (git 2.12.22) Using Qt Version 5.12.1, compiled with Qt 5.12.1 R and using glossaries library. When I use \gls autocomplete works and offers the glossary entries ...
user avatar
2 votes
1 answer
965 views

How to format custom .cwl for TeXstudio completion

I am creating my own custom .cwl file for TeXstudio. What command should I put in my .cwl file to get the following completion: \begin{lemma} content... \end{lemma} with content... specified as ...
user avatar
  • 143
1 vote
1 answer
262 views

Autocomplete theorem environments not auto-completing

I am using TexStudio, and this question might be more about TexStudio than about LaTeX but I will ask here anyway. I am writing a long math paper which I have trimmed down to the bare essentials in ...
user avatar
0 votes
0 answers
96 views

Sublime text autocompletion for latex3/xparse-defined commands

I recently started using sublime text 3 with latextools and latex-cwl. I like the autocomplete functionality for commands so far, except that it does not seem to work (by default) for my own commands ...
user avatar
  • 195
0 votes
0 answers
180 views

How to enable auto-complete for every word I have typed in in Texstudio?

I am currently using Texstudio 2.12.22 on my macOS Catalina 10.15.3, I wonder how I can enable the auto-complete for every word I have typed in in the file? edit on 2020.3.23 I've found two tools ...
user avatar

1
2 3 4 5 6