diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/droit-fr/droit-fr.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/droit-fr/droit-fr.cls | 479 |
1 files changed, 479 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/droit-fr/droit-fr.cls b/Master/texmf-dist/tex/latex/droit-fr/droit-fr.cls new file mode 100644 index 00000000000..7d87b49ab6f --- /dev/null +++ b/Master/texmf-dist/tex/latex/droit-fr/droit-fr.cls @@ -0,0 +1,479 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{droit-fr}[2012/02/17 v0.1 classe pour droit francais] +\LoadClassWithOptions{memoir} % classe de référence: memoir + +%%% PACKAGES REQUIS %%% + +\RequirePackage[utf8]{inputenc} +\RequirePackage[T1]{fontenc} +\RequirePackage{mathptmx} % police Times +\RequirePackage{engrec} % compteur à symbole grecs +\RequirePackage{filecontents} % génération des fichers de style makeindex +\RequirePackage{lipsum} % génération de texte automatique +\RequirePackage{ifdraft} % comportements spécifiques quand l'option de classe draft est présente +\RequirePackage{xifthen} % code conditionnel +\RequirePackage{babel} % support des langues +\RequirePackage[babel]{csquotes} % support des guillemets babel +\RequirePackage{hyperref} % hyperliens PDF +\RequirePackage{bookmark} % signets PDF + +%%% OPTIONS %%% + +%\DeclareOption{bidule}{} +%\ProcessOptions + +%%% PAGE DE TITRE %%% + +% université +\newcommand{\university}[1]{\def\theuniversity{#1}} + +% école doctorante +\newcommand{\school}[1]{\def\theschool{#1}} + +% spécialité de la thèse +\newcommand{\speciality}[1]{\def\thespeciality{#1}} + +% date de soutenance +\newcommand{\approvaldate}[1]{\def\theapprovaldate{#1}} + +% titre +\renewcommand{\title}[1]{\def\thetitle{#1}} + +% auteur +\renewcommand{\author}[2]{\def\theauthor{#1 \textsc{#2}}} + +% directeur de thèse +% {civilité}{prénom}{nom}{poste} +\newcommand{\director}[4]{% +\def\thedirector{\textbf{#1 #2 \textsc{#3}}} +\def\thedirectorjob{#4}} + +% rapporteurs +% {civilité}{prénom}{nom}{poste} +\newcommand{\reportera}[4]{% +\def\thereportera{\textbf{#1 #2 \textsc{#3}}} +\def\thereporterajob{#4}} + +\newcommand{\reporterb}[4]{% +\def\thereporterb{\textbf{#1 #2 \textsc{#3}}} +\def\thereporterbjob{#4}} + +% autres membres du jury +% {civilité}{prénom}{nom}{poste} +\newcommand{\membera}[4]{% +\def\themembera{\textbf{#1 #2 \textsc{#3}}} +\def\thememberajob{#4}} + +\newcommand{\memberb}[4]{% +\def\thememberb{\textbf{#1 #2 \textsc{#3}}} +\def\thememberbjob{#4}} + +% page de titre pour la soutenance +\newcommand{\maketitlepage}{{% +\thispagestyle{empty} + +\begin{center} +{\LARGE Université \theuniversity \\[1\onelineskip]} +{\large École doctorale de \theschool \\[2\onelineskip]} + +{Thèse de doctorat en \thespeciality \\ +soutenue le \theapprovaldate \\[2\onelineskip]} + +{\LARGE\bfseries \thetitle \\[2\onelineskip]} +{\Large \theauthor \\[2\onelineskip]} + +\vfill + +\begin{tabular}{ll} +Sous la direction de: & \thedirector \\ + & \thedirectorjob \\ + & \\ +Rapporteurs: & \thereportera \\ + & \thereporterajob \\ + & \thereporterb \\ + & \thereporterbjob \\ + & \\ +Membres du jury: & \themembera \\ + & \thememberajob \\ + & \thememberb \\ + & \thememberbjob +\end{tabular} +\end{center} + +\cleardoublepage +}} + +%%% TEXTE %%% + +\OnehalfSpacing % espacement de ligne +\frenchbsetup{PartNameFull=false} % "partie I" préféré à "première partie" + +%%% EN-TETES / PIEDS DE PAGE %%% + +% date de compilation indiquée en mode draft uniquement +\newcommand{\addversion}{\ifdraft{Imprimé le \today}{}} + +% définition du style des headers et footers +\makepagestyle{corpus} +\makeheadrule{corpus}{\textwidth}{\normalrulethickness} +%\makefootrule{corpus}{\textwidth}{\normalrulethickness}{\footruleskip} +\makeevenhead{corpus}{\small\thetitle}{}{\small\addversion} +\makeoddhead{corpus}{}{}{\small\rightmark} +\makeevenfoot{corpus}{}{\small\thepage}{} +\makeoddfoot{corpus}{}{\small\thepage}{} +\makepsmarks{corpus}{% +\nouppercaseheads +\createmark{part}{right}{shownumber}{Titre }{. \ } +\createmark{chapter}{right}{shownumber}{\@chapapp\ }{. \ } +\createmark{section}{right}{shownumber}{}{. \ } +\createmark{subsection}{right}{shownumber}{}{ \ } +\createplainmark{toc}{right}{\contentsname} +\createplainmark{lof}{right}{\listfigurename} +\createplainmark{lot}{right}{\listtablename} +\createplainmark{bib}{right}{\bibname} +\createplainmark{index}{right}{\indexname} +\createplainmark{glossary}{right}{\glossaryname} +} + +% hack de la classe memoir: équivalent à \createmark{book}, non disponible +\def\bookpagemark#1{% + \markright{% + \ifnum\c@secnumdepth > -2 + \if@mainmatter + Partie \thebook. \ % + \fi + \fi +#1}} + +\pagestyle{corpus} + + +%%% SECTIONS %%% + +% parties ("Première partie") + +% macro de conversion compteur => chaine de caractères de genre féminin +\newcommand{\counterToFrenchF}[1]{\ifcase\value{#1}\or Première\or + Seconde\or Troisième\or Quatrième\or Cinquième\or + Sixième\or Septième\or Huitième\or Neuvième\or Dixième\or + Onzième\or Douzième\or Treizième\or Quatorzième\or Quinzième\or + Seizième\or Dix-septième\or Dix-huitième\or Dix-neuvième\or Vingtième\fi} +\renewcommand*{\bookname}{\protect\counterToFrenchF{book}~partie} +\renewcommand{\booknamenum}{} % espace entre intitulé et numéro +\renewcommand{\printbooknum}{} % numéro +\newcommand{\partie}{\book} + +% titres (I) + +\AtBeginDocument{% +\renewcommand*{\partname}{Titre} +} +\counterwithin*{part}{book}% RAZ du compteur \part dans un nouveau book +\newcommand{\titre}{\part} + +% chapitres (1) + +\counterwithin*{chapter}{part}% RAZ du compteur \chapter dans une nouvelle part +\newcommand{\chapitre}{\chapter} + +% sections (I) + +\renewcommand*{\thesection}{Section \Roman{section}} +%\setbeforesecskip{} +%\setsecindent{} +%\setaftersecskip{1em} +%\setsecheadstyle{} +\newcommand{\sectio}{\section} + +% paragraphes (§1) + +\renewcommand*{\thesubsection}{\S\ \arabic{subsection}.} +%\setbeforesubsecskip{} +%\setsubsecindent{} +%\setaftersubsecskip{} +%\setsubsecheadstyle{} +\newcommand{\paragraphe}{\subsection} + +% sous-paragraphes (A.) + +\renewcommand*{\thesubsubsection}{\Alph{subsubsection}.} +%\setbeforesubsubsecskip{} +%\setsubsubsecindent{} +%\setaftersubsubsecskip{} +%\setsubsubsecheadstyle{} +\newcommand{\souspara}{\subsubsection} + +% alinéas (1.) + +\renewcommand*{\theparagraph}{\arabic{paragraph}.} +%\setbeforeparaskip{} +%\setparaindent{} +%\setafterparaskip{} +%\setparaheadstyle{} +\newcommand{\alinea}{\paragraph} + +% sous-alinéas (a.) + +\renewcommand*{\thesubparagraph}{\alph{subparagraph}.} +%\setbeforesubparaskip{} +%\setsubparaindent{} +%\setaftersubparaskip{} +%\setsubparaheadstyle{} +\newcommand{\sousalinea}{\subparagraph} + +% points (i.) + +\newcommand{\subsubparagraph}{\@startsection{subsubparagraph} + {6}{\parindent}{1\baselineskip plus 0.25\baselineskip} + {.5em}{\normalsize\bfseries}} +\newlistentry[subparagraph]{subsubparagraph}{toc}{5} +\newcommand*{\subsubparagraphmark}[1]{} % gobble heading mark +\renewcommand{\thesubsubparagraph}{\roman{subsubparagraph}.} +\newcommand{\point}{\subsubparagraph} + +% souspoints (alpha.) + +\newcommand{\subsubsubparagraph}{\@startsection{subsubsubparagraph} + {7}{\parindent}{1\baselineskip plus 0.25\baselineskip} + {.5em}{\normalsize\bfseries}} +\newlistentry[subsubparagraph]{subsubsubparagraph}{toc}{6} +\newcommand*{\subsubsubparagraphmark}[1]{} % gobble heading mark +\renewcommand{\thesubsubsubparagraph}{\engrec{subsubsubparagraph}.} +\newcommand{\souspoint}{\subsubsubparagraph} + +% versets (paragraphes numérotés) + +\newcommand{\versetsec}[1]{\@startsection{versetsec} + {8}{\parindent}{0.5\baselineskip} + {#1}{\small\textbf}} +\newlistentry{versetsec}{toc}{7} +\newcommand*{\versetsecmark}[1]{} % gobble heading mark +\renewcommand{\theversetsec}{\arabic{versetsec}.} + +\newcommand{\versetsecfilled}{\versetsec{-0.5em}} +\newcommand{\versetsecblank}{\versetsec{-0em}} + +% référencement des versets dans l'index +\newcounter{indexv} +\newcommand{\verset}[1]{% + \ifthenelse{\equal{#1}{}}% + {\versetsecblank{#1}}% + {\versetsecfilled{#1}}% + \addtocounter{indexv}{1}% +} + +% numérotation visible +\setsecnumdepth{all} +\maxsecnumdepth{all} +\setcounter{secnumdepth}{7} % pour points (6) et sous-points (7) + + +%%% GLOSSAIRE + +\renewcommand{\memgloterm}[1]{\textbf{#1}} +\renewcommand{\memglodesc}[1]{\hspace{1ex}#1} +\renewcommand{\memglonum}[1]{} + +% groupes par lettre alphabétique +\newcommand{\doglobookmark}[1]{% +{\bfseries\centering% +#1\phantomsection\pdfbookmark[1]{#1}{#1-glo}% +\vskip\onelineskip\par}} + + +%%% INDEX %%% + +\renewcommand*{\seename}{\textit{voir}} +\renewcommand*{\alsoname}{\textit{v. aussi}} + +\ifdraft{\showindexmarks}{} + +\newcommand{\indexv}[1]{\specialindex{\jobname}{indexv}{#1}} +\newcommand{\printindexv}{\printindex[\jobname]} + +\newcommand{\idxmark}[1]{#1\markboth{#1}{#1}} + +\newcommand{\hyperbf}[1]{\textbf{\hyperpage{#1}}} +\newcommand{\hyperit}[1]{\textit{\hyperpage{#1}}} + +% groupes par lettre alphabétique +\newcommand{\doidxbookmark}[1]{% +{\def\@tempa{Symbols}\def\@tempb{#1}% +\bfseries\centering \ifx\@tempa\@tempb % +Symboles +\phantomsection% +\pdfbookmark[1]{Symboles}{Analphabetics-idx}% +\label{AnalphabeticsAnalphabeticsAnalphabetics-idx}% +\else +#1% +\phantomsection% +\pdfbookmark[1]{#1}{#1-idx}% +% \label{#1#1#1-idx}% +\fi% +\vskip\onelineskip\par}} + + +%%% SOMMAIRE & TABLE DES MATIERES %%% + +% paramètres communs +\renewcommand{\cftbookname}{Partie\space}% +\renewcommand{\cftpartname}{Titre\space}% +% +\cftsetindents{subsubparagraph}{4em}{2em} +\cftsetindents{subsubsubparagraph}{5em}{2em} +\cftsetindents{versetsec}{6em}{2em} + +% sommaire +\newcommand*{\setupshorttoc}{% +\renewcommand*{\contentsname}{Sommaire} +\let\oldchangetocdepth\changetocdepth +\renewcommand*{\changetocdepth}[1]{} +\let\oldcftchapterfillnum\cftchapterfillnum +\setcounter{tocdepth}{0}% Parties / Titres / Chapitres seulement +% +%\cftpagenumbersoff{book} +%\cftpagenumbersoff{part} +%\cftpagenumbersoff{chapter} +% +\renewcommand{\tocheadstart}{} +% +\renewcommand{\cftbeforebookskip}{1em}% +%\renewcommand{\cftbookfont}{}% +\renewcommand{\cftbookindent}{0em}% +%\renewcommand{\cftbooknumwidth}{}% +\renewcommand{\cftbookpagefont}{\normalfont\bfseries\large}% +%\renewcommand{\cftafterbookskip}{}% +%\renewcommand{\cftbookleader}{\cftdotfill{\cftdotsep}}% +% +\renewcommand{\cftbeforepartskip}{0.5em}% +\renewcommand{\cftpartfont}{\normalfont\scshape}% +\renewcommand{\cftpartindent}{0.5em}% +%\renewcommand{\cftpartnumwidth}{}% +\renewcommand{\cftpartpagefont}{\normalfont\scshape}% +%\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}}% +% +\renewcommand{\cftbeforechapterskip}{0em}% +\renewcommand{\cftchapterfont}{\normalfont}% +\renewcommand{\cftchaptername}{Chapitre\space}% +\renewcommand{\cftchapterindent}{1em}% +%\renewcommand{\cftchapternumwidth}{}% +\renewcommand{\cftchapterpagefont}{\normalfont}% +%\renewcommand{\cftchapterleader}{\cftdotfill{\cftdotsep}}% +}% + +\newcommand{\shorttableofcontents}{% +\clearpage +\setupshorttoc +\tableofcontents +}% + +% table des matières +\newcommand*{\setuplongtoc}{% +\renewcommand*{\contentsname}{Table des matières}% +\let\changetocdepth\oldchangetocdepth +\setcounter{tocdepth}{7}% +% +% \cftpagenumberson{book} +% \cftpagenumberson{part} +% \cftpagenumberson{chapter} +% +\renewcommand{\tocheadstart}{\chapterheadstart} +% +\renewcommand{\cftbookbreak}{\addpenalty{-\@highpenalty}\clearpage} +\renewcommand{\cftbeforebookskip}{2em}% +\renewcommand{\cftbookfont}{\normalfont\bfseries\Large}% +\renewcommand{\cftbookindent}{0em}% +%\renewcommand{\cftbooknumwidth}{}% +%\renewcommand{\cftafterbookskip}{}% +\renewcommand{\cftbookleader}{\cftdotfill{\cftdotsep}}% +% +\renewcommand{\cftbeforepartskip}{1.5em}% +\renewcommand{\cftpartfont}{\normalfont\bfseries\large}% +\renewcommand{\cftpartindent}{0em}% +%\renewcommand{\cftpartnumwidth}{}% +\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}}% +% +\renewcommand{\cftbeforechapterskip}{1em}% +\renewcommand{\cftchapterfont}{\normalfont\bfseries\large}% +\renewcommand{\cftchaptername}{Chapitre\space}% +\renewcommand{\cftchapterindent}{0em}% +%\renewcommand{\cftchapternumwidth}{}% +\renewcommand{\cftchapterleader}{\cftdotfill{\cftdotsep}}% +% +\renewcommand{\cftbeforesectionskip}{0.5em}% +\renewcommand{\cftsectionfont}{\normalfont\large}% +%\renewcommand{\cftsectionname}{Section\space}% +\renewcommand{\cftsectionindent}{0em}% +\renewcommand{\cftsectionnumwidth}{5.5em}% +%\renewcommand{\cftsectionleader}{\cftdotfill{\cftdotsep}}% +% +\renewcommand{\cftbeforesubsectionskip}{0.5em}% +\renewcommand{\cftsubsectionfont}{\normalfont\scshape}% +%\renewcommand{\cftsubsectionname}{}% +\renewcommand{\cftsubsectionindent}{0em}% +\renewcommand{\cftsubsectionnumwidth}{2em}% +%\renewcommand{\cftsubsectionleader}{\cftdotfill{\cftdotsep}}% +% +%\renewcommand{\cftbeforesubsubsectionskip}{}% +\renewcommand{\cftsubsubsectionfont}{\normalfont\itshape}% +%\renewcommand{\cftsubsubsectionname}{}% +\renewcommand{\cftsubsubsectionindent}{1em}% +\renewcommand{\cftsubsubsectionnumwidth}{2em}% +%\renewcommand{\cftsubsubsectionleader}{\cftdotfill{\cftdotsep}}% +% +%\renewcommand{\cftbeforeparagraphskip}{}% +\renewcommand{\cftparagraphfont}{\normalfont}% +%\renewcommand{\cftparagraphname}{}% +\renewcommand{\cftparagraphindent}{2em}% +\renewcommand{\cftparagraphnumwidth}{2em}% +%\renewcommand{\cftparagraphleader}{\cftdotfill{\cftdotsep}}% +% +%\renewcommand{\cftbeforesubparagraphskip}{}% +\renewcommand{\cftsubparagraphfont}{\normalfont}% +%\renewcommand{\cftsubparagraphname}{}% +\renewcommand{\cftsubparagraphindent}{3em}% +\renewcommand{\cftsubparagraphnumwidth}{2em}% +%\renewcommand{\cftsubparagraphleader}{\cftdotfill{\cftdotsep}}% +% +\renewcommand{\cftsubsubparagraphfont}{\normalfont\small}% +% +\renewcommand{\cftsubsubsubparagraphfont}{\normalfont\small}% +% +}% + +\newcommand{\longtableofcontents}{% +\clearpage +\setuplongtoc +\tableofcontents +}% + +% génération du fichier de style .ist +\begin{filecontents}{\jobname.ist} +% output main entry <entry> as: \item \idxmark{<entry>}, +item_0 "\n\\item \\idxmark{" +delim_0 "}, " +% not forgetting the subitem case% added 2008 +item_x1 "} \n \\subitem " +% Wrap and uppercase head letters +headings_flag 1 +heading_prefix "\\doidxbookmark{" +heading_suffix "}" +\end{filecontents} + +% génération du fichier de style .gst +\begin{filecontents}{\jobname.gst} +% Output style parameters +preamble "\\begin{theglossary}" +postamble "\n\\end{theglossary}\n" +item_0 "\n\\glossitem" +delim_0 "{\\memglonum{" +encap_suffix "}}}" +headings_flag 1 +heading_prefix "\\doglobookmark{" +heading_suffix "}" +% Input style parameters +keyword "\\glossaryentry" +\end{filecontents} + +\endinput + |