# -*- mode: org; eval: (visual-line-mode); -*- # Hide Org mode tags #+OPTIONS: tags:nil #+LATEX_CLASS: article # Ensure room for header and footer #+LATEX_HEADER: \usepackage{geometry}[ #+LATEX_HEADER: left = 1in , #+LATEX_HEADER: right = 1in , #+LATEX_HEADER: top = 1in , #+LATEX_HEADER: bottom = 1.75in ,] # Beautiful fonts ONLY #+LATEX_HEADER: \usepackage{fontspec} # Regular font #+LATEX_HEADER: \setmainfont[Scale=0.872]{Public Sans} # Monospaced font #+LATEX_HEADER: \setmonofont{Inconsolata} # Get total page count, to later insert in page footer. #+LATEX_HEADER: \usepackage{lastpage} # Provide access to \title, \author, and \date. #+LATEX_HEADER: \usepackage{titling} # Colors are used for gray header and footer content. #+LATEX_HEADER: \usepackage{xcolor} # Headers and footers. #+LATEX_HEADER: \usepackage{fancyhdr} # Space in the header for a logo or image. #+LATEX_HEADER: \setlength{\headheight}{36pt} #+LATEX_HEADER_EXTRA: \pagestyle{fancy} #+LATEX_HEADER_EXTRA: \fancyhead[L]{\rule[-12pt]{0pt}{0pt}\color{gray}\texttt{\theauthor}} # #+LATEX_HEADER_EXTRA: \fancyhead[C]{\color{gray}\large\bfseries\thetitle} #+LATEX_HEADER_EXTRA: \fancyhead[R]{\color{gray}\thedate} # Make header line gray #+LATEX_HEADER_EXTRA: \renewcommand{\headrule}{\hbox to\headwidth{% #+LATEX_HEADER_EXTRA: \color{gray}\leaders\hrule height \headrulewidth\hfill}} #+LATEX_HEADER_EXTRA: \fancyfoot[C]{\color{gray}\hrulefill\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em]\footnotesize Compiled with \includegraphics[width=1.618ex]{~/.emacs.d/img/icons/EmacsIcon.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/Org-mode-unicorn.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/LuaTeX_logo.png}/...\\ Copyright \copyright~2020 Marius Peter. All rights reserved.} #+BEGIN_SRC emacs-lisp :exports none :cache no :results raw (concat "#+LATEX_HEADER_EXTRA:" "\\fancyfoot[C]{\\hrulefill\\\\[0.8em] " "Page \\thepage/\\pageref*{LastPage}\\\\[0.8em] " "\\footnotesize Compiled with" "\\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/EmacsIcon.png}/" "\\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/Org-mode-unicorn.png}/" "\\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/LuaTeX_logo.png}/..." " On \\texttt{" (with-temp-buffer (org-insert-time-stamp (current-time))) "}\\\\ Copyright \\copyright~2020 Marius Peter. All rights reserved.}") #+END_SRC # #+RESULTS: # #+LATEX_HEADER_EXTRA:\fancyfoot[C]{\hrulefill\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em] \footnotesize Compiled with\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/EmacsIcon.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/Org-mode-unicorn.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/LuaTeX_logo.png}/... On \texttt{<2020-11-23 Mon>}\\ Copyright \copyright~2020 Marius Peter. All rights reserved.}