-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofStyle.sty
121 lines (118 loc) · 3.52 KB
/
profStyle.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{profStyle}[2019/09/16]
%% personnalisation du module fancyhdr
\pagestyle{fancy}
\addtolength{\footskip}{-\baselineskip}
\renewcommand{\footrulewidth}{1mm}
\renewcommand{\footrule}{{%%
\color{\pybleu}%
\vskip\footruleskip\vskip-\footrulewidth
\hrule width\headwidth height\footrulewidth\vskip\footruleskip}}
\renewcommand{\headrulewidth}{0mm}
%
\newcommand{\rheadTexte}{\large\sffamily\slshape%%
\color{\blanc}%%
\lamatiere}
\newcommand{\lfootTexte}{%%
\color{\pybleu}%%
\tiny\sffamily\bfseries%
composé avec Lua\LaTeX{} sous linux debian à~%
\directlua{tex.print(os.time())}%
}
\newcommand{\cfootTexte}{\color{\pybleu}\thepage/\pageref{LastPage}}
\newcommand{\rfootTexte}{%%
\begin{tikzpicture}
\draw (0,0) node {\color{\pybleu}\large\sffamily\slshape%
\RRoman{\number\year}~---~%
\textsc{Cobac}};
\end{tikzpicture}
}
% Janvier 2023
\renewcommand{\rfootTexte}{}
%
% \begin{tikzpicture}
% \begin{scope}
% \clip (0,\profCitation) rectangle (\longCitation,\hautCitation+\profCitation);
% \node[inner sep=0pt,anchor=south west,red] at (0,0) {\citationformatee};
% \end{scope}
% \clip (0,0) rectangle (\longCitation,\profCitation);
% \node[inner sep=0pt,anchor=south west,blue] at (0,0) {\citationformatee};
% \end{tikzpicture}
\newcommand{\rheadCitation}{\usebox{\textecitation}}
%
\newlength{\longauteur}
\settowidth{\longauteur}{\rfootTexte}
\newlength{\hautmatiere}
\settoheight{\hautmatiere}{\rheadTexte}
\newlength{\longmatiere}
\settowidth{\longmatiere}{\rheadTexte}
% %
\newlength{\rfootYOff}
\setlength{\rfootYOff}{4ex}
\newlength{\rheadXOff}
\setlength{\rheadXOff}{3.7ex - \hautmatiere + 2ex} %% 3.7 correspond au bandeau sans matiere
\newlength{\epaisTrait}
\setlength{\epaisTrait}{1.7mm}
% \newlength{\citationXOff}
% \setlength{\citationXOff}{\longmatiere + 6pt + 1ex} % 3pt est la distance framesep d'une framebox
% \newlength{\citationYOff}
% \setlength{\citationYOff}{\epaisTrait-\profCitation}
% \newlength{\hautcitation}
% \setlength{\hautcitation}{1.5mm + 1ex}
%
%% lalatex, fancyhdr et pstricks ne sont pas les meilleures amies
%% du monde -> hack demandé sur fr.comp.text.tex
%% \newlength{\etirement}
%% \setlength{\etirement}{\textheight - \longauteur + \rfootYOff}
% \newsavebox\PSTBoxDroite
% \savebox\PSTBoxDroite{%
% \begin{postscript}
% \psset{unit=1cm}
% \setlength{\etirement}{\textheight - \longauteur + \rfootYOff}
% %
% \rput[bl](0,0){\psframe[linewidth=0pt,linestyle=none,fillstyle=solid,fillcolor=\maPScouleur](0,0)(\etirement,\epaisTrait)}%
% \rput[bl](0,0){\psframebox[linewidth=0pt,linestyle=none,fillstyle=solid,fillcolor=\maPScouleur]{\rheadTexte}}%
% \if@algo
% \else
% \rput[bl](\citationXOff,\citationYOff){\rheadCitation}%%
% \fi
% \end{postscript}%
% } mai
%
\rfoot{
\hbox{%
\hspace*{\rfootYOff}\vbox to0pt{%
\vspace*{-\longauteur}%
\rotatebox{90}{\rfootTexte}%
}%
}%
}
\lfoot{\vspace*{-.4cm}\scalebox{-1}[1]{\lfootTexte}}
\cfoot{\vspace*{-3mm}\cfootTexte}
\lhead{}
\chead{}
\rhead{%%
% \hbox to0pt{%
\hspace*{\rheadXOff}\vbox to0pt{%
\vspace*{3mm}%%
\rotatebox{-90}{\colorbox{\pybleu}{%%
\color{\blanc}\large\sffamily\bfseries\lamatiere%%
}%
}%
\vss%
}%
%\hss%
% }%
}
%%
%
%% environnements exo et pb
%% encadrements en pointillés
%
% \newcommand{\encadrepointilles}[1]{%
% \expandafter\begin{postscript}%
% \psframebox[linestyle=none,fillcolor=\maPScouleur,fillstyle=solid]{#1}%
% \end{postscript}%
% }
%
\endinput