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.
|
||||
#*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.
|
||||
|
||||
Pour compiler:
|
||||
Pour compiler la version finale:
|
||||
./build.sh pub
|
||||
|
||||
pdflatex comp.tex
|
||||
pdflatex comp.tex
|
||||
La version de travail (avec table des matières et annotations):
|
||||
./build.sh draft
|
||||
|
||||
ou simplement:
|
||||
./build.sh
|
||||
Utiliser l'option `--fast`(ou `-f`) pour ne lancer qu'une seule passe `pdflatex`:
|
||||
./build.sh --fast draft
|
||||
|
||||
## A propos du format
|
||||
|
||||
|
48
build.sh
48
build.sh
@ -1,5 +1,49 @@
|
||||
#!/bin/bash
|
||||
|
||||
pdflatex comp.tex
|
||||
pdflatex comp.tex
|
||||
BASENAME=referentiel-competences
|
||||
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
|
||||
% \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[motscles]{macros} % avec mots-clés
|
||||
}
|
||||
|
||||
% ********************************************************
|
||||
\title{Référentiel de compétences}
|
||||
@ -59,17 +63,20 @@
|
||||
%\frameTitre{} % Titre principal
|
||||
\frameTitreBUT{}
|
||||
|
||||
\begin{frame}[plain]{}
|
||||
\frametitle{\Large Table des matières}
|
||||
\begin{columns}[t]
|
||||
\begin{column}{.5\textwidth}
|
||||
\tableofcontents[sections={1-3}]
|
||||
\end{column}
|
||||
\begin{column}{.5\textwidth}
|
||||
\tableofcontents[sections={4-5}]
|
||||
\end{column}
|
||||
\end{columns}
|
||||
\end{frame}
|
||||
% ------ TABLE DES MATIERES (en version draft seulement)
|
||||
\ifdef{\draft}{
|
||||
\begin{frame}[plain]{}
|
||||
\frametitle{\Large Table des matières}
|
||||
\begin{columns}[t]
|
||||
\begin{column}{.5\textwidth}
|
||||
\tableofcontents[sections={1-3}]
|
||||
\end{column}
|
||||
\begin{column}{.5\textwidth}
|
||||
\tableofcontents[sections={4-5}]
|
||||
\end{column}
|
||||
\end{columns}
|
||||
\end{frame}
|
||||
}{}
|
||||
|
||||
\frameMetier{} % Les parcours et les métiers
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user