Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polytechnique
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typographix
polytechnique
Commits
7464be23
Commit
7464be23
authored
8 years ago
by
Clément DURAND
Browse files
Options
Downloads
Patches
Plain Diff
headers vertical alignment
parent
4c12662c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
source/polytechnique.dtx
+5
-10
5 additions, 10 deletions
source/polytechnique.dtx
source/polytechnique.sty
+5
-10
5 additions, 10 deletions
source/polytechnique.sty
with
12 additions
and
20 deletions
.gitignore
+
2
−
0
View file @
7464be23
...
@@ -11,3 +11,5 @@ guide/installation.pdf
...
@@ -11,3 +11,5 @@ guide/installation.pdf
*.idx
*.idx
*.toc
*.toc
*.dvi
*.dvi
*.ind
*.ilg
This diff is collapsed.
Click to expand it.
source/polytechnique.dtx
+
5
−
10
View file @
7464be23
...
@@ -328,7 +328,6 @@ LaTeX version 1999/12/01 or later.
...
@@ -328,7 +328,6 @@ LaTeX version 1999/12/01 or later.
% \end{macrocode}
% \end{macrocode}
%S'il y a une section courante, on affiche son titre en en-tête intérieur.
%S'il y a une section courante, on affiche son titre en en-tête intérieur.
% \begin{macrocode}
% \begin{macrocode}
\raisebox{\decalageverticalentete}
{\scshape\color{bleu303}
{\scshape\color{bleu303}
\thesection{}.~\sectiontitle}
\thesection{}.~\sectiontitle}
}{
}{
...
@@ -347,7 +346,6 @@ LaTeX version 1999/12/01 or later.
...
@@ -347,7 +346,6 @@ LaTeX version 1999/12/01 or later.
\AtEndOfPackage{
\AtEndOfPackage{
\renewcommand{\enteteexterieur}[1]{
\renewcommand{\enteteexterieur}[1]{
\ifthechapter{
\ifthechapter{
\raisebox{\decalageverticalentete}
{\scshape\color{bleu303}
{\scshape\color{bleu303}
\thechapter{}.~\chaptertitle}
\thechapter{}.~\chaptertitle}
}{
}{
...
@@ -364,7 +362,6 @@ LaTeX version 1999/12/01 or later.
...
@@ -364,7 +362,6 @@ LaTeX version 1999/12/01 or later.
\AtEndOfPackage{
\AtEndOfPackage{
\renewcommand{\enteteexterieurimpair}{
\renewcommand{\enteteexterieurimpair}{
\ifthesection{%Si la section a ete definie
\ifthesection{%Si la section a ete definie
\raisebox{\decalageverticalentete}
{\scshape\color{bleu303}
{\scshape\color{bleu303}
\thesection{}.~\sectiontitle}
\thesection{}.~\sectiontitle}
}{
}{
...
@@ -373,7 +370,6 @@ LaTeX version 1999/12/01 or later.
...
@@ -373,7 +370,6 @@ LaTeX version 1999/12/01 or later.
}
}
\renewcommand{\enteteexterieurpair}{
\renewcommand{\enteteexterieurpair}{
\ifthechapter{
\ifthechapter{
\raisebox{\decalageverticalentete}
{\scshape\color{bleu303}
{\scshape\color{bleu303}
\thechapter{}.~\chaptertitle}
\thechapter{}.~\chaptertitle}
}{
}{
...
@@ -688,7 +684,6 @@ LaTeX version 1999/12/01 or later.
...
@@ -688,7 +684,6 @@ LaTeX version 1999/12/01 or later.
%L'argument sert à insérer |\flushright| dans le cas ou l'en-tête est sur une page impaire.
%L'argument sert à insérer |\flushright| dans le cas ou l'en-tête est sur une page impaire.
% \begin{macrocode}
% \begin{macrocode}
\newcommand{\enteteexterieur}[1]{
\newcommand{\enteteexterieur}[1]{
\raisebox{\decalageverticalentete}
{\begin{minipage}[b]{\largeurtitreentete}
{\begin{minipage}[b]{\largeurtitreentete}
\scshape#1\textcolor{bleu303}
\scshape#1\textcolor{bleu303}
\polytitrecourtsave
\polytitrecourtsave
...
@@ -699,7 +694,7 @@ LaTeX version 1999/12/01 or later.
...
@@ -699,7 +694,7 @@ LaTeX version 1999/12/01 or later.
%\begin{macro}{\enteteinterieur}
%\begin{macro}{\enteteinterieur}
% \begin{macrocode}
% \begin{macrocode}
\newcommand{\enteteinterieur}[1]{
\newcommand{\enteteinterieur}[1]{
\includegraphics[height=\hauteurlogohori]{#1}
\includegraphics[height=\hauteurlogohori
,width=2\largeurlogohori,keepaspectratio
]{#1}
}
}
% \end{macrocode}
% \end{macrocode}
%\end{macro}
%\end{macro}
...
@@ -740,12 +735,12 @@ LaTeX version 1999/12/01 or later.
...
@@ -740,12 +735,12 @@ LaTeX version 1999/12/01 or later.
% \end{macrocode}
% \end{macrocode}
%On definit un nouveau style d'en-tetes. Voir la documentation du package |titlesec| pour la syntaxe.
%On definit un nouveau style d'en-tetes. Voir la documentation du package |titlesec| pour la syntaxe.
% \begin{macrocode}
% \begin{macrocode}
\sethead[\enteteinterieurpair]% left even
\sethead[\
raisebox{.5\hauteurlogohori}{\raisebox{-0.5\height}{\
enteteinterieurpair
}}
]% left even
[]% center even
[]% center even
[\enteteexterieurpair]% right even
[\
raisebox{.5\hauteurlogohori}{\raisebox{-0.5\height}{\
enteteexterieurpair
}}
]% right even
{\enteteexterieurimpair}% left odd
{\raisebox{.5\hauteurlogohori}{\raisebox{-0.5\height}
{\enteteexterieurimpair}
}}
% left odd
{}% center odd
{}% center odd
{\enteteinterieurimpair}% right odd
{\raisebox{.5\hauteurlogohori}{\raisebox{-0.5\height}
{\enteteinterieurimpair}
}}
% right odd
\setfoot{}% left odd
\setfoot{}% left odd
{\piedcentre}% center odd
{\piedcentre}% center odd
{}% right odd
{}% right odd
...
...
This diff is collapsed.
Click to expand it.
source/polytechnique.sty
+
5
−
10
View file @
7464be23
...
@@ -99,7 +99,6 @@
...
@@ -99,7 +99,6 @@
\AtEndOfPackage
{
\AtEndOfPackage
{
\renewcommand
{
\enteteexterieur
}
[1]
{
\renewcommand
{
\enteteexterieur
}
[1]
{
\ifthesection
{
\ifthesection
{
\raisebox
{
\decalageverticalentete
}
{
\scshape\color
{
bleu303
}
{
\scshape\color
{
bleu303
}
\thesection
{}
.~
\sectiontitle
}
\thesection
{}
.~
\sectiontitle
}
}{
}{
...
@@ -111,7 +110,6 @@
...
@@ -111,7 +110,6 @@
\AtEndOfPackage
{
\AtEndOfPackage
{
\renewcommand
{
\enteteexterieur
}
[1]
{
\renewcommand
{
\enteteexterieur
}
[1]
{
\ifthechapter
{
\ifthechapter
{
\raisebox
{
\decalageverticalentete
}
{
\scshape\color
{
bleu303
}
{
\scshape\color
{
bleu303
}
\thechapter
{}
.~
\chaptertitle
}
\thechapter
{}
.~
\chaptertitle
}
}{
}{
...
@@ -124,7 +122,6 @@
...
@@ -124,7 +122,6 @@
\AtEndOfPackage
{
\AtEndOfPackage
{
\renewcommand
{
\enteteexterieurimpair
}{
\renewcommand
{
\enteteexterieurimpair
}{
\ifthesection
{
%Si la section a ete definie
\ifthesection
{
%Si la section a ete definie
\raisebox
{
\decalageverticalentete
}
{
\scshape\color
{
bleu303
}
{
\scshape\color
{
bleu303
}
\thesection
{}
.~
\sectiontitle
}
\thesection
{}
.~
\sectiontitle
}
}{
}{
...
@@ -133,7 +130,6 @@
...
@@ -133,7 +130,6 @@
}
}
\renewcommand
{
\enteteexterieurpair
}{
\renewcommand
{
\enteteexterieurpair
}{
\ifthechapter
{
\ifthechapter
{
\raisebox
{
\decalageverticalentete
}
{
\scshape\color
{
bleu303
}
{
\scshape\color
{
bleu303
}
\thechapter
{}
.~
\chaptertitle
}
\thechapter
{}
.~
\chaptertitle
}
}{
}{
...
@@ -261,14 +257,13 @@
...
@@ -261,14 +257,13 @@
{
\rule
{
\largeurfiletpiedcentre
}{
0.3mm
}
\\\thepage
}}
{
\rule
{
\largeurfiletpiedcentre
}{
0.3mm
}
\\\thepage
}}
}
}
\newcommand
{
\enteteexterieur
}
[1]
{
\newcommand
{
\enteteexterieur
}
[1]
{
\raisebox
{
\decalageverticalentete
}
{
\begin{minipage}
[b]
{
\largeurtitreentete
}
{
\begin{minipage}
[b]
{
\largeurtitreentete
}
\scshape
#1
\textcolor
{
bleu303
}
\scshape
#1
\textcolor
{
bleu303
}
\polytitrecourtsave
\polytitrecourtsave
\end{minipage}
}
\end{minipage}
}
}
}
\newcommand
{
\enteteinterieur
}
[1]
{
\newcommand
{
\enteteinterieur
}
[1]
{
\includegraphics
[height=\hauteurlogohori]
{
#1
}
\includegraphics
[height=\hauteurlogohori
,width=2\largeurlogohori,keepaspectratio
]
{
#1
}
}
}
\newcommand
{
\enteteexterieurpair
}{
\newcommand
{
\enteteexterieurpair
}{
\enteteexterieur
{
\flushright
}
\enteteexterieur
{
\flushright
}
...
@@ -284,12 +279,12 @@
...
@@ -284,12 +279,12 @@
}
}
\newcommand
{
\entetes
}{
\newcommand
{
\entetes
}{
\newpagestyle
{
polytechnique
}{
\newpagestyle
{
polytechnique
}{
\sethead
[\enteteinterieurpair]
% left even
\sethead
[\
raisebox{.5\hauteurlogohori}{\raisebox{-0.5\height}{\
enteteinterieurpair
}}
]
% left even
[]
% center even
[]
% center even
[
\enteteexterieurpair
]
% right even
[
\
raisebox
{
.5
\hauteurlogohori
}{
\raisebox
{
-0.5
\height
}{
\
enteteexterieurpair
}}
]
% right even
{
\enteteexterieurimpair
}
% left odd
{
\raisebox
{
.5
\hauteurlogohori
}{
\raisebox
{
-0.5
\height
}
{
\enteteexterieurimpair
}
}}
% left odd
{}
% center odd
{}
% center odd
{
\enteteinterieurimpair
}
% right odd
{
\raisebox
{
.5
\hauteurlogohori
}{
\raisebox
{
-0.5
\height
}
{
\enteteinterieurimpair
}
}}
% right odd
\setfoot
{}
% left odd
\setfoot
{}
% left odd
{
\piedcentre
}
% center odd
{
\piedcentre
}
% center odd
{}
% right odd
{}
% right odd
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment