Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fixes etc. #36

Merged
merged 5 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# LaTeX - Preamble and Examples
[![version](https://img.shields.io/badge/version-2.0-blue.svg)](https://github.com/SSoelvsten/LaTeX-Preamble_and_Examples/tree/main)
[![version](https://img.shields.io/badge/version-2-blue.svg)](https://github.com/SSoelvsten/LaTeX-Preamble_and_Examples/tree/main)
[![MIT License](https://img.shields.io/badge/license-MIT%20License-blue.svg)](LICENSE.md)
[![test](https://github.com/SSoelvsten/LaTeX-Preamble_and_Examples/workflows/test/badge.svg?branch=main)](https://github.com/SSoelvsten/LaTeX-Preamble_and_Examples/actions?query=workflow%3Atest+branch%3Amain)

Expand Down
Binary file modified documents/examples_article.pdf
Binary file not shown.
14 changes: 7 additions & 7 deletions documents/examples_article.tex
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
% Font sizes of relevance: \normalsize, \large, \Large, \LARGE, \huge, \Huge
\title{{\LARGE Reverse engineerable \LaTeX examples}}

\author{Steffan Sølvsten\footnote{Together with numerous many other beautiful
\author{Steffan S{\o}lvsten\footnote{Together with numerous many other beautiful
people at Aarhus Univesity.}}
\date{Aarhus University \\ \mailto{soelvsten@cs.au.dk} \\[\baselineskip] \today}

Expand Down Expand Up @@ -339,17 +339,17 @@ \section{Tables and figures}

\begin{subfigure}{0.59\linewidth}
\centering

\includegraphics[width=\linewidth]{img/picture_1.jpg}

\caption{An image}
\label{fig example: sub figure 1}
\end{subfigure}
\begin{subfigure}{0.39\linewidth}
\centering

\includegraphics[width=\linewidth]{img/picture_2.jpg}

\caption{Another image}
\label{fig example: sub figure 2}
\end{subfigure}
Expand Down Expand Up @@ -556,7 +556,7 @@ \subsection{Math and grammars}
\\
Aa &\quad \rightarrow\quad aa
\end{align*}

\caption{A context-sensitive grammar for the language $\set{a^nb^na^nb^n}{n \geq 0}$}
\label{fig:csl}
\end{figure}
Expand Down Expand Up @@ -609,7 +609,7 @@ \section{Code}

\begin{lstfloat}
\centering

\begin{blstlisting}[firstnumber=1]
Algorithm : *@\textbf{Linear Exponentiation}@*(x,p)
Input : $p \geq 0$
Expand Down
Binary file modified documents/examples_beamer.pdf
Binary file not shown.
22 changes: 11 additions & 11 deletions documents/examples_beamer.tex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
\title{Reverse engineerable \LaTeX examples:}
\subtitle{Beamer presentations}

\author{\textbf{Steffan Christ S\o lvsten}}
\author{\textbf{Steffan Christ S{\o}lvsten}}

\institute{Aarhus University}

Expand Down Expand Up @@ -110,10 +110,10 @@ \section{Figures, Tables, and Graphics}
\\ \hline
$\gamma$ & $\beta$
\end{tabular}

\caption{A table}
\label{tab:label}
\end{table}
\end{table}
\end{frame}


Expand Down Expand Up @@ -149,7 +149,7 @@ \subsection{Simple use of pause and onslide}
To animate slides it is luckily not necessary to copy paste all of the code
and change one thing after the other! Otherwise Bærbak would definitely have
been very sad.

The simplest animations you need is slowly revealing the slide, such as the
bullet points below. This is done using the \lstinline{\\pause}
command.
Expand All @@ -158,7 +158,7 @@ \subsection{Simple use of pause and onslide}
\item An item, that is shown at the very beginning.

\pause

\item An item, that is first shown on the ``next slide''
\end{itemize}

Expand Down Expand Up @@ -277,7 +277,7 @@ \subsection{Tikz animations}
\onslide<1-1>{
\node[state, label=left:$\rightarrow$, cyan] {$q_0$};
}

\onslide<2-2>{
\draw[->, cyan]
(q0) edge[bend left] node[below left] {$a$} (q1)
Expand All @@ -286,7 +286,7 @@ \subsection{Tikz animations}
\node[state, above left=of q0, cyan] {$q_1$};
\node[state, below left=1cm and 0.2cm of q0, cyan] {$q_2$};
}

\onslide<3-3>{
\draw[->, cyan]
(q1) edge[bend left] node[above right] {$a$} (q0)
Expand All @@ -295,7 +295,7 @@ \subsection{Tikz animations}
\node[state, label=left:$\rightarrow$, cyan] {$q_0$};
\node[state, below right=1cm and 0.2cm of q0, cyan] {$q_3$};
}

\onslide<4-4>{
\draw[->, cyan]
(q0) edge node[below right] {$b$} (q4)
Expand All @@ -307,7 +307,7 @@ \subsection{Tikz animations}
}
\end{tikzpicture}
\end{column}
\end{columns}
\end{columns}
\end{frame}

\subsection{Animating code}
Expand All @@ -317,7 +317,7 @@ \subsection{Animating code}
be useful for showing a \emph{Coq} proof as below
\begin{lstlisting}[language=coq]
Theorem plus_n_O : forall n:nat, n = n + 0.
Proof.*@\pause@*
Proof.*@\pause@*
induction n as [| n' IHn'].*@\pause@*
- (* n = 0 *)
reflexivity.*@\pause@*
Expand All @@ -333,7 +333,7 @@ \subsection{Animating code}
{\hrule width0.5\linewidth}

\vspace{5pt}

\begin{itemize}
\item[\faIcon{envelope}] \mailto{soelvsten@cs.au.dk}
\item[\faIcon{twitter}] \href{https://www.twitter.com/ssoelvsten}{@ssoelvsten}
Expand Down
Binary file modified documents/template_beamer.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion documents/template_blank.tex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
% Font sizes of relevance: \normalsize, \large, \Large, \LARGE, \huge, \Huge
\title{{\LARGE \coursename} \\ {\large \handinname}}

\author{Steffan Sølvsten}
\author{Steffan S{\o}lvsten}

% ---------------------------------------------------------------------------- %
% Content
Expand Down
Binary file modified documents/template_dissertation.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions documents/template_dissertation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
% Page layout
% ---------------------------------------------------------------------------- %
\usepackage[a4paper]{geometry}
\usepackage{lastpage, fancyhdr}
\usepackage{fancyhdr}
\pagestyle{fancy}

% Top: Odd pages (Main for onesided)
Expand Down Expand Up @@ -73,7 +73,7 @@
% ---------------------------------------------------------------------------- %
% Authors
% ---------------------------------------------------------------------------- %
\author{Steffan Sølvsten and Lorem Ipsum}
\author{Steffan S{\o}lvsten and Lorem Ipsum}
\date{Aarhus University \\ \mailto{{soelvsten,ipsum}@cs.au.dk} \\[2\baselineskip] \today}

% ---------------------------------------------------------------------------- %
Expand Down
Binary file modified documents/template_report.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions documents/template_report.tex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
% Page layout
% ---------------------------------------------------------------------------- %
\usepackage[a4paper]{geometry}
\usepackage{lastpage, fancyhdr}
\usepackage{fancyhdr}
\pagestyle{fancy}

% Top: Odd pages (Main for onesided)
Expand Down Expand Up @@ -72,7 +72,7 @@
% ---------------------------------------------------------------------------- %
% Authors
% ---------------------------------------------------------------------------- %
\author{Steffan Sølvsten and Lorem Ipsum}
\author{Steffan S{\o}lvsten and Lorem Ipsum}
\date{Aarhus University \\ \mailto{{soelvsten,ipsum}@cs.au.dk} \\[\baselineskip] \today}

% ---------------------------------------------------------------------------- %
Expand Down
2 changes: 1 addition & 1 deletion preamble/preamble_base_p1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
}
\DeclareCaptionFormat{listing}{%
\makebox[2.1cm][l]{\qquad#1#2}%
\parbox[t]{\dimexpr \captionwidth-2.1cm}{#3}%
\parbox[t]{\dimexpr \textwidth-2.1cm}{#3}%
}
\captionsetup[lstlisting]{format=listing, singlelinecheck=off, labelsep=colon}

Expand Down
Loading