Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • ines.fonquernie/polytechnique
  • julien.griffon/polytechnique
  • typographix/polytechnique
  • stanislas.radziszewski/polytechnique
  • mael.madon/polytechnique
  • ghada.ben-slama/polytechnique
  • bbrman/polytechnique
  • amadou.dieye/polytechnique
  • william.lenglet/polytechnique
  • soukaina.bruneau/polytechnique
10 results
Show changes
No preview for this file type
This diff is collapsed.
No preview for this file type
No preview for this file type
This diff is collapsed.
%% \iffalse meta-comment
%%
%% For explanation on this file, see http://texdoc.net/texmf-dist/doc/latex/dtxtut/dtxtut.pdf
%%
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. The latest version of this license is in:
%%
%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 1999/12/01 or later.
%%
\input docstrip.tex
\keepsilent
\usedir{tex/latex/polytechnique}
\preamble
This is a generated file.
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
version. The latest version of this license is in:
http://www.latex-project.org/lppl.txt
and version 1.3c or later is part of all distributions of
LaTeX version 1999/12/01 or later.
\endpreamble
\askforoverwritefalse
\generate{\file{polytechnique.sty}{\from{polytechnique.dtx}{package}}}
\obeyspaces
\endbatchfile
File added
...@@ -7,20 +7,19 @@ ...@@ -7,20 +7,19 @@
%% polytechnique.dtx (with options: `package') %% polytechnique.dtx (with options: `package')
%% This is a generated file. %% This is a generated file.
%% %%
%% Copyright (C) 2015 by Denis Merigoux
%% %%
%% This file may be distributed and/or modified under the %% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either %% conditions of the LaTeX Project Public License, either
%% version 1.2 of this license or (at your option) any later %% version 1.3c of this license or (at your option) any later
%% version. The latest version of this license is in: %% version. The latest version of this license is in:
%% %%
%% http://www.latex-project.org/lppl.txt %% http://www.latex-project.org/lppl.txt
%% %%
%% and version 1.2 or later is part of all distributions of %% and version 1.3c or later is part of all distributions of
%% LaTeX version 1999/12/01 or later. %% LaTeX version 1999/12/01 or later.
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{polytechnique} \ProvidesPackage{polytechnique}
[2015/07/04 v1.3.3, standard scientific documents layout for Ecole polytechnique (Palaiseau,France).] [2022/04/29 v1.3.10, standard scientific documents layout for Ecole polytechnique (Palaiseau,France).]
%%\CharacterTable %%\CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
...@@ -52,12 +51,13 @@ ...@@ -52,12 +51,13 @@
\titleformat{\section} \titleformat{\section}
[display] [display]
{\color{rouge485}\LARGE\bfseries\sffamily\filcenter} {\color{rouge485}\LARGE\bfseries\sffamily\filcenter}
{\thesection}{0em} {\thesection}
{\MakeUppercase} {0em}
{\MakeUppercaseWithNewline}
[\vspace*{-0.5\baselineskip}% [\vspace*{-0.5\baselineskip}%
\includegraphics{\polyfiletlongrouge}] \includegraphics{\polyfiletlongrouge}]
\titleformat{\subsection} \titleformat{\subsection}
[hang] [block]
{\color{bleu315}\Large\scshape} {\color{bleu315}\Large\scshape}
{\thesubsection} {\thesubsection}
{0.5em} {0.5em}
...@@ -96,11 +96,13 @@ ...@@ -96,11 +96,13 @@
} }
\DeclareOption{sectionmark}{ \DeclareOption{sectionmark}{
\AtEndOfPackage{ \AtEndOfPackage{
\renewcommand{\enteteexterieur}[1]{ \renewcommand{\enteteexterieurimpair}{
\ifthesection{ \ifthesection{
\raisebox{\decalageverticalentete} \begin{minipage}{\largeurtitreentete}
\flushleft
{\scshape\color{bleu303} {\scshape\color{bleu303}
\thesection{}.~\sectiontitle} \thesection{}.~\sectiontitle}
\end{minipage}
}{ }{
} }
} }
...@@ -108,11 +110,13 @@ ...@@ -108,11 +110,13 @@
} }
\DeclareOption{chaptermark}{ \DeclareOption{chaptermark}{
\AtEndOfPackage{ \AtEndOfPackage{
\renewcommand{\enteteexterieur}[1]{ \renewcommand{\enteteexterieurimpair}{
\ifthechapter{ \begin{minipage}{\largeurtitreentete}
\raisebox{\decalageverticalentete} \flushleft
{\scshape\color{bleu303} \ifthechapter{
\thechapter{}.~\chaptertitle} {\scshape\color{bleu303}
\thechapter{}.~\chaptertitle}
\end{minipage}
}{ }{
} }
...@@ -121,20 +125,24 @@ ...@@ -121,20 +125,24 @@
} }
\DeclareOption{markboth}{ \DeclareOption{markboth}{
\AtEndOfPackage{ \AtEndOfPackage{
\renewcommand{\enteteexterieurimpair}{ \begin{minipage}{\largeurtitreentete}
\ifthesection{%Si la section a ete definie \flushleft
\raisebox{\decalageverticalentete} \renewcommand{\enteteexterieurimpair}{
{\scshape\color{bleu303} \ifthesection{%Si la section a ete definie
\thesection{}.~\sectiontitle} {\scshape\color{bleu303}
\thesection{}.~\sectiontitle}
\end{minipage}
}{ }{
} }
} }
\renewcommand{\enteteexterieurpair}{ \renewcommand{\enteteexterieurpair}{
\ifthechapter{ \begin{minipage}{\largeurtitreentete}
\raisebox{\decalageverticalentete} \flushleft
{\scshape\color{bleu303} \ifthechapter{
\thechapter{}.~\chaptertitle} {\scshape\color{bleu303}
\thechapter{}.~\chaptertitle}
\end{minipage}
}{ }{
} }
...@@ -153,13 +161,27 @@ ...@@ -153,13 +161,27 @@
} }
} }
} }
\newif\ifgrandesmarges
\grandesmargesfalse
\DeclareOption{enmanquedinspiration}{
\grandesmargestrue
}
\DeclareOption*{ \DeclareOption*{
\PassOptionsToPackage{\CurrentOption}{geometry} \PassOptionsToPackage{\CurrentOption}{geometry}
} }
\ExecuteOptions{a4paper,notitlepage,oneside} \@ifclassloaded{book}{
\ExecuteOptions{titlepage}
}{}
\@ifclassloaded{report}{
\ExecuteOptions{titlepage}
}{}
\@ifclassloaded{article}{
\ExecuteOptions{notitlepage}
}{}
\ExecuteOptions{a4paper,oneside}
\ProcessOptions* \ProcessOptions*
\RequirePackage{calc} \RequirePackage{calc}
\RequirePackage{color} \RequirePackage{xcolor}
\RequirePackage{geometry} \RequirePackage{geometry}
\RequirePackage{graphicx} \RequirePackage{graphicx}
\RequirePackage{ifthen} \RequirePackage{ifthen}
...@@ -167,15 +189,16 @@ ...@@ -167,15 +189,16 @@
\RequirePackage{lmodern} \RequirePackage{lmodern}
\RequirePackage[pagestyles]{titlesec} \RequirePackage[pagestyles]{titlesec}
\definecolor{bleu303}{RGB}{0,62,92} \definecolor{bleu303}{RGB}{0,62,92}
\colorlet{bleu303pale}{bleu303!20!white}
\definecolor{rouge485}{RGB}{213,43,30} \definecolor{rouge485}{RGB}{213,43,30}
\definecolor{bleu315}{RGB}{0,104,128} \definecolor{bleu315}{RGB}{0,104,128}
\ifpdf \ifpdf
\newcommand{\polyfiletlongrouge} \newcommand{\polyfiletlongrouge}
{polytechnique-filetlongrouge.pdf} {polytechnique-filetlongrouge.pdf}
\newcommand{\polyfiletcourtbleuclair} \newcommand{\polyfiletcourt}
{polytechnique-filetcourtbleuclair.pdf} {polytechnique-filetcourt.pdf}
\newcommand{\polyfiletcourtbleu} \let\polyfiletcourtbleuclair\polyfiletcourt
{polytechnique-filetcourtbleu.pdf} \let\polyfiletcourtbleu\polyfiletcourt
\newcommand{\polylogovert} \newcommand{\polylogovert}
{polytechnique-logovert.pdf} {polytechnique-logovert.pdf}
\newcommand{\polylogohori} \newcommand{\polylogohori}
...@@ -213,7 +236,7 @@ ...@@ -213,7 +236,7 @@
\newlength{\separationpied} \newlength{\separationpied}
\setlength{\separationpied}{17.5mm} \setlength{\separationpied}{17.5mm}
\newlength{\hauteurlogohori} \newlength{\hauteurlogohori}
\setlength{\hauteurlogohori}{15mm} \setlength{\hauteurlogohori}{20mm}
\newlength{\separationtitre} \newlength{\separationtitre}
\setlength{\separationtitre}{15mm} \setlength{\separationtitre}{15mm}
\newlength{\epaisseurtrait} \newlength{\epaisseurtrait}
...@@ -222,6 +245,13 @@ ...@@ -222,6 +245,13 @@
\setlength{\separationlignestitre}{3mm} \setlength{\separationlignestitre}{3mm}
\newlength{\separationtitrecorps} \newlength{\separationtitrecorps}
\setlength{\separationtitrecorps}{15mm} \setlength{\separationtitrecorps}{15mm}
\ifgrandesmarges
\setlength\margecote{1.5\margecote}
\setlength\margehaut{1.2\margehaut}
\setlength\margebas{1.2\margebas}
\setlength\margecoteinterieur{1.5\margecoteinterieur}
\setlength\margecoteexterieur{1.5\margecoteexterieur}
\fi
\newlength{\hauteurlogopage} \newlength{\hauteurlogopage}
\setlength{\hauteurlogopage}{0.6\textheight} \setlength{\hauteurlogopage}{0.6\textheight}
\newlength{\separationentetelogo} \newlength{\separationentetelogo}
...@@ -260,14 +290,16 @@ ...@@ -260,14 +290,16 @@
{\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}[2][bleu303]{
\includegraphics[height=\hauteurlogohori]{#1} {%
\color{#1}%
\includegraphics[height=\hauteurlogohori,width=\largeurlogohori,keepaspectratio]{#2}%
}%
} }
\newcommand{\enteteexterieurpair}{ \newcommand{\enteteexterieurpair}{
\enteteexterieur{\flushright} \enteteexterieur{\flushright}
...@@ -283,12 +315,12 @@ ...@@ -283,12 +315,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
...@@ -332,13 +364,20 @@ ...@@ -332,13 +364,20 @@
} }
\newcommand{\logo}[2][{}]{ \newcommand{\logo}[2][{}]{
\ifthenelse{\equal{#1}{headers}}{ \ifthenelse{\equal{#1}{}}{
\if@twoside%
\renewcommand{\enteteinterieurimpair}{%
\enteteinterieur{#2}%
}%
\else%
\fi%
}{
\renewcommand{\enteteinterieurimpair}{ \renewcommand{\enteteinterieurimpair}{
\enteteinterieur{#2} \enteteinterieur{#1}
} }
}{} }
\renewcommand{\titlepagebottomline}{ \renewcommand{\titlepagebottomline}{
\begin{minipage}{5\largeurlogohori} \begin{minipage}{\linewidth}
\centering \centering
\raisebox{-0.5\height}{ \raisebox{-0.5\height}{
\includegraphics[width=1.5\largeurlogohori] \includegraphics[width=1.5\largeurlogohori]
...@@ -352,23 +391,26 @@ ...@@ -352,23 +391,26 @@
} }
\end{minipage} \end{minipage}
} }
\renewcommand{\notitlepageupperline}{ \renewcommand{\notitlepageupperline}{
\noindent% \noindent%
\begin{minipage}{\textwidth} \begin{minipage}{\textwidth}
\centering \centering
\begin{minipage}{0.33\textwidth} \begin{minipage}{0.33\textwidth}
\raisebox{-0.5\height} \raisebox{-0.5\height}
{\includegraphics[width=\largeurlogovert] {%
\includegraphics[width=\largeurlogovert]
{\polylogovert} {\polylogovert}
} }
\end{minipage}% \end{minipage}%
% \end{macrocode} % \end{macrocode}
\begin{minipage}{0.33\textwidth} \begin{minipage}{0.33\textwidth}
\color{bleu303}%
\centering\polydatesave{}\\ \centering\polydatesave{}\\
\polyauthorsave{}\\ \polyauthorsave{}\\
\includegraphics{\polyfiletcourtbleu} \includegraphics{\polyfiletcourtbleu}
\end{minipage}% \end{minipage}%
\begin{minipage}{0.33\textwidth} \begin{minipage}{0.33\textwidth}
\color{bleu303}%
\flushright\raisebox{-0.5\height} \flushright\raisebox{-0.5\height}
{\includegraphics[height=\hauteurlogovert, {\includegraphics[height=\hauteurlogovert,
width=1.75\largeurlogohori, width=1.75\largeurlogohori,
...@@ -381,12 +423,15 @@ ...@@ -381,12 +423,15 @@
\newcommand{\notitlepageupperline}{ \newcommand{\notitlepageupperline}{
\noindent \noindent
\begin{minipage}[b]{\largeurminipage} \begin{minipage}[b]{\largeurminipage}
\color{bleu303}%
\hspace{0cm}\polyauthorsave \hspace{0cm}\polyauthorsave
\end{minipage}% \end{minipage}%
\hspace*{\fill} \hspace*{\fill}
\includegraphics[width=\largeurlogovert]{\polylogovert} {%
\includegraphics[width=\largeurlogovert]{\polylogovert}}
\hspace*{\fill}% \hspace*{\fill}%
\begin{minipage}[b]{\largeurminipage} \begin{minipage}[b]{\largeurminipage}
\color{bleu303}%
\flushright\hspace{0cm}\polydatesave \flushright\hspace{0cm}\polydatesave
\end{minipage}% \end{minipage}%
} }
...@@ -419,7 +464,8 @@ ...@@ -419,7 +464,8 @@
\newcommand{\titlepagelayout}{ \newcommand{\titlepagelayout}{
\noindent\makebox[\textwidth][c]{% \noindent\makebox[\textwidth][c]{%
\raisebox{-\totalheight}[0pt][0pt]{% \raisebox{-\totalheight}[0pt][0pt]{%
\includegraphics[height=\hauteurlogopage]{\polyarmes}}} \color{bleu303pale}%
\includegraphics[height=\hauteurlogopage]{\polyarmes}}}
\vspace*{0.125\textheight} \vspace*{0.125\textheight}
\begin{center} \begin{center}
\Huge\sffamily\bfseries\color{bleu303} \Huge\sffamily\bfseries\color{bleu303}
......
No preview for this file type