diff options
Diffstat (limited to 'model_5')
-rwxr-xr-x | model_5/Makefile | 47 | ||||
-rwxr-xr-x | model_5/resources/10_fonts.tex | 3 | ||||
-rwxr-xr-x | model_5/resources/99_begin.tex | 6 |
3 files changed, 3 insertions, 53 deletions
diff --git a/model_5/Makefile b/model_5/Makefile index c02fab5..25786c6 100755 --- a/model_5/Makefile +++ b/model_5/Makefile @@ -1,46 +1 @@ -TEX=xelatex -SOURCE=. - -SRC =$(wildcard *.rst) -SVG =$(wildcard content/*.svg) - -PDFS = $(SRC:.rst=.pdf) -INCLUDED_PDF = $(SVG:.svg=.pdf) - -all: $(PDFS) - -BIBS =$(wildcard *.bib) - -DIR = $(sort $(shell find $(SOURCE) -name '*.rst' -print)) -SOURCES = $(sort $(wildcard resources/*.tex) ) - -null := -space := $(null) # -comma := , -TEX_STYLE := $(subst $(space),$(comma),$(strip $(SOURCES))) -TEX_BIBS := $(subst $(space),$(comma),$(strip $(BIBS))) - -PACK = $(shell sed -e 's/\#.*$$//' -e '/^$$/d' resources/modules) -PACKAGES := $(subst $(space),$(comma),$(strip $(PACK))) - -tmp: - mkdir tmp - -# Generate the latex file from rst -tmp/%.tex: %.rst $(INCLUDED_PDF) $(SOURCES)| tmp - $$(command -v rst2latex rst2latex.py | head -n 1) --no-section-subtitles --table-style=borderless --use-latex-citations --use-latex-docinfo --documentclass=extarticle --documentoption=12pt,A4,table --syntax-highlight=short --stylesheet=$(PACKAGES),$(TEX_STYLE) $< $@ - sed -i -e 's/continued on next page/suite sur la page suivante/;s|^%$$||' $@ - sed -i -e 's/admonition-/admonition/g' $@ - -# Generate each pdf with latex -tmp/%.pdf: tmp/%.tex $(BIBS) | tmp - $(TEX) -output-directory tmp $< - #bibtex tmp/$*.aux && $(TEX) -output-directory tmp $< || echo "no bib" - while grep 'Rerun to get ' tmp/$*.log ; do $(TEX) -output-directory tmp $< ; done - -# Put the pdf in the right place -%.pdf: tmp/%.pdf | tmp - cp $< $@ - -clean: - rm -r tmp +include ../common/Makefile.common diff --git a/model_5/resources/10_fonts.tex b/model_5/resources/10_fonts.tex index befadd5..52b69c3 100755 --- a/model_5/resources/10_fonts.tex +++ b/model_5/resources/10_fonts.tex @@ -10,4 +10,5 @@ {EB Garamond} [ Mapping=tex-text ] -\newfontfamily\AltFont[Mapping=tex-text]{Linux Libertine O} +\input{../common/10_fonts.tex} +\let\AltFont\LibertineFont diff --git a/model_5/resources/99_begin.tex b/model_5/resources/99_begin.tex index 7b7a793..8783087 100755 --- a/model_5/resources/99_begin.tex +++ b/model_5/resources/99_begin.tex @@ -1,7 +1 @@ \input{../common/90_ref.tex} - -% On charge les colonnes dès le début du document. -\AtBeginDocument{% - \begin{paracol}{2} -} - |