diff --git a/polytechnique.dtx b/polytechnique.dtx index fd0f74c631b9133da6f68e05f94faf7fbaa9f4c1..053256e5e6fa9f0af7fd9eb12075779cd8162eda 100644 --- a/polytechnique.dtx +++ b/polytechnique.dtx @@ -951,5 +951,4 @@ LaTeX version 1999/12/01 or later. %\typeout{* dossier ou se trouvent les packages de votre di- *} %\typeout{* tribution (si ce n'est pas deja fait). *} %\typeout{* *} -\PrintChanges \endinput diff --git a/polytechnique.sty b/polytechnique.sty deleted file mode 100644 index 52e9c3cee0365b6cfcac372663233281cf0081bc..0000000000000000000000000000000000000000 --- a/polytechnique.sty +++ /dev/null @@ -1,376 +0,0 @@ -%% -%% This is file `polytechnique.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% polytechnique.dtx (with options: `package') -%% This is a generated file. -%% -%% Copyright (C) 2015 by Denis Merigoux -%% -%% This file may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either -%% version 1.2 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.2 or later is part of all distributions of -%% LaTeX version 1999/12/01 or later. -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{polytechnique} - [2015/04/29 v1.3.0, standard scientific documents layout for Ecole polytechnique (Palaiseau,France).] -%%\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 -%% 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 -%% Digits \0\1\2\3\4\5\6\7\8\9 -%% Exclamation \! Double quote \" Hash (number) \# -%% Dollar \$ Percent \% Ampersand \& -%% Acute accent \' Left paren \( Right paren \) -%% Asterisk \* Plus \+ Comma \, -%% Minus \- Point \. Solidus \/ -%% Colon \: Semicolon \; Less than \< -%% Equals \= Greater than \> Question mark \? -%% Commercial at \@ Left bracket \[ Backslash \\ -%% Right bracket \] Circumflex \^ Underscore \_ -%% Grave accent \` Left brace \{ Vertical bar \| -%% Right brace \} Tilde \~} -%% -\DeclareOption{a4paper}{ - \PassOptionsToPackage{a4paper}{geometry} -} -\DeclareOption{fancysections}{ - \AtEndOfPackage{ - \titleformat{\chapter} - [display] - {\Huge\bfseries\sffamily} - {\LARGE\chaptertitlename{} \thechapter} - {0em} - {} - [] - \titleformat{\section} - [display] - {\color{rouge485}\LARGE\bfseries\sffamily\filcenter} - {\thesection}{0em} - {\MakeUppercase} - [\vspace*{-0.5\baselineskip}% - \includegraphics{\polyfiletlongrouge}] - \titleformat{\subsection} - [hang] - {\color{bleu315}\Large\scshape} - {\thesubsection} - {0.5em} - {} - [\vspace*{-0.3\baselineskip}% - \includegraphics{\polyfiletcourtbleuclair}] -\titleformat{\subsubsection} - [block] - {\color{bleu303}\large\scshape} - {\thesubsubsection} - {0.5em} - {\textbullet{} } - [] - } -} -\DeclareOption{notitlepage}{ - \AtBeginDocument{ - \renewcommand*{\maketitle}{ - \thispagestyle{plain} - \vspace*{\distancetitrelogo} - \noindent - \begin{minipage}[b]{\largeurminipage} - \hspace{0cm}\polyauthorsave - \end{minipage} - \hspace*{\fill} - \includegraphics[width=\largeurlogovert]{\polylogovert} - \hspace*{\fill} - \begin{minipage}[b]{\largeurminipage} - \flushright\hspace{0cm}\polydatesave - \end{minipage} - \\[\separationlogotrait] - \begin{center} - \textcolor{bleu303}{\rule{\textwidth}{\epaisseurtrait}} - \\ - \color{bleu303}\Huge\scshape - \MakeUppercaseWithNewline{\polytitresave} - \ifthenelse{\boolean{subtitle}}{ - \\[\separationlignestitre] - \Large\upshape\polysoustitresave\\\normalsize - }{ - \\ - \normalsize - } - \textcolor{bleu303}{\rule{\textwidth}{\epaisseurtrait}} - \end{center} - \vspace*{\distancetitrecorps} - } - } -} -\DeclareOption{titlepage}{ - \AtBeginDocument{ - \renewcommand*{\maketitle}{ - \noindent\makebox[\textwidth][c]{% - \raisebox{-\totalheight}[0pt][0pt]{% - \includegraphics[height=\hauteurlogopage]{\polyarmes}}} - \vspace*{0.125\textheight} - \begin{center} - \Huge\sffamily\bfseries\color{bleu303} - \MakeUppercaseWithNewline{\polytitresave}\\ - \vspace*{0.2\textheight} - \LARGE\hspace{0cm}\polysoustitresave\\ - \vspace*{0.15\textheight} - \Large\mdseries\hspace{0cm}\polydatesave\\ - \includegraphics{\polyfiletcourtbleu} - \\[0.4\baselineskip] - \rmfamily\hspace{0cm}\polyauthorsave\\[\fill] - $\;$\polylogosup{} - \vspace*{-0.5\margebas} - \end{center} - \thispagestyle{empty} - \clearpage - } - } -} -\DeclareOption{oneside}{ - \AtEndOfPackage{ - \geometry{left=\margecote,right=\margecote} - } -} -\DeclareOption{twoside}{ - \AtEndOfPackage{ - \geometry{inner=\margecoteinterieur, - outer=\margecoteexterieur} - } -} -\DeclareOption{sectionmark}{ - \AtEndOfPackage{ - \renewcommand{\enteteinterieur}[1]{ - \ifthesection{ - \raisebox{\decalageverticalentete} - {\scshape\color{bleu303} - \thesection{}.~\sectiontitle} - }{ - } - } - } -} -\DeclareOption{chaptermark}{ - \AtEndOfPackage{ - \renewcommand{\enteteinterieur}[1]{ - \ifthechapter{ - \raisebox{\decalageverticalentete} - {\scshape\color{bleu303} - \thechapter{}.~\chaptertitle} - }{ - - } - } - } -} -\DeclareOption{markboth}{ - \AtEndOfPackage{ - \renewcommand{\enteteinterieurimpair}{ - \ifthesection{%Si la section a ete definie - \raisebox{\decalageverticalentete} - {\scshape\color{bleu303} - \thesection{}.~\sectiontitle} - }{ - - } - } - \renewcommand{\enteteinterieurpair}{ - \ifthechapter{ - \raisebox{\decalageverticalentete} - {\scshape\color{bleu303} - \thechapter{}.~\chaptertitle} - }{ - - } - } - } -} -\DeclareOption{pagenumber}{ - \AtEndOfPackage{ - \RequirePackage{lastpage} - \renewcommand{\piedcentre}{ - \setlength{\largeurfiletpiedcentre} - {2\largeurfiletpiedcentre} - \textcolor{bleu303}{\shortstack[c]{ - \rule{\largeurfiletpiedcentre}{0.3mm}\\ - \thepage/\pageref{LastPage}}} - } - } -} -\DeclareOption*{ - \PassOptionsToPackage{\CurrentOption}{geometry} -} -\ExecuteOptions{a4paper,notitlepage,oneside} -\ProcessOptions\relax -\RequirePackage{calc} -\RequirePackage{color} -\RequirePackage{geometry} -\RequirePackage{graphicx} -\RequirePackage{ifthen} -\RequirePackage{ifpdf} -\RequirePackage{lmodern} -\RequirePackage[pagestyles]{titlesec} -\definecolor{bleu303}{RGB}{0,62,92} -\definecolor{rouge485}{RGB}{213,43,30} -\definecolor{bleu315}{RGB}{0,104,128} -\ifpdf - \newcommand{\polyfiletlongrouge}{ressources/filetlongrouge.pdf} - \newcommand{\polyfiletcourtbleuclair}{ressources/filetcourtbleuclair.pdf} - \newcommand{\polyfiletcourtbleu}{ressources/filetcourtbleu.pdf} - \newcommand{\polylogovert}{ressources/logovert.pdf} - \newcommand{\polylogohori}{ressources/logohori.pdf} - \newcommand{\polyarmes}{ressources/armes.pdf} -\else - \newcommand{\polyfiletlongrouge}{ressources/filetlongrouge.eps} - \newcommand{\polyfiletcourtbleuclair}{ressources/filetcourtbleuclair.eps} - \newcommand{\polyfiletcourtbleu}{ressources/filetcourtbleu.eps} - \newcommand{\polylogovert}{ressources/logovert.eps} - \newcommand{\polylogohori}{ressources/logohori.eps} - \newcommand{\polyarmes}{ressources/armes.eps} -\fi -\newlength{\margehaut} -\setlength{\margehaut}{40mm} -\newlength{\hauteurentete} -\setlength{\hauteurentete}{27mm} -\newlength{\separationentete} -\setlength{\separationentete}{12mm} -\newlength{\margecote} -\setlength{\margecote}{20mm} -\newlength{\margecoteinterieur} -\setlength{\margecoteinterieur}{22.5mm} -\newlength{\margecoteexterieur} -\setlength{\margecoteexterieur}{17.5mm} -\newlength{\margebas} -\setlength{\margebas}{35mm} -\newlength{\separationpied} -\setlength{\separationpied}{17.5mm} -\newlength{\hauteurlogohori} -\setlength{\hauteurlogohori}{15mm} -\newlength{\separationtitre} -\setlength{\separationtitre}{15mm} -\newlength{\epaisseurtrait} -\setlength{\epaisseurtrait}{1pt} -\newlength{\separationlignestitre} -\setlength{\separationlignestitre}{3mm} -\newlength{\separationtitrecorps} -\setlength{\separationtitrecorps}{15mm} -\newlength{\hauteurlogopage} -\setlength{\hauteurlogopage}{0.6\textheight} -\newlength{\separationentetelogo} -\setlength{\separationentetelogo}{20mm} -\newlength{\largeurfiletpiedcentre} -\setlength{\largeurfiletpiedcentre}{4mm} -\newlength{\largeurlogovert} -\setlength{\largeurlogovert}{\paperwidth/\real{7}} -\newlength{\hauteurlogovert} -\setlength{\hauteurlogovert}{\largeurlogovert*\real{1.361}} -\newlength{\largeurlogohori} -\setlength{\largeurlogohori}{\hauteurlogohori*\real{1.859}} -\newlength{\distancetitrelogo} -\setlength{\distancetitrelogo}{\separationtitre-\margehaut} -\newlength{\separationlogotrait} -\setlength{\separationlogotrait}{-\baselineskip*2+10mm} -\newlength{\largeurminipage} -\setlength{\largeurminipage}{(\textwidth-\largeurlogovert)/\real{2}} -\newlength{\distancetitrecorps} -\setlength{\distancetitrecorps}{\separationtitrecorps-\baselineskip*2} -\newlength{\largeurtitreentete} -\setlength{\largeurtitreentete}{\textwidth-\largeurlogohori - -\separationentetelogo} -\newlength{\decalageverticalentete} -\setlength{\decalageverticalentete}{\hauteurlogohori/\real{2.6}} -\geometry{ - top=\margehaut,headheight=\hauteurentete,headsep=\separationentete, - bottom=\margebas,footskip=\separationpied -} -\newcommand{\piedcentre}{ - \textcolor{bleu303}{\shortstack[c] - {\rule{\largeurfiletpiedcentre}{0.3mm}\\\thepage}} -} -\newcommand{\enteteinterieur}[1]{ - \raisebox{\decalageverticalentete} - {\begin{minipage}[b]{\largeurtitreentete} - \scshape#1\textcolor{bleu303} - \polytitresave - \end{minipage}} -} -\newcommand{\enteteexterieur}{ - \includegraphics[height=\hauteurlogohori]{\polylogohori} -} -\newcommand{\enteteinterieurpair}{ - \enteteinterieur{} -} -\newcommand{\enteteinterieurimpair}{ - \enteteinterieur{\flushright} -} -\newcommand{\entetes}{ - \newpagestyle{polytechnique}{ - \sethead[\enteteinterieurpair]% left even - []% center even - [\enteteexterieur]% right even - {\enteteexterieur}% left odd - {}% center odd - {\enteteinterieurimpair}% right odd - \setfoot{}% left odd - {\piedcentre}% center odd - {}% right odd - } - \pagestyle{polytechnique} -} -\renewpagestyle{plain}{ - \sethead{}% left - {}% center - {}% right - \setfoot{}% left - {\piedcentre}% center - {}% right -} -\pagestyle{plain} -\newboolean{subtitle}\setboolean{subtitle}{false} -\newcommand{\polysoustitresave}{} -\newcommand*{\subtitle}[1]{ - \renewcommand*{\polysoustitresave}{#1} - \setboolean{subtitle}{true} -} -\newcommand{\polytitresave}{} -\renewcommand*{\title}[1]{ - \renewcommand*{\polytitresave}{#1} - \entetes -} -\newcommand{\polyauthorsave}{} -\renewcommand*{\author}[1]{ - \renewcommand*{\polyauthorsave}{#1} -} -\newcommand{\polydatesave}{\today} -\renewcommand*{\date}[1]{ - \renewcommand*{\polydatesave}{#1} -} -\newcommand{\polylogosup}{ -\includegraphics[height=\hauteurlogovert]{\polylogovert} -} -\newcommand{\logo}[1]{ - \renewcommand{\polylogosup}{ - \includegraphics[height=1.5\hauteurlogohori] - {\polylogohori} - \hspace{0.05\textwidth} - \includegraphics[height=\hauteurlogovert, - width=1.5\largeurlogohori, - keepaspectratio]{#1}% - } -} -\newcommand{\MakeUppercaseWithNewline}[1]{ - \begingroup - \let\SavedOrgNewline\\% - \DeclareRobustCommand{\\}{\SavedOrgNewline}% - \MakeUppercase{#1}% - \endgroup -} -\PrintChanges -\endinput -%% -%% End of file `polytechnique.sty'.