diff --git a/.latexmkrc b/.latexmkrc index 9146604..8725ec0 100644 --- a/.latexmkrc +++ b/.latexmkrc @@ -1,8 +1,10 @@ +$aux_dir = "target"; $bibtex_use = 2; $cleanup_includes_cusdep_generated = 1; $out_dir = "target"; $pdf_mode = 5; $silent = 1; +$xelatex = "xelatex -shell-escape %O %S"; # Beamer-specific extensions $clean_ext = "nav snm %R-*.png"; diff --git a/assets/bad.sig b/assets/bad.sig new file mode 100644 index 0000000..b9045ae --- /dev/null +++ b/assets/bad.sig @@ -0,0 +1,8 @@ +Hi mate, how's it going? +-- +arto +Backend Engineer +Big Tech Company +No one cares +E: arto@example.org +P: +393284567890 diff --git a/assets/good.sig b/assets/good.sig new file mode 100644 index 0000000..64e64f1 --- /dev/null +++ b/assets/good.sig @@ -0,0 +1,5 @@ +Hi mate, how's it going? +-- +arto +E: arto@example.org +P: +393284567890 diff --git a/assets/muttrc-sig.conf b/assets/muttrc-sig.conf new file mode 100644 index 0000000..a21265a --- /dev/null +++ b/assets/muttrc-sig.conf @@ -0,0 +1,2 @@ +# Mutt config file +set signature = "~/arto.sig" diff --git a/get-assets.sh b/get-assets.sh new file mode 100755 index 0000000..d2c4729 --- /dev/null +++ b/get-assets.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# The "slides" prefix is a workaround for latexmk cleanup +# see: https://tex.stackexchange.com/questions/484484/clean-comment-cut-file-with-latexmk + +# Check if the files have already been downloaded +set -- /target/*.jpg +[ -f "$1" ] || exit 0 + +wget -O target/slides-thunderbird-sig.jpg https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/gallery/images/2011-03-14-10-05-42-4bdd77.jpg diff --git a/sections/signature.tex b/sections/signature.tex new file mode 100644 index 0000000..81d6b16 --- /dev/null +++ b/sections/signature.tex @@ -0,0 +1,25 @@ +\section{Rule number 1: signatures} +\begin{frame}{Good or bad?} + \lstinputlisting{assets/bad.sig} +\end{frame} +\begin{frame}{Good or bad?} + \lstinputlisting{assets/good.sig} +\end{frame} +\begin{frame}{Why?} + RFC 1855~\cite{rfc1855} clearly states that: + + \begin{quote} + If you include a signature keep it short. Rule of thumb + is no longer than 4 lines. Remember that many people pay for + connectivity by the minute, and the longer your message is, + the more they pay. + \end{quote} +\end{frame} +\begin{frame}{How to (Thunderbird)} + \centering + \includegraphics[scale=0.35]{target/slides-thunderbird-sig.jpg} +\end{frame} +\begin{frame}{How to (neomutt)} + \centering + \lstinputlisting[language=sh]{assets/muttrc-sig.conf} +\end{frame} diff --git a/slides.tex b/slides.tex index dc7a62c..8ea4867 100644 --- a/slides.tex +++ b/slides.tex @@ -3,6 +3,10 @@ % Packages \usepackage[english]{babel} % Proper hyphenation +\usepackage{listings} % Side by side examples + +% Download pictures +\write18{./get-assets.sh} % Setup titlepage data \title{Mail me baby one more time} @@ -17,6 +21,7 @@ \maketitle \input{sections/presentation} + \input{sections/signature} \nocite{*} \bibliography{refs}