From e25267f977902018ca004dc80190b9855b3d59ff Mon Sep 17 00:00:00 2001 From: Deepak Date: Fri, 7 Jan 2022 13:08:28 -0600 Subject: [PATCH] Adds initial stuff --- .gitattributes | 1 + .gitignore | 17 ++++ Makefile | 56 +++++++++++ README.md | 2 + bibliography.bib | 245 +++++++++++++++++++++++++++++++++++++++++++++++ do.sh | 18 ++++ notes.tex | 33 +++++++ 7 files changed, 372 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 README.md create mode 100644 bibliography.bib create mode 100644 do.sh create mode 100644 notes.tex diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..176a458 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fca10bf --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +.idea +dist + +*.aux +*.fdb_latexmk +*.fls +*.tdo +*.toc +*.log +*.pdf +*.bbl +*.bcf +*.blg +*.run.xml +*.out + +*.nb diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6dc6bee --- /dev/null +++ b/Makefile @@ -0,0 +1,56 @@ +### Build tools +# +LATEXMK := latexmk -pdflatex="luahblatex %O %S" -pdf -dvi- -ps- -quiet -logfilewarninglist +WS := wolframscript -f + +### Directory variables +# +PDF_DIR := pdfs +FIG_DIR := figures +CALC_DIR := calc + +### Here we go +# +OUT_PDF:= $(PDF_DIR)/notes.pdf + +.PHONY: all +all: $(OUT_PDF) + +### How we do that +# + +## setup main pdf deps as variable that subdirs can add to +MAIN_PDF_DEPS := bibliography.bib + +## Defining common directory recipes +$(PDF_DIR): + mkdir $(PDF_DIR) +$(FIG_DIR): + mkdir -p $(FIG_DIR) +$(CALC_DIR): + mkdir -p $(CALC_DIR) + +## Figures +# + +FIGURES := +## Making main.pdf and other pdfs +# +$(PDF_DIR)/notes.pdf: notes.tex $(MAIN_PDF_DEPS) | $(PDF_DIR) $(FIGURES) + $(LATEXMK) $(