Skip to content

Commit

Permalink
Merge branch 'bp_latex_report'
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf committed Oct 27, 2023
2 parents 49bd5a8 + 246d571 commit 10b530b
Show file tree
Hide file tree
Showing 14 changed files with 1,899 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,20 @@ _build/
__pycache__/
.vscode
*~

# latex build files
*.aux
*.bbl
*.bcf
*.blg
*.fdb_latexmk
*.fls
*.log
*.xml
*.gz
*.lof
*.out
*.bib
*.toc
*.upa
*.upb
64 changes: 64 additions & 0 deletions best_practices_report/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Makefile for Sphinx LaTeX output

ALLDOCS = $(basename $(wildcard *.tex))
ALLPDF = $(addsuffix .pdf,$(ALLDOCS))
ALLDVI =
ALLXDV = $(addsuffix .xdv,$(ALLDOCS))
ALLPS = $(addsuffix .ps,$(ALLDOCS))

# Prefix for archive names
ARCHIVEPREFIX =
# Additional LaTeX options (passed via variables in latexmkrc/latexmkjarc file)
export LATEXOPTS ?=
# Additional latexmk options
# with latexmk version 4.52b or higher set LATEXMKOPTS to -xelatex either here
# or on command line for faster builds.
LATEXMKOPTS ?=
export XINDYOPTS = -L english -C utf8 -M sphinx.xdy
# format: pdf or dvi (used only by archive targets)
FMT = pdf

LATEX = latexmk -dvi
PDFLATEX = latexmk -pdf -dvi- -ps-


%.ps: %.dvi
dvips '$<'

%.pdf: %.tex FORCE_MAKE
$(PDFLATEX) $(LATEXMKOPTS) '$<'

all: $(ALLPDF)

all-dvi: $(ALLDVI)

all-ps: $(ALLPS)

all-pdf: $(ALLPDF)

zip: all-$(FMT)
mkdir $(ARCHIVEPREFIX)docs-$(FMT)
cp $(ALLPDF) $(ARCHIVEPREFIX)docs-$(FMT)
zip -q -r -9 $(ARCHIVEPREFIX)docs-$(FMT).zip $(ARCHIVEPREFIX)docs-$(FMT)
rm -r $(ARCHIVEPREFIX)docs-$(FMT)

tar: all-$(FMT)
mkdir $(ARCHIVEPREFIX)docs-$(FMT)
cp $(ALLPDF) $(ARCHIVEPREFIX)docs-$(FMT)
tar cf $(ARCHIVEPREFIX)docs-$(FMT).tar $(ARCHIVEPREFIX)docs-$(FMT)
rm -r $(ARCHIVEPREFIX)docs-$(FMT)

gz: tar
gzip -9 < $(ARCHIVEPREFIX)docs-$(FMT).tar > $(ARCHIVEPREFIX)docs-$(FMT).tar.gz

bz2: tar
bzip2 -9 -k $(ARCHIVEPREFIX)docs-$(FMT).tar

xz: tar
xz -9 -k $(ARCHIVEPREFIX)docs-$(FMT).tar

clean:
rm -f *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla *.ps *.tar *.tar.gz *.tar.bz2 *.tar.xz $(ALLPDF) $(ALLDVI) $(ALLXDV) *.fls *.fdb_latexmk

.PHONY: all all-pdf all-dvi all-ps clean zip tar gz bz2 xz
.PHONY: FORCE_MAKE
Binary file added best_practices_report/best_practices.pdf
Binary file not shown.
Loading

0 comments on commit 10b530b

Please sign in to comment.