From 6df26c02303da93ae592b58c06e18adb646f47db Mon Sep 17 00:00:00 2001 From: Blendoit Date: Sat, 12 Sep 2020 12:34:41 -0700 Subject: Minted---colored source blocks in Org LaTeX exports. --- templates/documents/general.org | 10 ++++++---- templates/documents/general.org_title | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'templates') diff --git a/templates/documents/general.org b/templates/documents/general.org index 43bf396..8b360db 100644 --- a/templates/documents/general.org +++ b/templates/documents/general.org @@ -1,4 +1,4 @@ -# -*- mode: org; -*- +# -*- mode: org; -*- # # Hide Org mode tags #+OPTIONS: tags:nil @@ -7,8 +7,10 @@ # Ensure room for header and footer #+LATEX_HEADER: \usepackage[left=1in,right=1in,top=1in,bottom=1.75in]{geometry} -# A beautiful font indeed -#+LATEX_HEADER: \usepackage{fourier} +# Beautiful fonts ONLY +#+LATEX_HEADER: \usepackage{fontspec} +#+LATEX_HEADER: \setmainfont{liberation serif} +#+LATEX_HEADER: \setmonofont{hermit} # Get total page count to insert in footer #+LATEX_HEADER: \usepackage{lastpage} @@ -26,7 +28,7 @@ #+LATEX_HEADER: \usepackage{fancyhdr} #+LATEX_HEADER: \setlength{\headheight}{40pt} #+LATEX_HEADER_EXTRA: \pagestyle{fancy} -#+LATEX_HEADER_EXTRA: \fancyhead[L]{\rule[-12pt]{0pt}{0pt}\theauthor} +#+LATEX_HEADER_EXTRA: \fancyhead[L]{\rule[-12pt]{0pt}{0pt}\texttt{\theauthor}} #+LATEX_HEADER_EXTRA: \fancyhead[C]{\large\textbf{\thetitle}} #+LATEX_HEADER_EXTRA: \fancyhead[R]{\thedate} #+LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.4pt} diff --git a/templates/documents/general.org_title b/templates/documents/general.org_title index 3cf4431..c2c3c09 100644 --- a/templates/documents/general.org_title +++ b/templates/documents/general.org_title @@ -1,8 +1,10 @@ +# -*- mode: org; -*- # + #+OPTIONS: title:nil toc:nil # Increase spacing between header rule and main text body #+LATEX: \rule[-2in]{0pt}{0pt}\\ #+LATEX: \Huge\textbf{\thetitle}\\[1in] -#+LATEX: \LARGE\theauthor\\ +#+LATEX: \LARGE\texttt{\theauthor}\\ #+LATEX: \thedate #+LATEX: \clearpage -- cgit v1.2.3