diff --git a/.gitignore b/.gitignore index c3cb58e..5a70cf3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -# Build and build artifacts -_build/ +_build +*.*# +brightspace/ diff --git a/Makefile b/Makefile deleted file mode 100644 index 49f00ff..0000000 --- a/Makefile +++ /dev/null @@ -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 diff --git a/Paper With Citations/.gitignore b/Paper With Citations/.gitignore new file mode 100644 index 0000000..8783f5d --- /dev/null +++ b/Paper With Citations/.gitignore @@ -0,0 +1,2 @@ +_build +brightspace/ diff --git a/Paper With Citations/Example Paper.tex b/Paper With Citations/Example Paper.tex new file mode 100644 index 0000000..86834aa --- /dev/null +++ b/Paper With Citations/Example Paper.tex @@ -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} diff --git a/Paper With Citations/ExamplePaperReferences.bib b/Paper With Citations/ExamplePaperReferences.bib new file mode 100644 index 0000000..83a346b --- /dev/null +++ b/Paper With Citations/ExamplePaperReferences.bib @@ -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} +} diff --git a/Paper With Citations/Makefile b/Paper With Citations/Makefile new file mode 100644 index 0000000..ecd3838 --- /dev/null +++ b/Paper With Citations/Makefile @@ -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 diff --git a/my_pres.pdf b/my_pres.pdf deleted file mode 100644 index 965739a..0000000 Binary files a/my_pres.pdf and /dev/null differ diff --git a/my_pres.tex b/my_pres.tex deleted file mode 100644 index d5d058e..0000000 --- a/my_pres.tex +++ /dev/null @@ -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} \ No newline at end of file