summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2019-03-21 22:05:16 +0100
committerSébastien Dailly <sebastien@chimrod.com>2019-03-21 22:05:16 +0100
commit6d58f7a101d6af66a391849e5a92f65e2681a643 (patch)
tree660f8cff6c9e6ebb8de22753631f7849d875fe05
parent3505ee801da11712159973849610a0ad72a2b6c4 (diff)
Update table and footer
-rw-r--r--Makefile15
-rwxr-xr-xresources/header_footer.tex16
2 files changed, 13 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index 530980f..f202323 100644
--- a/Makefile
+++ b/Makefile
@@ -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}{
}