Skip to content
Thomas edited this page Jun 19, 2020 · 22 revisions

These settings can be found in File  Settings  Languages & Frameworks  TeXiFy

Option to disable automatic insertion of second $

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.

Option to disable automatic brace insertion around text in subscript and superscript

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.

Option to disable auto-insertion of \item

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.

Option to disable automatic package dependency checks

You can disable the automatic insertion of package dependencies. This also disables the inspection which checks for Missing imports. For more information, see Automagically import packages of common commands.

If you disable this, consider if TeXiFy should support your use case and please open an issue if so.

Option to enable automatic compilation

Option to enable continuous preview of math and TikZ environments

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.

Continuous preview

Option to include the backslash when selecting a LaTeX command

Since b0.6.10

When enabled, selecting a LaTeX command by for example double-clicking or using Ctrl+W will also include the backslash in the selection.

Option to show LaTeX package files in the structure view

Since b0.7

When selected, included LaTeX packages will appear in the structure view. Because TeXiFy has to determine the location of every included package in order to show the file, this may take extra time to load the structure view after every reboot of IntelliJ.

Option to enable smart quote substitution

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.

Typing \" will still always work. In other cases, there are three options.

Ligatures

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''.

Commands

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{}.

Csquotes

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. Whenever the next character is not a closing brace, we assume you want opening quotes and insert the \enquote command.

Option to change the minimum sectioning level for which the missing label inspection is shown

When set to \subsection, the missing label inspection will trigger for \subsection, \section, \chapter and \part. Similar for other settings.

Option to select default PDF viewer

Since b0.6.7

This lists all supported pdf viewers that are installed on your system, which you can select as the default pdf viewer. Selecting a supported viewer as default means that you get forward and inverse search, and that the selected pdf viewer is the viewer that will open when compilation is done.

The supported pdf viewers are Sumatra for Windows, and Evince and Okular for linux. You can use any other pdf viewer by selecting the option Custom PDF Viewer.

This documentation has moved to https://hannah-sten.github.io/TeXiFy-IDEA

Clone this wiki locally