-
-
Notifications
You must be signed in to change notification settings - Fork 87
Global settings
These settings can be found in File › Settings › Languages & Frameworks › TeXiFy
When enabled, soft wraps will always be used when opening LaTeX files. Note you have to reopen files for this setting to take effect.
Soft wraps make sure that when a line does not fit in the window, it will be wrapped.
By default, when you type $
to start an inline math environment, the closing $
will be inserted automatically.
You can use this setting to disable this.
Note that if your cursor is right before the closing $
, so like $ <cursor>$
, you can type $
and IntelliJ will skip over the closing $
just like with closing braces.
By default, TeXiFy will automatically insert braces around multiple letters/numbers when they are directly after a _
or ^
without spaces inbetween.
This means that when you type $a_bc$
it will result in $a_{bc}$
, to ensure that both the b
and the c
appear as subscript.
You can disable this behaviour using this setting.
By default, when you press Enter when in an itemize or enumerate environment, TeXiFy will insert a new \item
for you.
For example, when in a situation like
\begin{itemize}
\item <cursor>
\end{itemize}
and you press Enter, it will result in
\begin{itemize}
\item
\item <cursor>
\end{itemize}
If you do not want to insert an \item
, press Shift+Enter instead.
You can disable the automatic insertion of \item
using this setting.
Instead of writing opening and closing quotes like `quote'
and ``quote''
yourself, you can also let TeXiFy choose for you whether to insert opening or closing quotes, and of what type.
There are three options.
If you type single quotes, so you type 'quote'
, the opening single quote will be replaced by `
, so the result is `quote'
.
For double quotes, typing "quote"
will end up as ``quote''
.
Instead of using `
for opening and '
for closing, you can also use the commands \lq{}
and \rq{}
for left and right quotes.
These have exactly the same result.
Typing 'quote'
will result in \lq{}quote\rq{}
, and typing "quote"
will result in \lq\lq{}quote\rq\rq{}
.
Since b0.6.6
The csquotes (Context Sensitive quotes) package provides some improvements for typesetting quotes, using the \enquote
command.
For example, nested quotations work properly.
Typing 'quote'
will result in \enquote*{quote}
and typing "quote"
will result in \enquote{quote}
.
This also works for nested quotes, typing "nested "quotes""
results in \enquote{nested \enquote{quotes}}
.
Note that instead of typing the closing '
or "
you could also type the closing }
and IntelliJ will skip over it like usual.
Since b0.6.7
When enabled and you are typing in a math environment (for example inline math $..$
or display math \[ … \]
) then a preview window will pop up which will show how the math will look like. The same holds for tikzpicture
environments.
For more information about the preview and how to install dependencies, see Equation preview. For continuous compilation of the complete document, see Latexmk.
Because TeXiFy does not automatically detect if your custom LaTeX command (defined with \newcommand
) also includes a \label
command using one of the parameters, you can enter the names of these commands manually in the settings.
This will make sure that TeXiFy understands that your custom command specifies a label, and thus other features will work correctly, including the duplicate label inspection, the missing label inspection, structure view and autocomplete.
In the table, each entry has the following values.
-
Name of command: the LaTeX command
-
Position of label parameter: which (required) parameter of your custom command is input as value to the
\label
, so if you use\label{#42}
then this number should be 42 -
Label previous command: should be true if your custom command labels the LaTeX command/environment that is right before that, for example using
\captionof
from thecaption
package.
This documentation has moved to https://hannah-sten.github.io/TeXiFy-IDEA