-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.tex
134 lines (111 loc) · 3.42 KB
/
sample.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
%!TEX program = xelatex
\documentclass{beamer}
% Good bibliography
\RequirePackage[backend=biber]{biblatex}
\addbibresource[datatype=bibtex]{biblio.bib}
% Manage encoding
\RequirePackage[utf8]{inputenc}
\RequirePackage[english]{babel}
% Icon Fonts
\RequirePackage{academicons}
\RequirePackage{fontawesome5}
% Correct the path when including svg pictures
\RequirePackage{import}
% For nice verbatim
\RequirePackage{minted}
% Arrange theme
\usetheme[
progressbar=frametitle,
sectionpage=none,
numbering=fraction
]{metropolis}
% Color the progress bar
\setbeamercolor{progress bar}{fg=green,bg=white}
\author{Maxime Garcia}
\date{\today}
\institute{MaxUlysse}
\subtitle{with metropolis theme}
\title{compile-latex}
\titlegraphic{\includegraphics[height=1cm]{pictures/compile-latex_logo}}
\begin{document}
\maketitle
\begin{frame}[fragile]{compile-latex}
Just a simple latex compiler with Nextflow and a Docker container
Usage:
\begin{minted}[fontsize=\tiny]{bash}
nextflow run MaxUlysse/compile-latex \
--tex <file.tex> \
[--bibliography <bib file>] \
[--pictures <pictures directory>]
\end{minted}
This pdf was compiled using
\begin{minted}[fontsize=\tiny]{bash}
nextflow run MaxUlysse/compile-latex \
--tex sample.tex
\end{minted}
\end{frame}
\begin{frame}[fragile]{Insert code - Code / Results}
\tiny
\mint{latex}|\begin{minted}[fontsize=\tiny]{latex}|
\vspace{-2\baselineskip}
\mint{latex}|Code to display|
\vspace{-2\baselineskip}
\mint{latex}|\end{minted}|
or
\begin{minted}[fontsize=\tiny]{latex}
\mint{latex}|Code to display|
\end{minted}
\end{frame}
\begin{frame}[fragile]{Use references - Code / Results}
\begin{minted}[fontsize=\tiny]{latex}
The document is an example of BibTeX using in bibliography management.
Three items are cited: \textit{The \LaTeX\ Companion} book \cite{latexcompanion},
the Einstein journal paper \cite{einstein},
and the Donald Knuth's website \cite{knuthwebsite}.
The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}.
\end{minted}
The document is an example of BibTeX using in bibliography management.
Three items are cited: \textit{The \LaTeX\ Companion} book \cite{latexcompanion},
the Einstein journal paper \cite{einstein},
and the Donald Knuth's website \cite{knuthwebsite}.
The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}.
\end{frame}
\begin{frame}[fragile]{Print the bibliography - Code / Results}
\begin{minted}[fontsize=\tiny]{latex}
\printbibliography
\end{minted}
\printbibliography
\end{frame}
\begin{frame}[fragile]{Use Font-Awesome and Academicons - Code / Results}
\begin{minted}[fontsize=\tiny]{latex}
GitHub: \faGithub
DOI: \aiDoi
\end{minted}
GitHub: \faGithub
DOI: \aiDoi
\end{frame}
\begin{frame}[fragile]{Insert Picture - Code}
\begin{minted}[fontsize=\tiny]{latex}
\begin{center}
\includegraphics[width=.8\linewidth]{pictures/SciLifeLab-Snowpocalypse.jpg}
\end{center}
\end{minted}
\end{frame}
\begin{frame}{Insert Picture - Result}
\begin{center}
\includegraphics[width=.8\linewidth]{pictures/SciLifeLab-Snowpocalypse.jpg}
\end{center}
\end{frame}
\begin{frame}[fragile]{Change Background - Code}
\begin{minted}[fontsize=\tiny]{latex}
\usebackgroundtemplate{
\includegraphics[width=\paperwidth]{pictures/SciLifelab-BlueSky.jpg}
}
\end{minted}
\end{frame}
\usebackgroundtemplate{
\includegraphics[width=\paperwidth]{pictures/SciLifelab-BlueSky.jpg}
}
\begin{frame}[plain,noframenumbering]{Change Background - Result}
\end{frame}
\end{document}