Add paper boilerplate ive been using more and more

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

5
.gitignore vendored
View File

@ -1,2 +1,3 @@
# Build and build artifacts
_build/
_build
*.*#
brightspace/

View File

@ -1,11 +0,0 @@
# Mostly blank makefile
all: prepare build
prepare:
mkdir -p _build/aux
mkdir -p _build/pdf
build:
pdflatex --enable-write18 -aux-directory=_build/aux -output-directory=_build/pdf my_pres.tex

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

Binary file not shown.

View File

@ -1,62 +0,0 @@
\documentclass[12pt, letterpaper, twoside]{report}
\usepackage[utf8]{inputenc}
% Special Build Variables
\immediate\write18{git describe --abbrev=4 --always --tags --dirty > _build/hash.tex}
\immediate\write18{date -I > _build/builddate.tex}
\title{Lab 1}
\author{Joe Sedutto\\
\and Another Author, Arty and others}
\date{February 2014}
\begin{document}
% Titlepage
\begin{titlepage}
\begin{titlepage}
\begin{center}
\vspace*{1cm}
\textbf{Name of Lab}
\vspace{0.2cm}
PHY-216L Physics II Lab
\vspace{0.5cm}
Lab 3
% Information about when this doc was bilt and with what version
\vspace{0.5cm}
Revision \input{_build/hash}\\
\vspace{0.1cm}
Built on \input{_build/builddate}
\vspace{2cm}
\textbf{Joe Sedutto}
\vspace{0.1cm}
Michael L, Ronan D, Samuel F, Arthur A
\vfill
A thesis presented for the degree of\\
Doctor of Philosophy
\vspace{0.8cm}
Department Name\\
University Name\\
Country\\
Date
\end{center}
\end{titlepage}
\end{titlepage}
% Preamb
Nothing in here.
\end{document}