Configuring TeXstudio#

TeXstudio can be adapted in a wide range. Some options are directly available in the GUI via context menus, see here , others are available with the “Configure TeXstudio” command in the “Options” menu (“Preferences” under Mac OS X). Note that there are two levels of detail. More advanced or less often used options are only visible if you toggle “Show advanced options” in the lower left corner.

Adapting the main GUI#

Side-panel (Docks)#

The side-panel and the log panel may be hidden with a control on the lower-left edge of the main window.

Hide panes

The sidepanel itself consists of different docks which can be reordered, split and even moved to the right hand side of the window.

Side-panel with all docks

side-panel with all docks

Dragging dock to new place

Dragging dock to new place

Split off dock

Split off dock

The side-panel set-up can be reset to default by using View/Show/”Reset Sidepanel/Docks”.

The menu “View/Show” also offers to show/hide docks.

Viewer Menu for docks

Toolbars#

The toolbars can be hidden by a right click anywhere on the toolbar area.

Toolbar Visibility Menu

They can be moved by dragging the handler on the left-hand side.

Moving Toolbars

Configuring some general aspects#

This panel allows the setting of some general aspects.

Configure General

The advanced options allow:

Configure General Advanced

Configuring the editor#

You may change the default encoding for new files (“Configure TeXstudio” -> “Editor” -> “Editor Font Encoding”) if you don’t want utf8 as encoding. Don’t forget to set the same encoding in the preamble of your documents. (e.g. \usepackage[utf8] , if you use utf-8).

TeXstudio can auto detect utf-8 and latin1 encoded files, but if you use a different encoding in your existing documents you have to specify it in the configuration dialog before opening them. (and then you also have to disable the auto detection)

Configure Editor

The advanced options allow among others:

Automatically load all included files of a LaTeX document

This load all child document and scans them. This is necessary to provide a complete set of available references, bibID and possibly used packages if they are defined in a child document

Scan LaTeX distribution for installed packages

This scan allows txs to determine if the given packages are valid and also to provide proposal for package name completion

Configure Editor advanced

Configuring the advanced editor settings (Advanced option)#

The advanced editor option allow fine control over many different aspects. The overview here is incomplete and concentrates on commonly used changes.

Show image tooltip on images in files

when hovering over an image filename (e.g. in a \includegraphics command), a tooltip with the graphics content is shown

Show help as tooltip on text in editor

when hovering over a LaTeX command in the editor, txs can show a tooltip on that command if it is described in some latex command reference.

This allows to change the line wrapping mechanism. By default all lines are wrapped at the window edge. They can also be wrapped after a defined number of characters which is not always the same horizontal width if the characters are not monospaced. Or hard line wrapping after a number of characters can be selected. This inserts a new line when the number of characters exceeds a defined values. This insertion is done when saving a document and only for changed lines.

Auto save all files

txs allows to automatically save all files every few minutes

Configure Editor advanced

The section for the structure panel offers:

Reference command in context menu

use this command when inserting a reference with command from a context menu

Regular expression for TODO comment

define what comment is considered as TODO comment (which are highlighted and collected specifically )

Use color in global TOC

The global TOC can use colored background to distinguish between different included files. Different color schemes and no color are possible.

Configure Editor advanced: structure panel

The table autoformatting affects the manipulate table tools .

Are special commands which do not add cell content and need to handled specially, e.g. \hline at the end of a row.

Special commands position

where to place them when reformatting a table.

One line per cell

when reformatting a table, just put each cell in an individual line

Configure Editor advanced: table autoformatting

Configuring the latex related commands#

LaTeX comes with a number of command line tools to compile and manipulate LaTeX documents. The commands section defines there location and arguments.

The default settings should work with the recent and standard LaTeX distributions, but you could have to modify them (“Configure TeXstudio” -> “Commands”). To change a command, just click on the button at the end of the corresponding line and select the command in the file browser : TeXstudio will automatically adapt the syntax of the command.

You can use a number of special characters / character sequences to address the context of the current document. They are expanded at runtime:

filename of the root document for of current document without extension

current line number

? followed by further characters

See the instruction at the bottom of the configuration dialog.

Location of the TeXstudio executable (useful for portable settings)

Location of the settings file (texstudio.ini)

You can always restore the original settings using the revert button to the right.

Configure Commands

Command syntax in detail#

Before an external command is executed the command line undergoes expansion where the following tokens are recognized and replaced by TeXstudio: