LaTex Cheat-Sheet

\input
\include

When should I use \input vs. \include?

\baselineskip <Abstand>
\setlength{\baselineskip}{<Abstand>}

baselineskip, Legt den Zeilenabstand innerhalb eines Absatzes fest.

\textwidth
\columnwidth
\linewidth          (number of characters per line) 

\showwidth{textwidth}
\showwidth{columnwidth}
\showwidth{linewidth}

Textbreite

\abovedisplayskip      % 10pt plus 2pt minus 5pt
\abovedisplayshortskip % 0pt plus 3pt
\belowdisplayskip      % 10pt plus 2pt minus 5pt
\belowdisplayshortskip % 6pt plus 3pt minus 3pt

\setlength\abovedisplayshortskip{0pt}
\setlength\belowdisplayshortskip{0pt}
\setlength\abovedisplayskip{20pt}
\setlength\belowdisplayskip{20pt}

Wie stelle ich die Abstände vor und nach abgesetzten Gleichungen bzw. Formeln ein?

Bezeichnungen beim Paket german
Original Übersetzung ggf. Alternativen
\preface Vorwort
\ref Literatur
\abstract Zusammenfassung
\bib Literaturverzeichnis
\chapter Kapitel
\appendix Anhang
\contents Inhaltsverzeichnis Inhalt
\listfigure Abbildungsverzeichnis Abbildungen
\listtable Tabellenverzeichnis Tabellen
\index Index oder Sachregister
\figure Abbildung
\table Tabelle Tafel
\part Teil
\encl Anlage(n) Beilage(n)
\cc Verteiler Kopien an
\headto An
\page Seite
\see siehe
\also siehe auch
\proof Beweis (babel)
\glossary Glossar (babel)

Qt

Installation

Qt

Build

$ qmake project.pro

Switch between Qt4 and Qt5

How do I change which version of Qt is used for qmake?

$ qtchooser -list-versions
4
5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5

c$ QT_SELECT=qt4 qmake --version
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory

$ QT_SELECT=qt5 qmake --version
QMake version 3.1
Using Qt version 5.9.1 in /usr/lib/x86_64-linux-gnu

Serial

Project ERROR: Unknown module(s) in QT: serialport

$ QT_SELECT=qt5 qmake candle.pro 
Info: creating stash file /home/andreas/src/Candle/src/.qmake.stash
Project ERROR: Unknown module(s) in QT: serialport

$ sudo apt-get install libqt5serialport5-dev

How to use CMake / CMake HowTo

The Ultimate Guide to Modern CMake
Debug vs Release in CMAKE
How can I add a flag at the end of the linking command line using CMake?
Modern CMake with target_link_libraries
Cmake target_link_libraries not linking my library
cflags ‘-Wl,-export-dynamic’ vs linker flags ‘-export-dynamic’
Why would an executable export symbols?
github.com/GENIVI/vsomeip/blob/master/CMakeLists.txt