diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2019-03-21 22:05:16 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2019-03-21 22:05:16 +0100 |
commit | 6d58f7a101d6af66a391849e5a92f65e2681a643 (patch) | |
tree | 660f8cff6c9e6ebb8de22753631f7849d875fe05 | |
parent | 3505ee801da11712159973849610a0ad72a2b6c4 (diff) |
Update table and footer
-rw-r--r-- | Makefile | 15 | ||||
-rwxr-xr-x | resources/header_footer.tex | 16 |
2 files changed, 13 insertions, 18 deletions
@@ -3,9 +3,10 @@ SOURCE=. SRC =$(wildcard *.rst) SVG =$(wildcard content/*.svg) +DOT =$(wildcard *.dot) PDFS = $(SRC:.rst=.pdf) -INCLUDED_PDF = $(SVG:.svg=.pdf) +INCLUDED_TEX = $(DOT:.dot=.tex) all: $(PDFS) @@ -30,16 +31,16 @@ tmp: content/%.pdf: content/%.svg inkscape -D -z --export-pdf=$@ $< -%.pdf: %.dot - dot -Tpdf $< | ps2pdf - $@ +%.tex: %.dot + dot2tex --autosize --figonly -o $@ $< # Generate the latex file from rst -tmp/%.tex: %.rst $(INCLUDED_PDF) $(SOURCES)| tmp - rst2latex --no-section-subtitles --no-section-numbering --table-style=borderless --use-latex-citations --use-latex-docinfo --documentclass=article --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|^%$$||' $@ +tmp/%.tex: %.rst $(INCLUDED_TEX) $(SOURCES)| tmp + $$(command -v rst2latex rst2latex.py | head -n 1) --no-section-subtitles --no-section-numbering --table-style=borderless --use-latex-citations --use-latex-docinfo --documentclass=article --documentoption=12pt,A4,table --syntax-highlight=short --stylesheet=$(PACKAGES),$(TEX_STYLE) $< $@ + sed -i -e 's/{c}{\\hfill ... continued on next page/{r}{... suite sur la page suivante/;s|^%$$||' $@ + sed -i -e 's/\endfirsthead/\endfirsthead\\tableHeaderStyle/g' $@ sed -i -e 's/longtable\*/mytable/g' $@ sed -i -e 's/p{[0-9]\.[0-9]*\\DUtablewidth}/X/g' $@ - sed -i -e 's/admonition-/admonition/g' $@ # Generate each pdf with latex tmp/%.pdf: tmp/%.tex $(BIBS) | tmp diff --git a/resources/header_footer.tex b/resources/header_footer.tex index af80d26..78e08a3 100755 --- a/resources/header_footer.tex +++ b/resources/header_footer.tex @@ -22,22 +22,16 @@ %%%Pieds de page
%pages impaires
-\fancyfoot[RO]{
-%\fcolorbox{fondtitre}{fondtitre}{\color{blanc}page \thepage}} % ici le num de page
-{page \thepage}} % ici le num de page
-\fancyfoot[LO]{
-\fcolorbox{blanc}{blanc}{\color{grisfonce}\@author}} % ici l'auteur
+\fancyfoot[RO]{{page \thepage}} % ici le num de page
+%\fancyfoot[LO]{\@author}
%pages paires
-\fancyfoot[LE]{
-%\fcolorbox{fondtitre}{fondtitre}{\color{blanc}page \thepage}} % ici le num de page
-{page \thepage}} % ici le num de page
-\fancyfoot[RE]{
-\fcolorbox{blanc}{blanc}{\color{grisfonce}\@author}} % ici l'auteur
+%\fancyfoot[LE]{{page \thepage}} % ici le num de page
+%\fancyfoot[RE]{\@author}} % ici l'auteur
\makeatother
%%%%%%% ligne de l'entete %%%%%%%%%%%
-% pour la rendre invisible, sur un fond blanc... on la peint en blanc
+% Rendue invisible
\renewcommand{\headrule}{
}
|