build script for draft and final versions
This commit is contained in:
parent
50c3e6d920
commit
2f86a5b5ef
16
.gitignore
vendored
16
.gitignore
vendored
@ -290,3 +290,19 @@ TSWLatexianTemp*
|
|||||||
# Uncomment the next line to have this generated file ignored.
|
# Uncomment the next line to have this generated file ignored.
|
||||||
#*Notes.bib
|
#*Notes.bib
|
||||||
|
|
||||||
|
# MacOS
|
||||||
|
.DS_Store?
|
||||||
|
ehthumbs.db
|
||||||
|
Icon?
|
||||||
|
Thumbs.db
|
||||||
|
*.DS_Store
|
||||||
|
|
||||||
|
# Emacs
|
||||||
|
*~
|
||||||
|
\#*\#
|
||||||
|
/.emacs.desktop
|
||||||
|
/.emacs.desktop.lock
|
||||||
|
*.elc
|
||||||
|
auto-save-list
|
||||||
|
tramp
|
||||||
|
.\#*
|
||||||
|
11
README.md
11
README.md
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
Référentiel de compétences BUT R&T.
|
Référentiel de compétences BUT R&T.
|
||||||
|
|
||||||
Pour compiler:
|
Pour compiler la version finale:
|
||||||
|
./build.sh pub
|
||||||
|
|
||||||
pdflatex comp.tex
|
La version de travail (avec table des matières et annotations):
|
||||||
pdflatex comp.tex
|
./build.sh draft
|
||||||
|
|
||||||
ou simplement:
|
Utiliser l'option `--fast`(ou `-f`) pour ne lancer qu'une seule passe `pdflatex`:
|
||||||
./build.sh
|
./build.sh --fast draft
|
||||||
|
|
||||||
## A propos du format
|
## A propos du format
|
||||||
|
|
||||||
|
48
build.sh
48
build.sh
@ -1,5 +1,49 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
pdflatex comp.tex
|
BASENAME=referentiel-competences
|
||||||
pdflatex comp.tex
|
NBPASS=3 # il faut 3 passes de compilation
|
||||||
|
|
||||||
|
usage () {
|
||||||
|
echo "Usage: $0 [-f|--fast] help|draft|pub|clean"
|
||||||
|
echo " draft: generates draft version, including toc and comments"
|
||||||
|
echo " pub: generates publication ready version"
|
||||||
|
echo " clean: cleanup all (non versioned) tex files"
|
||||||
|
echo "--fast (or -f) option just make one compilation pass instead of $NBPASS"
|
||||||
|
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$1" == "-f" ] || [ "$1" == "--fast" ]; then
|
||||||
|
NBPASS1=1
|
||||||
|
shift
|
||||||
|
else
|
||||||
|
NBPASS1=$NBPASS
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $# != 1 ] || [ "$1" == "help" ]; then
|
||||||
|
usage
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "clean" ]; then
|
||||||
|
/bin/rm -f "$BASENAME"*.aux "$BASENAME"*.pdf "$BASENAME"*.toc "$BASENAME"*.snm "$BASENAME"*.nav "$BASENAME"*.log
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" != "pub" ] && [ "$1" != "draft" ]
|
||||||
|
then
|
||||||
|
usage
|
||||||
|
fi
|
||||||
|
|
||||||
|
build () {
|
||||||
|
for (( i=1; i<=$NBPASS1; i++ ))
|
||||||
|
do
|
||||||
|
echo "----------------- pass $i"
|
||||||
|
pdflatex -jobname "$1"-"$2" '\def\'$2'{}\input{comp}'
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
build "$BASENAME" "$1"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
4
clean.sh
4
clean.sh
@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
/bin/rm -f *.aux comp.pdf comp.toc comp.snm comp.nav
|
|
||||||
|
|
31
comp.tex
31
comp.tex
@ -22,8 +22,12 @@
|
|||||||
|
|
||||||
% ********************************************************
|
% ********************************************************
|
||||||
% Macros et contrôle de l'affichage des mots-clés
|
% Macros et contrôle de l'affichage des mots-clés
|
||||||
|
% \draft est defini pour la verison de travail avec annotations et table des matières
|
||||||
|
\ifdef{\draft}{
|
||||||
|
\usepackage[motscles]{macros} % avec mots-clés
|
||||||
|
}{
|
||||||
\usepackage{macros} % sans mots-clés
|
\usepackage{macros} % sans mots-clés
|
||||||
%\usepackage[motscles]{macros} % avec mots-clés
|
}
|
||||||
|
|
||||||
% ********************************************************
|
% ********************************************************
|
||||||
\title{Référentiel de compétences}
|
\title{Référentiel de compétences}
|
||||||
@ -59,17 +63,20 @@
|
|||||||
%\frameTitre{} % Titre principal
|
%\frameTitre{} % Titre principal
|
||||||
\frameTitreBUT{}
|
\frameTitreBUT{}
|
||||||
|
|
||||||
\begin{frame}[plain]{}
|
% ------ TABLE DES MATIERES (en version draft seulement)
|
||||||
\frametitle{\Large Table des matières}
|
\ifdef{\draft}{
|
||||||
\begin{columns}[t]
|
\begin{frame}[plain]{}
|
||||||
\begin{column}{.5\textwidth}
|
\frametitle{\Large Table des matières}
|
||||||
\tableofcontents[sections={1-3}]
|
\begin{columns}[t]
|
||||||
\end{column}
|
\begin{column}{.5\textwidth}
|
||||||
\begin{column}{.5\textwidth}
|
\tableofcontents[sections={1-3}]
|
||||||
\tableofcontents[sections={4-5}]
|
\end{column}
|
||||||
\end{column}
|
\begin{column}{.5\textwidth}
|
||||||
\end{columns}
|
\tableofcontents[sections={4-5}]
|
||||||
\end{frame}
|
\end{column}
|
||||||
|
\end{columns}
|
||||||
|
\end{frame}
|
||||||
|
}{}
|
||||||
|
|
||||||
\frameMetier{} % Les parcours et les métiers
|
\frameMetier{} % Les parcours et les métiers
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user