add date and commit info on draft toc page
This commit is contained in:
parent
c3e4aa8498
commit
8024e7490c
5
.gitignore
vendored
5
.gitignore
vendored
@ -306,3 +306,8 @@ Thumbs.db
|
||||
auto-save-list
|
||||
tramp
|
||||
.\#*
|
||||
|
||||
# Local:
|
||||
docinfo.txt
|
||||
referentiel-competences-draft.pdf
|
||||
referentiel-competences-pub.pdf
|
||||
|
16
build.sh
16
build.sh
@ -42,8 +42,24 @@ build () {
|
||||
done
|
||||
}
|
||||
|
||||
# Some git version information for the draft doc
|
||||
|
||||
if command -v COMMAND &> /dev/null
|
||||
then
|
||||
echo -n "commit "$(git rev-parse --short=10 HEAD) > docinfo.txt
|
||||
git diff-index --quiet HEAD --
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
echo " (modifié)" >> docinfo.txt
|
||||
HAS_UNCOMMITED_CHANGES="Warning: modifications locales non commitées."
|
||||
fi
|
||||
else
|
||||
echo "Warning: git is not installed"
|
||||
fi
|
||||
|
||||
build "$BASENAME" "$1"
|
||||
|
||||
[ -z "$HAS_UNCOMMITED_CHANGES" ] || echo "$HAS_UNCOMMITED_CHANGES"
|
||||
|
||||
|
||||
|
||||
|
9
comp.tex
9
comp.tex
@ -10,6 +10,7 @@
|
||||
|
||||
\usepackage[base]{babel}
|
||||
\usepackage{polyglossia}
|
||||
\setdefaultlanguage{french}
|
||||
|
||||
\usepackage{fontspec}
|
||||
\setmainfont[Path=fonts/,
|
||||
@ -20,6 +21,9 @@
|
||||
|
||||
|
||||
\usepackage{hyperref}
|
||||
\usepackage{verbatim}
|
||||
\usepackage[datesep=/,style=ddmmyyyy]{datetime2}
|
||||
|
||||
\geometry{landscape,a4paper,left=25mm,right=25mm,top=25 mm,bottom=25mm}
|
||||
\usepackage{tikz}%
|
||||
\usetikzlibrary{calc,fit,shapes,arrows,shadows.blur}%
|
||||
@ -46,7 +50,7 @@
|
||||
|
||||
\institute{ACD R\&T}
|
||||
\date{\today}
|
||||
\author{(many people)}%
|
||||
\author{GT BUT R\&T}%
|
||||
% ********************************************************
|
||||
|
||||
% Les macros
|
||||
@ -84,6 +88,9 @@
|
||||
\end{column}
|
||||
\begin{column}{.5\textwidth}
|
||||
\tableofcontents[sections={4-5}]
|
||||
\bigskip
|
||||
Généré le \DTMnow
|
||||
\verbatiminput{docinfo.txt}
|
||||
\end{column}
|
||||
\end{columns}
|
||||
\end{frame}
|
||||
|
@ -27,6 +27,8 @@
|
||||
\coordinate(refpoint) at ($ (lastpoint)+(0mm,0mm) $);
|
||||
\coordinate (bottompoint) at ($ (lastpoint)+(0,-20mm) $);
|
||||
\coordinate (subrefpoint) at ($ (refpoint)+(90mm,0mm) $); % Segmentation
|
||||
|
||||
% Liste des composantes essentielles en haut de la page:
|
||||
\begin{pgfonlayer}{main}
|
||||
% \draw ($ (current page.north west) + (10mm,-10mm) $) rectangle ($ (current page.south east) + (-10mm,10mm) $);
|
||||
% \draw[thick](lastpoint)--++(-1cm,0);
|
||||
@ -37,12 +39,12 @@
|
||||
text=comp\CTYPE\CLETTRE p,fill=comp\CTYPE\CLETTRE!70!white%
|
||||
] (rightrightbox) at (lastpoint-|subrefpoint) [anchor=north west] {%
|
||||
\ifcsdef{componame\CNOM A}{ % Si au moins une compo essentielle
|
||||
\begin{list}{$\bullet$}{\topsep=0pt \partopsep=0pt \parsep=0pt \itemsep=0pt \leftmargin=1em \itemindent=0em}%
|
||||
\begin{list}{$\bullet$}{\topsep=0pt \partopsep=0pt \parsep=0pt \itemsep=0pt \leftmargin=1.6em \itemindent=0em}%
|
||||
%% boucle sur les composantes essentielles
|
||||
%\item test \compoloop
|
||||
\foreach \YY in \compoloop {%
|
||||
\ifcsdef{componame\CNOM\YY}{
|
||||
\item \textcolor{comp\CTYPE\CLETTRE p}{en \csname componame\CNOM\YY\endcsname}
|
||||
\item \textcolor{comp\CTYPE\CLETTRE p}{En \csname componame\CNOM\YY\endcsname}
|
||||
}{\linebreak}%
|
||||
}
|
||||
\end{list}%
|
||||
|
Loading…
Reference in New Issue
Block a user