Kevin De Baerdemaeker

LaTeX

Modified 2022-11-16

Syntax

Commenting with %

Ending a paragraph with \@

Common Packages

Color

\usepackage[x11names]{xcolor}
\usepackage{hycolor}
\usepackage[colorlinks=true, urlcolor=DeepPink3]{hyperref}

Fonts

The fonts have to be installed on your system, before lualatex is able to pick those fonts up.

\usepackage{fontspec}
\setmainfont{Barlow}

Images

\usepackage{graphicx}

\graphicspath{ {.} }

\includegraphics[width=\linewidth]{me}%

Adjusting Document Dimensions

\usepackage[a4paper, margin=2cm]{geometry}

Modifying maketitle

\usepackage{titling}

\renewcommand{\maketitle}{%
  \noindent%
  \begin{minipage}[c]{0.7\linewidth}%
    \huge\bfseries\theauthor%

    \large\thetitle%
  \end{minipage}\hfill\begin{minipage}[c]{0.3\linewidth}%
    \includegraphics[width=\linewidth]{me}%
  \end{minipage}%
  \vspace{2em}%
}

Modifying \section titles

\usepackage{titlesec}

\titleformat{\section}{\Large\bfseries}{}{0em}{}
\titleformat{\subsection}{\large\bfseries}{}{0em}{}

Separating Paragraphs

\usepackage{parskip}

Backlinks