commit fd6d053dab1a2a4397a69ef35c25622b440071a1 Author: Deepak Mallubhotla Date: Mon Aug 22 19:47:19 2022 -0500 feat: initial commit 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) $(