Things to Know

Include svg files and convert them on-the-fly

  • Inkscape must be installed.

  • The path to the Inkscape binary has to be in the System’s PATH variable or be specified with the inksacepeexe option in \svgsetup{}.


  • You might have to add Inskscape to PATH manually on Windows native installations.

  • Inkscape is already installed and ready to use in the BFH-LaTeX Docker image.

\usepackage{svg} % Include Packages
% use inkscapepath = <GENERATE_FOLDER> e.g _build
\svgpath{{svg/}{/usr/local/svg/}} % set source folder 

\includesvg[width=.75\textwidth]{svg-file} % include svg image


The documentation for additional options to the svg package can be found here.

If you don’t want to use Inkscape, you can convert the svg manually to pdf or png with e.g. cairosvg and include the generated file in the LaTeX document.

Change the depth of the table of contents

If you want to change the depth shown in the table of contents, use the setcounter command and the alias name tocdepth


Change the global document font

If you use the BFH document classes the default font is unitslap (for BFH members only) or if not available the open fallback font nunito. To change the font of the document globally, us the setmainfont command. However, you should not modify the font of a document because this may break with CD guide lines.



\setmainfont{Latin Modern Roman}

Structure of a LaTeX document

If you have trouble to keep the overview over you document, we recommend to split up a large document in separate .tex files and assemble the content in a main file accordingly.


Have a look into the templates provided by the BFH to get the idea.

Include PDF files in LaTeX


\includepdf[angle=, pages={}]{pdf-file}

Please see the official documentation for available options to the pdfpages package.

Align pictures side by side

You can use minipage environment, it can be filled with any LaTeX code.

    \caption{example 1}
    \caption{example 2}

Use the BFHtermial within BFHbeamer

If you have a runaway error using the bfhterminal within the bfhbeamer class, make sure you have passed the proper option [fragile] to the frame environment.


    man man

Add a caption to a BFHterminal

The control sequence \captionof can be used to do so:


  echo "Hello World" `\StartConsole`
  Hello World
\captionof{lstlisting}{This is a caption}


Read the texdoc manual for information about biblatex.


Our templates provide some good examples to start with.

Simple example


    author =       "Albert Einstein",
    title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
        [{On} the electrodynamics of moving bodies]",
    journal =      "Annalen der Physik",
    volume =       "322",
    number =       "10",
    pages =        "891--921",
    year =         "1905",
    DOI =          ""

    author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
    title     = "The \LaTeX\ Companion",
    year      = "1993",
    publisher = "Addison-Wesley",
    address   = "Reading, Massachusetts"

    author    = "Donald Knuth",
    title     = "Knuth: Computers and Typesetting",
    url       = "\~{}uno/abcde.html"


reference to einstein \cite{einstein}.

\bibliography{project}      % the project.bib file gets loaded