\documentclass[12pt]{article}

\usepackage{yfonts} % Used for initial capitals
\usepackage{graphicx} % Used for images
\usepackage[margin=1.5in]{geometry} % Define shape of page
\setlength{\skip\footins}{0.5cm} % Change length of footnote from body
\usepackage{tipa} % For Latin characters (short and long).
\usepackage[polutonikogreek,english]{babel} % For other languages

\usepackage[style=apa]{biblatex} %Imports biblatex package
\addbibresource{./references.bib} %Import the bibliography file

% The following four packages are used to take a pdf_tex file
% from Inkscape and render it
\usepackage{import}
\usepackage{xifthen}
\usepackage{pdfpages}
\usepackage{transparent}

\title{Common Tex Commands}
\author{Jeremy Cains}
\date{} % No date

\begin{document}

% Macro for full length line
\newcommand{\sectionline}{
    \vspace{16pt}
        \hrule
    \vspace{14pt}
}

% Macro for pdf_tex file in ./figures folder
\newcommand{\incfig}[1]{%
    \def\svgwidth{\columnwidth}
    \import{./figures/}{#1.pdf_tex}
}

\maketitle

\section{Amare et Servire}

\subsection{Quid est Servire?}

\yinipar{L}\textsc{orem} ipsum dolor sit amet, consectetur adipiscing elit.
Aliquam mi quam, convallis ac vehicula vel, ultrices vel eros. Donec in sem eu
eros fringilla facilisis. Curabitur auctor orci urna, quis maximus mi ornare
finibus. Nulla at nisi et lorem rhoncus tincidunt. Etiam quis interdum arcu.
Sed sed molestie lorem (\cite{tachella2023learning}). % Note: citations require the bibliography file 
                                                      % as defined in the imports section

\begin{equation}
    a^2 = b^2 + c^2
\end{equation}

\emph{Donec} vitae feugiat \texttt{dolor}. Fusce \textbf{efficitur} ullamcorper
\textit{ultricies}. In non auctor \underline{nisl}. In sit amet semper leo.
Curabitur quis ex lacinia, dignissim felis in, feugiat tortor. Integer ac enim
non ex sollicitudin eleifend. Cras velit enim, consequat sit amet ultrices a,
faucibus lobortis augue. 

Quisque tempus ornare vehicula.\footnote{Exampla vocabularum sub corpe.} Nulla
eleifend lacus quis pellentesque viverra, ergo $e^{i\pi} = -1$.

\begin{quote}
    Vivamus vel ex eu arcu fermentum imperdiet. Phasellus ultricies, turpis nec
    maximus tempus, urna diam dignissim augue, sed varius ex urna sit amet
    mauris. Morbi consectetur ut dolor sit amet fringilla. 
\end{quote}

Etiam congue accumsan sagittis. Vivamus auctor leo orci, ac viverra nibh
convallis nec. Morbi non augue purus. Curabitur vitae pellentesque risus. In
hac habitasse platea dictumst. 

\begin{itemize}
    \item Nam id sem ligula. 
    \item Curabitur sagittis tincidunt nisl a pulvinar.
\end{itemize}

Aenean viverra vel mi eget rutrum. Nunc odio sem, egestas ut vestibulum vitae,
convallis at lorem. Suspendisse vel pulvinar justo, quis imperdiet neque.

\begin{enumerate}
    \item Maecenas placerat, arcu in ullamcorper maximus, risus risus
        condimentum est, a sollicitudin nulla nulla in libero. 
    \item Nullam hendrerit tempor risus, eget condimentum enim egestas \\
        dapibus.
\end{enumerate}

Suspendisse vel pulvinar justo, quis imperdiet neque.

\begin{center}
    \begin{tabular}{l | c}
        Vestibulum & Consectetur \\
        \hline \hline
        Placerat & Nibh \\
        \hline
        Nibh & Placerat
    \end{tabular}
\end{center}

Nullam tempor, nisi aliquet bibendum iaculis, mauris est posuere arcu, sed
scelerisque arcu elit non quam (Figure \ref{pda}).

% Note: you must have a figures directory in the directory containing the .tex file
\begin{center}
    \includegraphics[height=5cm]{"./figures/Amhara_peoples_-_Illuminated_Gospel_14th-15th_cent.jpg"}
    \includegraphics[height=5cm]{"./figures/Ezra_-_Processional_Cross_1500.jpg"}
\end{center}

Aenean viverra vel mi eget rutrum. Nunc odio sem, egestas ut vestibulum vitae,
convallis at lorem. Suspendisse vel pulvinar justo, quis imperdiet neque.

\begin{verbatim}
import numpy as np

def piToN(n):
    return np.pi**n
\end{verbatim}

\sectionline

\begin{figure}
    \begin{center}
        \incfig{drawing}
    \end{center}
    \caption{A PDA.}
    \label{pda}
\end{figure}

L\textipa{\u=o}r\u em \'ips\=um \textgreek{ανηρ}.

\newpage

\subsection{Extra things to look up}

\begin{itemize}
    \item Other languages (in particular, Hebrew) % For example, גהר
\end{itemize}

\printbibliography

\end{document}
