Texmaker Guide
Texmaker Guide
TeXMaker is the recommended editor for writing LaTeX. It is a cross-platform editor, which can be
used for Windows, Mac and Linux. TeXMaker is a quite ordinary editor with a writing window,
structure window, statusbar, functions and toolbars. This is shown below.
- The green area shows the writing window. Here both body text and code is written.
- The blue area shows the structure of the current document – unfortunately not the global
structure. But is contains links to chapters, sections, figures, tables, labels, equations and
so on. Clicking the links will forward you to that element in the document.
- The red area is the compiling tools. Different commands can be chosen and they are
activated by pressing the arrows left of the command. This is where you press in order to
compile/build the document (convert code to PDF).
- The yellow area is the statusbar, where all actions concerning the compilation are shown.
Erros and warnings will also be displayed together with the location. Arrows should guide
you there.
- The orange areas are toolbars. Here you can find shortcuts to greek letters, symbols, italic
and bold styles and much more. Some of them open a menu, which will be shown in the
structure window. It can be closed again by pressing the top-left icon.
Settings
The settings of TeXMaker are briefly described. However, the program runs very fine with default
settings. The settings are found under ”Options” – ”Configure TeXMaker” and in Mac under
”TeXMaker” – ”Preferences”.
In the Commands sheet you can find shortcuts for all functions, which communicate with the
LaTeX-distribution. This is automatically synchronized. Worth to mention is that you can select
different viewers. There are 3 options.
1. Built-in viewer
2. Built-in viewer embedded
3. External viewer
The first is TeXMakers own viewer. This opens the output (the PDF) in a separate window. The
second is also TexMakers, but the difference is that the output window is mounted (embedded) in
the editor next to the writing window. The third option is external software, typically Adobe
Acrobat/Reader, but it can also be Foxit, Sumatra or suchlike.
In the Quick Build sheet the Quick Build function is defined. It can be considered as a series of
functions/commands, which are assembled into one function to ease the process. The default
setting is ”PDFLaTeX + View PDF”, which corresponds fine to the daily need – wanting to compile
the code and view the result. All commands named ”LaTeX” compiles to PS (PostScript).
With the ”wizard”-button you are able to define your own Quick Build function. It is easily
assembled from a list. If you often code dynamical elements (which requires 3x compilation),
maybe 3x ”PDFLaTeX” + ”View PDF” could be an valuable option. If citations are needed,
”PDFLaTeX” + ”BibTeX” + 2x ”PDFLaTeX” + ”View PDF” is a possibility. This is also described in the
exercises.
Mac-users beware: When you use the bibliography style we have handed out (harvard.bst), it will
trigger an error when compiling with BibTeX. The error has no impact and can be ignored.
However, the compilation will stop, which means that the suggested Quick Build will not work. It
can then be devided or alternatively the shortcuts can easily be learned (see under “Tools”).
In the Editor sheet you can change font type and the font size in the editor. This has nothing to do
with the font settings in the report, but only the appearance in the editor. Inline spelling dictionary
can also be selected here.
In the Shortcuts sheet you can define shortcuts for a number of regularly used commands.
For environments and templates shortcuts are not enough. Here you can define so-called User
Tags, which can insert larger pieces of code. It can be codes for figure-, table- or equation-
environments and suchlike. There is room for 10 User Tags, which can be inserted with defined
shortcuts. The function can be found under ”User” – ”User Tags”. In the figure below there is
shown an example of an equation-environment, which is pre-coded as much as possible. Maybe
the LaTeX templates on the home page can be of inspiration.