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

TeXstudio does not suggest a defined environment when typing

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

TexStudio autocompletion stopped working for macros

So I recently created macros (.sty files), which are remotely loaded at in my preamble. There are various points in these macros where I've defined a new command; for example: \def\remark#1#{\...
0
votes
0answers
41 views

Adding suggestions for arguments to the chemnum-package

I am writing my thesis in chemistry and use the chemnum-package to number my compounds. Because it is gotten quite a few compounds now, I would like to get suggestions from texstudio, which tags for ...
0
votes
0answers
24 views

'TeXnicCenter' auto complete braces, brackets and alike

I'd like 'TeXnicCenter' to autocomplete the braces parentheses and likes, kind of like 'Sublime Text' does. I think, it has to do with some XML files, but I'm new to this. Here is the wished ...
0
votes
1answer
35 views

Change shortcut for auto-completion in Texstudio

I want to change auto-completion keyboard shortcut in Texstudio. Currently, it is set to Ctrl+Space and I wish to change it to a more convenient Shift+Enter. How do I do that? 'Shortcut' tab in ...
0
votes
2answers
62 views

Create Macro with Reference Auto Complete — TeXstudio

I frequently use the command \citeauthor{ME:paper} \cite{ME:paper}. Further, when one types \citeauthor{ or \cite{, a list of the loaded references appears; I can then type \cite{ME:p and hit enter to ...
3
votes
2answers
66 views

Customize auto-completion (more) in Texmaker

So I just found "User > Customize Completion" in texmaker and it seemed great. Quite soon I run into the problem with defining macros that span several lines. I am able to get: \begin{figure}[•] \...
1
vote
1answer
105 views

Texstudio autocompletion in fragmented files

I have a document that's highly fragmented, an MWE might look something like: main.tex \input{preamble.tex} \begin{document} \input{chapter.tex} \end{document} Preamble.tex \documentclass{memoir} \...
0
votes
0answers
143 views

How to turn on Autocomplete commands in texshop

I'm a newbie to texshop and I cant get autocomplete to work. A quick search on it tells me to do something with ~/library/Texshop/Keyboard/autocompletion. Plist file but I'm stumped. Texshop version ...
0
votes
0answers
40 views

Remapping the up/down arrow keys in TexStudio so that I can move up and down within the auto-completion suggestion box

I created shortcuts in TexStudio for the arrow keys (Ctrl+J, Ctrl+L, Ctrl+I, Ctrl+K for Left, Right, Up, Down) so that I can keep my fingers on the homerow keys, rather than moving them to the bottom-...
2
votes
1answer
212 views

TeX-complete-symbol doesn't work in math mode

I can't get AUCTeX to complete user-defined commands in math mode. As an example, TeX-complete-symbol works outside of math mode in the document below, but it stops working if I prepend a dollar sign ...
0
votes
0answers
31 views

TeXStudio Autocompletion standard practices

Is there a guide that explains the most used key combination and standard practices for correctly using the autocomplete functions of texstudio. For example a comment under https://tex.stackexchange....
0
votes
0answers
29 views

Texstudio do not hint in ubuntu 18.10 (Don't see preferred command)

I am using texstudio in ubuntu 18.10, but i can't see the preferred command when i typing. In Windows 10, i still see it but ubuntu is not? Please give me the solution to solve this problem?
0
votes
0answers
26 views

Autocomplete paths in \newcommand [duplicate]

I have defined a few custom commands using \newcommand in order to standardize figure sizes in a paper I am writing. For instance: \newcommand{\bigfigure}[1]{\includegraphics[width=0.8\linewidth]{#1}}...
3
votes
1answer
124 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 ...
0
votes
0answers
32 views

Autocompletion for indexing?

Is there any text editor or plugin that helps while indexing a LaTeX file, for example by suggesting the entries I have already used, when I write index{ ? (At the moment I use TexStudio on Windows)
0
votes
0answers
38 views

TexStudio: Auto-completion of empty braces for commands without arguments

I did some search but could not find a similar question. Thank you for sending me a link if there's one. My question is as follows: For convenience when writing latex, I use a lot of custom commands ...
0
votes
0answers
52 views

Kile: do auto completion only when hitting spacebar

I was trying to get a good autocompletion in Kile. Therefore I made a .cwl file and used this to store all the words that I regularly misspell. I also turned on 'Auto completion for abbreviation' so ...
4
votes
1answer
78 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 $ ...
1
vote
0answers
35 views

Math mode trouble with backslash in Texstudio [duplicate]

In text studio, when you start typing \( it automatically fills in to \(\) with the cursor in the middle. As I try to type let's say a greek letter such as "\gamma", the editor automatically uses the ...
2
votes
1answer
29 views

How to leave out the Space before I use auto-completion by Tab in TexShop?

These days I am trying to improve my typing speed on TexShop by employing the Command Completion source. However, I've found that I have to type in a Space before using, say, "xg+Tab" to represent \...
4
votes
1answer
596 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: ...
0
votes
1answer
40 views

How to disable autocorrection/autocompletion but not the spellcheck/errorcheck in TeXstudio?

I want to disable autocorrection/autocompletion, like the automatic insertion of ] when I type [ and also other autocorrection/autocompletion options in TeXstudio. But I want to keep allspellcheck/...
2
votes
0answers
165 views

LaTeX editor with seamless auto-complete

When working on a LaTeX project I like to create an .sty file (say mymacros.sty) where all my custom macros are defined. I then simply call \usepackage{mymacros} in the main .tex file preamble. I also ...
1
vote
0answers
94 views

Is there any way to make \right) appear right after I type \left(?

Similar to how when you type \begin{document}, \end{document} automatically appears. This is for TexMaker.
1
vote
1answer
130 views

Autocompletion of citation with BibDesk but without TeXShop

I have the inverse question of this one, Autocompletion of citation in TeXShop without BibDesk, but instead of "without BibDesk," I am looking for a way to have autocompletion of citekeys from my bib-...
1
vote
1answer
45 views

Auto-completion of \ref doesn't work for my counter

I defined a counter and a command that defines examples and labels them. Unfortunately, when I use these definitions the \ref is not autocompleted by the texmaker or sharelatex. What should I add in ...
0
votes
0answers
108 views

texstudio cref completion for labels in macros

Is there a way to have completion for cref references for labels defined in a command macro? \newcommand{\midpict}[4]{ \begin{center} \begin{figure}[H] \begin{center} ...
1
vote
0answers
80 views

TeXstudio auto-completes normal words suddenly. How to disable? [closed]

I'm using the newest version of TeXstudio and I like it. However, suddenly it started to auto-complete normal words (not LaTeX commands). I can only type the first letter and then a popup shows some ...
1
vote
1answer
107 views

Getting predictive mode to suggest all possible environments

I'm trying auctex+predictive mode as my new latex editor. One feature that tempted me to add predictive mode to the equation, was the feature advertised in the image below: source This is ...
0
votes
0answers
95 views

Which LaTeX editor have autocompletion with a hotkey (like in commanline `tab`)

I use TeXstudio, it is pretty good and it autocompletion is great, but I was wondering if there is any editor I has autocompletion hotkey (like Tab in commandline)? Thanks in advance
0
votes
1answer
75 views

Bibliography Autocompletion doesn't work in TexStudio 2.12.6

I installed the last version of TexStudio (2.12.6) and Everything was fine since couple of days ago but suddenly bibliography autocompletion has stopped working. My OS is Ubuntu 18.04 and I think I ...
0
votes
1answer
161 views

Autocompletion of new command with zero arguments with LaTeXTools

I use Sublime 3 with the LaTeXTools plugin. Everything is updated. Here is a minimal example showing what happens when I use autocompletion for commands I defined locally: As you can see, it ...
0
votes
1answer
227 views

Texstudio autocomplete cite key by full text search?

I am using Texstudio 2.12.6 on Mac. When typing \cite{somewords, autocomplete shows a list of cite keys that start with 'somewords'. But I want it to show cite keys that contain 'somewords' inside, ...
3
votes
1answer
531 views

Auto Completion in TeXworks

I am new to Texworks. I would like to have this behaviour: If I type in \begin{something} then the phrase \end{something} will be added automatically. Is this feature available? How can I activate it?...
9
votes
2answers
1k 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 ...
0
votes
1answer
326 views

Autocomplete curly brackets after LaTeX command in TeXStudio

I'm using TeXStudio with MikTeX distribution. Is there a way to automatically add the curly brackets at the end of a command? Let me explain using an example. Suppose I'm typing in math-mode \Gamma ...
2
votes
1answer
461 views

How to properly set up AUCTeX to parse macros from my own *.sty files?

I am on Windows. Here is the code I have in my .emacs file to enable AUCTeX to recognize macros I have defined in my own style files: (setq TeX-parse-self t) ; Enable parse on load. (setq TeX-auto-...
0
votes
0answers
99 views

Autocompletion in Texmaker for \citeA command [duplicate]

Texmaker suggest a list of all bibtex-keys when typing the beginning of \citep{•}. I use APACite and therefore often need \citeA{•} though. First: Is it possible to make texmaker suggests for \citeA{•...
1
vote
0answers
368 views

Word prediction when typing LaTeX

Some time ago I while preparing my Bachelor's thesis I came across a word prediction macro for Microsoft Word - the preDict: http://www.beingbrunel.com/predictive-text-in-word/ https://github.com/...
0
votes
0answers
51 views

natbib \citet/p fields not 'active'

This is not a big issue but I wander why it happens. When I open my tex file in TeXstudio, in which I have a lot of references (using natbib), the fields in {} are not active immediately, and the ...
3
votes
1answer
504 views

Autocompletion on TeXShop does not work properly

I have just discovered that TeXShop should have this function, as described in section 1.16 Auto Completion of this manual. Now, by default I should have the autocompletion for ", which should be ...
0
votes
1answer
139 views

completion with the second argument of a command in texstudio

From Texsudio manual on autocompletion files: "The classifiers specifying the meaning of arguments (like c or i) always apply to the first non-optional parameter. This is a current limitation of the ...
1
vote
1answer
221 views

autocomplete with labels defined by user commands

I use a command that automatically generates labels to include pictures: \newcommand{\plot}[3]{ \begin{figure}[htp] \centering \includegraphics[#2]{Fig/#1} \caption{#3} ...
1
vote
1answer
718 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. ...
0
votes
2answers
575 views

Editors for Windows with automatic completion, environments etc

My "home" environment is GNU Emacs under Linux with AucTeX and RefTeX; as far as I'm concerned this is the perfect environment for LaTeX editing. And I've written books, papers, notes for students, ...
3
votes
0answers
154 views

Disabling autocompletion of `\(\)` in TeXstudio

I am using TeXstudio 2.12.6 QT 5.9.1, and have the Auto Complete Parentheses in Special options turned on. In general, it automatically 'closes' the brackets / braces for the following combinations: (...
1
vote
1answer
315 views

TeXstudio: Can I put multiple packages in a separate file and still have the autocompleter recognize their commands?

This is a follow-up question to Place preamble packages in a different tex file, Methods for autocompletion in TexStudio don't work. The Problem Over the years, I have collected quite the number ...
2
votes
1answer
727 views

Autocompletion of citations and references in TeXShop

I used to use Esc to complete citations and references when typing in LaTeX using TeXShop but it doesn't work any more. It stopped working on my new laptop probably because I had to install TeXShop ...
1
vote
1answer
43 views

Is there a way in Bibdesk to erase wrong completion suggestions due to typing mistakes?

For example, if I type once Shakespere instead of Shakespeare Bigdesk keep suggesting it when I type Sha in the Author field. Is it a way of cleaning up the list of such suggestions