LaTeX
Modified 2022-11-16
Syntax
Commenting with %
- is also used for unintended newlines
Ending a paragraph with \@
- after a
.the programs adds a space, unless it's indicates it's the end of the paragraph
Common Packages
Color
\usepackage[x11names]{xcolor}Hyperlinks
\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}