Updates to typeseting building scripts and templates

master
Alex Selimov 3 years ago
parent 142dc000b7
commit 0da88032fe

37
mkdoc

@ -1,37 +0,0 @@
#!/bin/bash
#This is a script to make document directories and copies template files over
function fail {
printf '%s\n' "$1" >&2
exit "${2-1}"
}
#Make the new project directory
if [ ! -d $1 ]; then
mkdir $1 || fail "Failed making project directory exiting script"
fi
#Set up the file structures
cd $1
if [ ! -d Figures ]; then
mkdir Figures
fi
case $2 in
"article")
cp ~/typesetting/article.md . ;;
"pres")
cp ~/typesetting/pres.md . ;;
"larticle")
cp ~/typesetting/article.tex ~/typesetting/GTLogo.pdf . ;;
"presentation")
cp ~/typesetting/presentation.tex ~/typesetting/GTLogo.pdf . ;;
"notes")
cp ~/typesetting/notes.md . ;;
*)
fail "$2 does not have a template"
esac

@ -1,51 +1,73 @@
\documentclass[11pt]{beamer}
\documentclass[12pt]{beamer}
\usetheme[progressbar=foot]{metropolis}
\usetheme{auriga}
\usecolortheme{auriga}
%\usepackage{fontspec}
%\setmainfont{Source Serif Pro}
%\setsansfont{Source Sans Pro}
\usepackage{enumitem}
\setitemize{itemsep=0.1em}
\setlist[itemize,1]{label=$\bullet$}
\usepackage{fontspec}
\setmonofont{Source Code Pro}
%Define the Colors
\definecolor{main}{HTML}{192E5B}
\definecolor{alert}{HTML}{0AAFF1}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\definecolor{deepblue}{rgb}{0,0,0.5}
\usepackage{appendixnumberbeamer}
\setbeamercolor{background canvas}{bg=white}
\setbeamercolor{normal text}{bg=white, fg=main}
\setbeamercolor{alerted text}{bg=white, fg=alert}
\setbeamercolor{block title}{bg=white,fg=alert}
\setbeamercolor{block body}{bg=white}
\setbeamerfont{caption}{size=\footnotesize}
%New bullet points
\setbeamertemplate{itemize item}[circle]
%\setbeamertemplate{itemize item}[circle]
\usepackage[url=false,doi=false,isbn=false]{biblatex}
\usepackage{listings}
\lstset{basicstyle=\ttfamily\tiny\color{black},breaklines=true,backgroundcolor=\color{lightgray},
numbers=left, stepnumber=1, commentstyle=\color{red}, keywordstyle=\color{blue}|,
escapeinside=||, stringstyle=\color{deepgreen}, emphstyle=\ttb\color{deepblue} }
\usepackage{booktabs}
\usepackage[scale=2]{ccicons}
\usepackage{subcaption}
\usepackage{pgfplots}
\usepackage{xspace}
\usepackage{siunitx} % Required for alignment
\sisetup{
round-mode = places, % Rounds numbers
round-precision = 2, % to 2 places
}
\usepackage{booktabs}
\usepgfplotslibrary{dateplot}
\pgfplotsset{compat=1.16}
\bibliography{/home/aselimov/latex/references}
\bibliography{/home/aselimov/typesetting/references}
\setbeamertemplate{bibliography item}{\insertbiblabel}
\setbeamerfont{footnote}{size=\scriptsize}
\setbeamerfont{frametitle}{size=\LARGE}
\setbeamerfont{footnote}{size=\tiny}
\definecolor{red}{RGB}{181, 23, 0}
\definecolor{blue}{RGB}{0, 118, 186}
\definecolor{gray}{RGB}{146, 146, 146}
\usepackage[labelformat=empty]{caption}
\DeclareCiteCommand{\footpartcite}[\mkbibfootnote]
{\usebibmacro{prenote}}
{ \setunit{\addnbspace}
\printnames{labelname}%
%\setunit{\labelnamepunct}
% \printfield[citetitle]{title}%
\newunit
\printfield{year}}
{\addsemicolon\space}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\partcite}
{\usebibmacro{prenote}}
{ \setunit{\addnbspace}
\printnames{labelname}%
%\setunit{\labelnamepunct}
% \printfield[citetitle]{title}%
\newunit
\printfield{year}}
{\addsemicolon\space}
{\usebibmacro{postnote}}
\DeclareMultiCiteCommand{\partcites}{\partcite}{\addsemicolon\space}
\title{<++>}
% \date{\today}
\date{\today}
\author{Alex Selimov}
\institute{Georgia Institute of Technology}
\titlegraphic{\hfill\includegraphics[height=1.5cm]{GTLogo.pdf}}
\titlegraphic{\hfill\includegraphics[height=1cm]{GTLogo.pdf}}
\begin{document}

@ -0,0 +1,59 @@
\documentclass[11pt]{beamer}
\usetheme[progressbar=foot]{metropolis}
%\usepackage{fontspec}
%\setmainfont{Source Serif Pro}
%\setsansfont{Source Sans Pro}
\setmonofont{Source Code Pro}
%Define the Colors
\definecolor{main}{HTML}{192E5B}
\definecolor{alert}{HTML}{0AAFF1}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\definecolor{deepblue}{rgb}{0,0,0.5}
\usepackage{appendixnumberbeamer}
\setbeamercolor{background canvas}{bg=white}
\setbeamercolor{normal text}{bg=white, fg=main}
\setbeamercolor{alerted text}{bg=white, fg=alert}
\setbeamercolor{block title}{bg=white,fg=alert}
\setbeamercolor{block body}{bg=white}
%New bullet points
\setbeamertemplate{itemize item}[circle]
\usepackage[url=false,doi=false,isbn=false]{biblatex}
\usepackage{listings}
\lstset{basicstyle=\ttfamily\tiny\color{black},breaklines=true,backgroundcolor=\color{lightgray},
numbers=left, stepnumber=1, commentstyle=\color{red}, keywordstyle=\color{blue}|,
escapeinside=||, stringstyle=\color{deepgreen}, emphstyle=\ttb\color{deepblue} }
\usepackage{booktabs}
\usepackage[scale=2]{ccicons}
\usepackage{subcaption}
\usepackage{pgfplots}
\usepackage{xspace}
\usepgfplotslibrary{dateplot}
\pgfplotsset{compat=1.16}
\bibliography{/home/aselimov/latex/references}
\setbeamertemplate{bibliography item}{\insertbiblabel}
\setbeamerfont{footnote}{size=\scriptsize}
\setbeamerfont{frametitle}{size=\LARGE}
\title{<++>}
% \date{\today}
\date{\today}
\author{Alex Selimov}
\institute{Georgia Institute of Technology}
\titlegraphic{\hfill\includegraphics[height=1.5cm]{GTLogo.pdf}}
\begin{document}
\maketitle
\begin{frame}{Overview}
\setbeamertemplate{section in toc}[sections numbered]
\tableofcontents%[hideallsubsections]
\end{frame}
\end{document}

File diff suppressed because it is too large Load Diff

@ -7,4 +7,4 @@ else
out=$2
fi
pandoc -t beamer --citeproc --pdf-engine xelatex pres.md --bibliography /home/aselimov/typesetting/references.bib --csl /home/aselimov/typesetting/csl/custom_beamer_ref.csl --template press -V theme:auriga -V colortheme:auriga -o $out
pandoc -t beamer --citeproc --pdf-engine xelatex pres.md --bibliography /home/aselimov/typesetting/references.bib --csl /home/aselimov/typesetting/csl/custom_beamer_ref.csl -V theme:auriga -V colortheme:auriga -o $out

@ -6,5 +6,5 @@ if [ "$2" = '' ]; then
else
out=$2
fi
pandoc $1 --lua-filter="$HOME"/typesetting/pandoc_lua_filters/scholarly-metadata.lua --lua-filter="$HOME"/typesetting/pandoc_lua_filters/author-info-blocks.lua --filter=pandoc-crossref --citeproc --bibliography=/home/aselimov/typesetting/references.bib --csl=/home/aselimov/typesetting/csl/els.csl -o $out
pandoc $1 --pdf-engine=xelatex --lua-filter="$HOME"/typesetting/pandoc_lua_filters/scholarly-metadata.lua --lua-filter="$HOME"/typesetting/pandoc_lua_filters/author-info-blocks.lua --filter=pandoc-crossref --citeproc --bibliography=/home/aselimov/typesetting/references.bib --csl=/home/aselimov/typesetting/csl/els.csl -o $out

Loading…
Cancel
Save