Hot answers tagged

3

Save this as chemformula.cwl in ~/.config/texstudio/ or %APPDATA%\texstudio\! # package chemformula v4.14a # typeset chemical compounds and reactions # Clemens Niederberger 01/07/2016 # URL: http://www.ctan.org/pkg/chemformula # URL: http://www.mychemistry.eu/forums/forum/chemformula/ # Contact: contact@mychemistry.eu # File written on 02/23/2016 ...


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

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

TexMaker is hard-coded to use typable keys to activate auto-completion, e.g., any character key including {}[](), etc.. However, there is a bug, it took ALT key as one of typable keys which is wrong. For now, the only work-around is to turn off auto-completion. It's in Options-> Configure TexMaker->Shortcuts.


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

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

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

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

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

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

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

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

Autocompletion and knowledge on commands in the editor is gained from cwl files. The definiton of \ac was just in glossaries.cwl. I've just fixed this, so it will be available with the next release of TXS. For now, you cannot do anything about this yourself, because the builtin cwl files cannot be overridden. This will be changed as well in the next release ...


1

Just continue typing. e.g. if you have completed \textbf{[text]} (square brackets denoting the placehoder frame) and written into the placeholder: \textbf{[hello world]}. The cursor is in front of the closing curly brace. Retype that brace. Then the cursor will move past it and the placeholder vanishes.


1

Not that I recommend this, but… \documentclass{article} \usepackage{amsmath} \makeatletter \newcommand{\check@arrow}{% \@ifnextchar-{\check@@arrow}{\std@minus}% } \newcommand{\check@@arrow}[1]{% #1 is - \@ifnextchar>{\rightarrow\@gobble}{\std@minus\std@minus}% } \begingroup\lccode`~=`- \lowercase{\endgroup\protected\def~}{\check@arrow} ...


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

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

In addition to LaRiFaRi's answer: To keep the usepackage command within one line and to keep it readable and commentable (both to easily remove one or another option and to add comments to the individual options) you can move nearly all the options to \ExecuteBibliographyOptions{⟨key=value, ...⟩} There are a few exceptions which can only be set at ...


1

In order to close this topic - I summarize: For now, you will have to do \usepackage[backend=biber,bibwarn=true,bibencoding=utf8,sortlocale=de_DE,style=alphabetic]{biblatex} in one line or you tick the corresponding .cwl-file as can be seen below: The discussion about this issue has been closed: https://sourceforge.net/p/texstudio/bugs/1648/ You ...


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

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

For clarification Multiple cursors are not supported. This would be something like % NOT SUPPORTED \includegraphics{pics/%|} \caption{} \label{fig:%|} Mirrored placeholders are supported. This is an undocumented function and may change in the future without further notice. % THIS DOES WORK \includegraphics{pics/%<%:id:1%>} \caption{} ...


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

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

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



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