Add paper boilerplate ive been using more and more

This commit is contained in:
2022-02-08 00:46:33 -05:00
parent 619ee9724e
commit 2e1ebf7482
8 changed files with 97 additions and 75 deletions

2
Paper With Citations/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
_build
brightspace/

View File

@@ -0,0 +1,43 @@
% Class type
\documentclass[12pt]{article}
% Introduction and requirements
\usepackage{mathptmx}
\usepackage[a4paper, total={6.25in, 8in}]{geometry}
\usepackage{setspace}
\doublespacing
% Packages
\usepackage{iexec}
% Citations
\usepackage[backend=biber]{biblatex-chicago} % Chicago\mla
%\usepackage[backend=biber, style=apa]{biblatex} % apa
\usepackage[colorlinks, citecolor=black]{hyperref}
\addbibresource{ExamplePaperReferences.bib} % Import the bibliography file
\title{Example Paper}
\date{\today\\
\small{Revision: \iexec{git describe --abbrev=8 --always --tags --dirty}}}
\author{My Name\\
\bf{My University}\\
CLA 101: Introduction to \LaTeX\\
Instructor: \href{mailto://my_teacher.edu}{My Instructor}}
\begin{document}
\pagenumbering{gobble}
\maketitle
\newpage
\pagenumbering{arabic}
This is a big important paragraph. With lots and lots of stuff..
And heres an example of a citation\autocite{garvey_nature_2005}.
\newpage
\printbibliography[title={References}]
\end{document}

View File

@@ -0,0 +1,14 @@
@article{garvey_nature_2005,
title = {Nature, {Nurture} and {Why} the {Pendulum} {Still} {Swings}},
volume = {35},
issn = {0045-5091},
url = {https://www.jstor.org/stable/40232250},
number = {2},
urldate = {2022-02-08},
journal = {Canadian Journal of Philosophy},
author = {Garvey, Brian},
year = {2005},
note = {Publisher: [Taylor \& Francis, Ltd., Canadian Journal of Philosophy]},
pages = {309--330}
}

View File

@@ -0,0 +1,35 @@
# Written by joe
REVISION := "$(shell git describe --abbrev=8 --dirty --always --tags)"
all: pdf submit
# Move all files to the build dir
copy:
mkdir -p _build
find -type f '(' -name "*.tex*" -o -name "*.sty*" -o -name "*.bib" ')' -exec cp {} _build \;
pdf: copy
cd _build && find . -name '*.tex' -exec latexmk --shell-escape -pdf {} \;
submit: pdf
rm -rvf brightspace
mkdir -p brightspace
find -type f '(' -name "*.tex*" -o -name "*.sty*" -o -name "*.bib" ')' -exec cp {} brightspace \;
cd brightspace && zip $(REVISION)_source.zip *
cp _build/*.pdf brightspace
echo "Auto generated using software written by Joe." > brightspace/README.md
echo "This build and all artifacts were built locally on this date: " >> brightspace/README.md
date >> brightspace/README.md
# cleanup
cd brightspace && find -type f '(' -name "*.tex*" -o -name "*.sty*" -o -name "*.bib" ')' -exec rm {} \;
clean:
git clean -fdX
rm -rvf brightspace