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
0answers
23 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 ...
2
votes
1answer
70 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 ...
0
votes
0answers
16 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....
3
votes
0answers
29 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 ...
0
votes
0answers
27 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 ...
1
vote
0answers
12 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 ...
0
votes
0answers
28 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{...
0
votes
0answers
29 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 ...
0
votes
0answers
13 views

TeXstudio - Autocomplete for documentclass and usepackage not working

I reinstalled TeXstudio 3.1.2. But after that, the program seems not working properly. Here is the screenshot of my TeXstudio editor: article and amsmath are supposed to be green and the editor ...
1
vote
0answers
104 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 ...
2
votes
1answer
36 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 ...
2
votes
1answer
54 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) ...
0
votes
0answers
31 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}[...
1
vote
0answers
39 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: ...
0
votes
0answers
106 views

LaTeX Workshop - biblatex autocompletion does not work

I have configured LaTeX Workshop plugin for vscode to work with biblatex (biber command) instead of bibtex. However, while citation auto-completion works fine with bibtex, it does not parse the .bib ...
0
votes
0answers
38 views

Segmentation fault (core dumped) on autocomplete in Kile

I recently started getting a "Segmentation fault (core dumped)" crash in Kile Version 2.9.91 on Ubuntu 18.04 using PdfLatex. The document has been working fine until all of a sudden I get ...
1
vote
1answer
35 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 ...
1
vote
0answers
32 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 ...
3
votes
1answer
127 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 ...
3
votes
2answers
118 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 ...
2
votes
1answer
44 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 ...
1
vote
1answer
70 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? ...
3
votes
1answer
44 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". ...
1
vote
1answer
110 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 ...
1
vote
0answers
43 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 ...
0
votes
0answers
27 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 ...
0
votes
0answers
37 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 ...
1
vote
0answers
21 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, ...
4
votes
2answers
233 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 ...
1
vote
0answers
47 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 (...
4
votes
1answer
397 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 ...
0
votes
0answers
55 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 ...
1
vote
0answers
51 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{}?
1
vote
0answers
66 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 ...
1
vote
1answer
185 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 ...
1
vote
0answers
92 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 \...
1
vote
1answer
111 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 ...
3
votes
2answers
446 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 ...
0
votes
1answer
78 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 ...
3
votes
1answer
107 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 ...
2
votes
1answer
634 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 ...
0
votes
1answer
161 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 ...
0
votes
0answers
86 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 ...
0
votes
0answers
116 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 ...
0
votes
0answers
59 views

autocomplete does not work texshop

I'm trying texshop as new tex editor from texmaker and I'm struggling with autocomplete. Looking around like here Autocomplete with recent words in Texshop and here Autocompletion on TeXShop does not ...
0
votes
0answers
48 views

Implementing my own package(auto-completion) for Texmaker/any IDE written in python

Let's say, I have an Auto completion algorithm in python using machine learning (I haven't finished yet). The benefits of this comparing to the in-house auto-completion is personalization. Over a ...
0
votes
1answer
439 views

Disable command option pop-up in WinEdt while leaving the command suggestion pop-up enabled

I am using WinEdt version 10.3 on Windows 10. While you start typing a latex command, a window pops up with suggestions: And once you enter/select the correct command/environment, then there is ...
2
votes
0answers
110 views

TexStudio: Auto insert Math Delimiters does not show up as an option

My Problem is the following: I would like to activate the option to set the $-signs automatically when i use autocomplete. The Problem is that the option is just not available. That is what i want: ...
3
votes
1answer
119 views

AUCTeX environment templates not working with nonstandard document classes

In AUCTeX the environment template (LaTeX-environment, bound to C-c C-e) tool is very useful, but it seems to not work with many (possibly all?) non-standard document classes - for me it doesn't work ...
3
votes
0answers
386 views

TeXstudio does not suggest a defined environment when typing [closed]

I do not know why TeXstudio no longer picks up the following environment. Normally, when I type \begin{in, TeXstudio will suggest the correct environment \begin{inlineexample}. It was working ...

1
2 3 4 5