Hot answers tagged

6

In Texworks, type \beg and TAB, you will get \begin{. Then type doc as in \begin{doc and again press TAB you will get \begin{document} \end{document} with cursor in between. Then type, say, \beg and TAB to get \begin{ and type ite (\begin{ite) press TAB to get \begin{document} \begin{itemize} \item \end{itemize}• \end{document} There are many ...


3

There is currently litte you can do about it. The only possibilities are to either type the complete expression, or to remove the placeholder of the closing bracket (Ctrl + Shift + K). The most important rule for automatic bracket insertion is that it should be transparent to continuous typing. E.g. if you type the sequence \{sometext\}, the text in the ...


3

Save this as chemformula.cwl in ~/.config/texstudio/ or %APPDATA%\texstudio\! # custom completion word list file by LaRiFaRi #include:expl3 #include:xparse #include:l3keys2e #include:tikz #include:amstext #include:xfrac #include:nicefrac #include:scrlfile # \setchemformula{options} \ch{input} \ch[options]{input} \chcpd{compound}#* ...


3

As pointed out by user27168, typing Esc invokes auto-completion in TeXmaker and (as pointed out by Tim Hoffmann) Ctrl + Space invoke that in TeXstudio.


2

Depending on which LaTeX plug-in you're using, you can have a similar behaviour as you're requesting. For instance, LaTeX-cwl in combination with the LaTeXing plug-in, you'll get a behaviour like shown below. Note that if I'd written \doc I'd get another set of alternatives (obviously - doteq doesn't contain a c)


2

This is how I solved this problem. This code works in WinEdt9. Go to the menu item Options -> Options Interface There you will find a long list of items. Down this list is Delimeters, Active strings, Abbreviations Open this item. Click on Active Strings. The long file with active strings will appear in the right pane. This is an editable file in ...


2

One way to do this is to switch to Texmaker's fork TeXstudio which has got this feature built-in. http://texstudio.sourceforge.net/


2

I think that this is a bug of TeXstudio. The problem is that TeXstudio has auto-completion support for certain commands hard-coded in, most likely for performance reasons. This can be easily checked by looking at the texstudio.exe in a text editor and searching for \microampere (line 68436 in version 2.9.4). So I would say this is TeXstudio's bug and you ...


2

This shows the application of cleveref for the standard counters and the difference between \cref and \Cref -- the later is used for uppercase completion of the counter name. The completion names can be specified with the commands \crefname and \Crefname (see the documentation please) \documentclass{book} \usepackage{hyperref} \usepackage{cleveref} ...


2

After the help of @Torbjørn I came up with this workaround. Create a mydefinition.cwl file and place it in the %APPDATA%/texstudio folder (I'm using Windows, don't know where it should go in other operative systems). Add the \DeclarePairedDelimiter{cmd}{left_delim}{right_delim}#md line in the .cwl file. In TeXstudio Options -> Completion check the box of ...


2

Sorry to be a necromancer, but this is the top google result for this problem and I feel like this thread is missing an important bit of info for Windows users working in Cygwin and/or Babun For some reason, the version of grep bundled with Cygwin requires the pattern in single quotes. (e.g., grep -nH '$*') In your .vimrc you'll need to escape the spaces ...


2

Autocompletion with recent words is supported. In the picture I show what I see when typing xy and hitting the ESC key. You can clearly see the word, along with other possible completions from some dictionary. TeXShop version 3.58


1

Most likely, you won't need to manually activate any cwl. For quite a time now, cwls are implicitly loaded based on the \usepackage directives. For details see FAQ: When are cwl files loaded?. If you document compiles, but TXS marks some commands as unrecognized, probably the cwl file is incomplete. This may be the case, in particular for the autogenerated ...


1

First, do you mean AutoCompletion or Command Completion. I assume you mean AutoCompletion which is now called Key Bindings (which describes the feature better). In newer versions of TeXShop (it's now at 3.51) you can edit the Key Bindings file using the Source->Key Bindings->Edit Key Bindings File… Menu item. Good Luck, Herb Schulz


1

See TeXStudio FAQ: Why does a comman not show up in the completion?


1

There does not seem to be a way to disable the \citep suggestion in Texmaker, but I circumvent the trouble by adding this in the document header: \newcommand{\citep}[1]{\cite{#1}} This actually defines the control sequence \citep. All it does is to translate \citep into \cite, which compiles just fine. As a result, you can use the suggestions in the ...


1

TexMaker has a partial scripting language to extend the editors functionality. In essence you are using javascript (subset) to describe the desired editor actions to take effect at the location of the cursor. It works well to create keyboard commands (e.g. shift-ctl-e) to modify a selected set of text. There are minimum examples available of this feature ...


1

When using VimTeX, you can type ]] in insert mode to close the current environment.


1

The option I use is that I separate only the table contents into another file, which gives IMHO a clearer source code, moreover, the labels are kept in place. Like this: Main file main.tex: \documentclass{article} \usepackage{booktabs} \begin{document} \section{My section} As we see in Table~\ref{tab:bla}, all blas have a bla. \begin{table} ...


1

I think this might affect some other autocompletions, but this can be done by using the menu Options/Configure TeXstudio/Completion and by disabling 'Use placeholders'.


1

Here you can see my configuration of TexStudio: which seems to enable what you want it to do: I am fairly certain, the most important one is the first and the "Typisch" From the wordlists maybe ngerman.cwl and tex.cwl, although i am not using ams*.cwl and the proof environment is still available in dropdown (as seen above).


1

You search for the closeb plugin. It does exactly what you describe. If you enable it and press Ctrl+_ in insert mode, it closes the current environment.


1

This is not possible without modifying the code and recompiling TeXShop, specifically in the TSTextView object. It's not hard, but would require some familiarity with Objective-C. If you use \citepage{ as a command name, it should work as-is.


1

OK, I figured it out as soon as i posted the question, but other people may benefit from it (delete it otherwise). In Texstudio, the bibliography wasn't set to UTF-8 (in Adv. Editor tab), probably causing the strange effect to occur. by changing it to UTF-8 and saving the preset, the problem disappeared.


1

(As asked in comment) Press tab between #RET# and \item and save. See that charming orange triangle?



Only top voted, non community-wiki answers of a minimum length are eligible