summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/droit-fr
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-02-08 23:11:50 +0000
committerKarl Berry <karl@freefriends.org>2014-02-08 23:11:50 +0000
commit1f27ae98a65bff4df5c8db3a7f76974914e76a9a (patch)
tree12dc325c4213cb1671889586352d8332bbe88e43 /Master/texmf-dist/tex/latex/droit-fr
parent6a2e43e397e943ca2bd0ac30a6da94a46616228a (diff)
droit-fr (8feb14)
git-svn-id: svn://tug.org/texlive/trunk@32918 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/droit-fr')
-rw-r--r--Master/texmf-dist/tex/latex/droit-fr/droit-fr.bbx103
-rw-r--r--Master/texmf-dist/tex/latex/droit-fr/droit-fr.cbx16
-rw-r--r--Master/texmf-dist/tex/latex/droit-fr/droit-fr.cls180
3 files changed, 168 insertions, 131 deletions
diff --git a/Master/texmf-dist/tex/latex/droit-fr/droit-fr.bbx b/Master/texmf-dist/tex/latex/droit-fr/droit-fr.bbx
index fbcae9f4928..254c7ce8fb6 100644
--- a/Master/texmf-dist/tex/latex/droit-fr/droit-fr.bbx
+++ b/Master/texmf-dist/tex/latex/droit-fr/droit-fr.bbx
@@ -1,4 +1,4 @@
-\ProvidesFile{droit-fr.bbx}[2013/05/04 v0.2 style droit francais]
+\ProvidesFile{droit-fr.bbx}[2014/01/30 v0.4 style droit francais]
\RequireBibliographyStyle{verbose-ibid}
\RequireBiber[3]
@@ -44,6 +44,8 @@
\setlength{\bibitemsep}{1.5\itemsep} % espacement entre 2 références
\renewcommand*{\newunitpunct}{\addcomma\space} % separation des units par une virgule
\renewcommand*{\mkbibnamelast}[1]{\textsc{\textnohyphenation{#1}}} % petites maj. pour toutes les langues.
+\renewcommand*{\subtitlepunct}{\addcolon\space} % separation entre titre et sous-titre
+
% ------------------------------------------------------------------
% FIELD FORMATS
@@ -62,6 +64,8 @@
% pas de P. majuscule
\DeclareFieldFormat{postnote}{\midsentence\mkpageprefix[pagination]{#1}}
+\DeclareFieldFormat{volcitepages}{\midsentence\mkpageprefix[pagination]{#1}}
+\DeclareFieldFormat{multipostnote}{\midsentence\mkpageprefix[pagination]{#1}}
% Used in the bibliography
@@ -69,13 +73,12 @@
\DeclareFieldFormat{pages}{\midsentence\mkpageprefix[bookpagination]{#1}}
\DeclareFieldFormat{pagetotal}{\midsentence\mkpagetotal[bookpagination]{#1}}
-
% tout italique, sauf legislation
\DeclareFieldFormat{title}{\mkbibemph{#1\isdot}}
\DeclareFieldFormat[thesis]{title}{\mkbibemph{#1\isdot}}
\DeclareFieldFormat[legislation]{title}{#1\isdot}
-\DeclareFieldFormat{chapter}{#1\midsentence} % pas de 'chap.'
+\DeclareFieldFormat{chapter}{#1} % pas de 'chap.'
\DeclareFieldFormat[jurisdiction,legislation]{number}{\biblcstring{number}~#1}% no de l'arret
\DeclareFieldFormat[case]{journaltitle}{#1}% pas d'italique'
\DeclareFieldFormat[case]{volume}{#1}% pas de 't.'
@@ -134,51 +137,42 @@
\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}
\usebibmacro{name:andothers}}
-% définition d'un nouveau schéma de tri nyt, prenant en compte des champs institution et eventdate
-%\DeclareSortingScheme{nytx}{
-% \sort{
-% \field{presort}
-% }
-% \sort[final]{
-% \field{sortkey}
-% }
-% \sort{
-% \field{sortname}
-% \field{author}
-% \field{editor}
-% \field{translator}
-% \field{sorttitle}
-% \field{title}
-% }
-% % début ajouts
-% \sort{
-% \field{institution}
-% }
-% \sort{
-% \field{eventyear}
-% }
-% \sort{
-% \field[padside=left,padwidth=2,padchar=0]{eventmonth}
-% \literal{00}
-% }
-% \sort{
-% \field[padside=left,padwidth=2,padchar=0]{eventday}
-% \literal{00}
-% }
-% % fin ajouts
-% \sort{
-% \field{sortyear}
-% \field{year}
-% }
-% \sort{
-% \field{sorttitle}
-% \field{title}
-% }
-% \sort{
-% \field[padside=left,padwidth=4,padchar=0]{volume}
-% \literal{0000}
-% }
-%}
+
+% caractère de séparation entre plusieurs entrées référencées dans "related"
+\renewcommand*{\relateddelim}{\addsemicolon\addspace}
+
+% modification du champ "related" pour les commentaires d'arrêt
+\newbibmacro*{related:default}[1]{%
+ \entrydata{#1}{\usedriver{}{commentary}}}
+
+% indexation des auteurs seulement
+\renewbibmacro*{bibindex}{%
+ \ifbibindex
+ {\indexnames{labelname}}
+ {}}
+
+\renewcommand*{\mkbibindexname}[4]{%
+ \ifuseprefix
+ {\ifblank{#3}{}{#3 }%
+ \@firstofone #1% remove spurious braces
+ \ifblank{#4}{}{ #4}%
+ \ifblank{#2}{}{, #2}%
+ \actualoperator
+ \ifblank{#3}{}{\MakeCapital{#3} }%
+ #1%
+ \ifblank{#4}{}{ #4}%
+ \ifblank{#2}{}{, #2}}
+ {\@firstofone #1% remove spurious braces
+ \ifblank{#4}{}{ #4}% ajouté
+ \ifblank{#2#3}{}{,}% ajouté
+ \ifblank{#2}{}{ #2}% ajouté
+ \ifblank{#3}{}{ #3} % ajouté
+ \actualoperator % ajouté
+ \textsc{#1}%
+ \ifblank{#4}{}{ #4}%
+ \ifblank{#2#3}{}{,}%
+ \ifblank{#2}{}{ #2}%
+ \ifblank{#3}{}{ #3}}}
% schéma de tri destiné à la jurisprudence: institution, date de décision
\DeclareSortingScheme{iymd}{
@@ -354,6 +348,8 @@
\printfield{addendum}%
\newunit\newblock
\usebibmacro{pageref}%
+ \setunit{\addsemicolon\addspace}\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
% cas de jurisprudence anglaise
@@ -445,8 +441,8 @@
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{journal+issuetitle}%
- \newunit\newblock
- \usebibmacro{chapter+pages}%
+ \setunit{\bibpagespunct}%
+ \printfield{pages}%
\newunit\newblock
\usebibmacro{byeditor+others}%
\newunit\newblock
@@ -483,7 +479,8 @@
\newunit}
% macro utilisée dans article, legislation, commentary.
-% journal et date toujours séparés par un espace.
+% - journal et date toujours séparés par un espace.
+% - ajout de "part" et "chapter", pour des journaux comprenant des partie thématiques (Dalloz, JCP, etc)
\renewbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
\setunit{\addspace}%
@@ -493,6 +490,10 @@
\newunit
\printfield{volume}%
\newunit
+ \printfield{part}%
+ \newunit
+ \printfield{chapter}%
+ \newunit
\iffieldundef{series}
{}
{\printfield{series}%
diff --git a/Master/texmf-dist/tex/latex/droit-fr/droit-fr.cbx b/Master/texmf-dist/tex/latex/droit-fr/droit-fr.cbx
index beee265cd70..897d145a381 100644
--- a/Master/texmf-dist/tex/latex/droit-fr/droit-fr.cbx
+++ b/Master/texmf-dist/tex/latex/droit-fr/droit-fr.cbx
@@ -1,11 +1,23 @@
-\ProvidesFile{droit-fr.cbx}[2013/05/04 v0.2 style droit francais]
+\ProvidesFile{droit-fr.cbx}[2014/01/30 v0.4 style droit francais]
\RequireCitationStyle{verbose-ibid}
\renewcommand*{\mkibid}{\emph} % mots latins en italique
+% indexation des auteurs seulement
+\renewbibmacro*{citeindex}{%
+ \ifciteindex
+ {\indexnames{labelname}}
+ {}}
+
% pas de version raccourcie des note de bas de page passée la 1ère référence.
-\renewbibmacro*{cite:short}{\usebibmacro{cite:full}}
+\renewbibmacro*{cite:short}{%
+ \usebibmacro{cite:full:citepages}%
+ \printtext{%
+ \usedriver
+ {\DeclareNameAlias{sortname}{default}}
+ {\thefield{entrytype}}}%
+ \usebibmacro{shorthandintro}}
% commande de citation générique, dérivée de \smartcite.
\DeclareCiteCommand{\cite}[\iffootnote\bibfootnotewrapper\mkbibfootnote]
diff --git a/Master/texmf-dist/tex/latex/droit-fr/droit-fr.cls b/Master/texmf-dist/tex/latex/droit-fr/droit-fr.cls
index cc5ad7b2ba4..15dd03051f2 100644
--- a/Master/texmf-dist/tex/latex/droit-fr/droit-fr.cls
+++ b/Master/texmf-dist/tex/latex/droit-fr/droit-fr.cls
@@ -1,38 +1,35 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{droit-fr}[2013/05/04 v0.2 classe pour droit francais]
+\ProvidesClass{droit-fr}[2014/01/30 v0.4 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{kvoptions} % support des options de type clé=valeur
-\RequirePackage{babel} % support des langues
-\RequirePackage[babel]{csquotes} % support des guillemets babel
-\RequirePackage{hyperref} % hyperliens PDF
-\RequirePackage{bookmark} % signets PDF
-
%%% OPTIONS %%%
+\RequirePackage{kvoptions} % support des options de type clé=valeur
\SetupKeyvalOptions{family=drfr,prefix=drfr@}
-\DeclareBoolOption{footnotereset}
+\DeclareBoolOption[true]{footnotereset}
+\DeclareBoolOption[true]{versetitle}
\ProcessKeyvalOptions{drfr}
\ifdrfr@footnotereset
% reset des notes de bas de page à chaque nouvelle page
-\RequirePackage[perpage]{footmisc}
+\PassOptionsToPackage{perpage}{footmisc}
\else
% numérotation continue des notes de bas de pages du début à la fin
\counterwithout{footnote}{chapter}
\fi
+%%% PACKAGES REQUIS %%%
+\RequirePackage[utf8]{inputenc} % pour bonne interprétation des caractère spéciaux dans la classe
+\RequirePackage{ifdraft} % comportements spécifiques quand l'option de classe draft est présente
+\RequirePackage{xifthen} % code conditionnel
+\RequirePackage{xstring} % code conditionnel
+\RequirePackage{footmisc} % gestion des notes de bas de page
+\RequirePackage{engrec} % compteur à symbole grecs
+\RequirePackage{filecontents} % génération des fichers de style makeindex
+\usepackage{babel} % support des langues
+\usepackage[babel]{csquotes} % support des guillemets babel
+
%%% PAGE DE TITRE %%%
% université
@@ -84,10 +81,10 @@
\thispagestyle{empty}
\begin{center}
-{\LARGE Université \theuniversity \\[1\onelineskip]}
-{\large École doctorale de \theschool \\[2\onelineskip]}
+{\LARGE Universit\'e \theuniversity \\[1\onelineskip]}
+{\large \'Ecole doctorale de \theschool \\[2\onelineskip]}
-{Thèse de doctorat en \thespeciality \\
+{Th\`ese de doctorat en \thespeciality \\
soutenue le \theapprovaldate \\[2\onelineskip]}
{\LARGE\bfseries \thetitle \\[2\onelineskip]}
@@ -161,11 +158,11 @@ Membres du jury: & \themembera \\
%%% SECTIONS %%%
-% parties ("Première partie")
+% [-2] 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
+ Deuxième\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}
@@ -174,7 +171,7 @@ Membres du jury: & \themembera \\
\renewcommand{\printbooknum}{} % numéro
\newcommand{\partie}{\book}
-% titres (I)
+% [-1] titres (I)
\AtBeginDocument{%
\renewcommand*{\partname}{Titre}
@@ -182,77 +179,81 @@ Membres du jury: & \themembera \\
\counterwithin*{part}{book}% RAZ du compteur \part dans un nouveau book
\newcommand{\titre}{\part}
-% chapitres (1)
+% [0] chapitres (1)
\counterwithin*{chapter}{part}% RAZ du compteur \chapter dans une nouvelle part
\newcommand{\chapitre}{\chapter}
-% sections (I)
+% [1] sections (I)
\renewcommand*{\thesection}{Section \Roman{section}}
%\setbeforesecskip{}
%\setsecindent{}
\setaftersecskip{2em}
-\setsecheadstyle{\LARGE\bfseries}
-\newcommand{\sectio}{\section}
+\setsecheadstyle{\LARGE\bfseries\raggedright}
+\setsechook{\needspace{4\baselineskip}}
-% paragraphes (§1)
+% [2] paragraphes (§1)
-\renewcommand*{\thesubsection}{\S\ \arabic{subsection}.}
+\renewcommand*{\thesubsection}{\S~\arabic{subsection}.}
%\setbeforesubsecskip{}
%\setsubsecindent{}
\setaftersubsecskip{1.5em}
-\setsubsecheadstyle{\Large\bfseries}
+\setsubsecheadstyle{\Large\bfseries\raggedright}
+\setsubsechook{\needspace{4\baselineskip}}
\newcommand{\paragraphe}{\subsection}
-% sous-paragraphes (A.)
+% [3] sous-paragraphes (A.)
\renewcommand*{\thesubsubsection}{\Alph{subsubsection}.}
%\setbeforesubsubsecskip{}
%\setsubsubsecindent{}
%\setaftersubsubsecskip{}
-\setsubsubsecheadstyle{\large\bfseries}
+\setsubsubsecheadstyle{\large\bfseries\raggedright}
+\setsubsubsechook{\needspace{4\baselineskip}}
\newcommand{\souspara}{\subsubsection}
-% alinéas (1.)
+% [4] alinéas (1.)
\renewcommand*{\theparagraph}{\arabic{paragraph}.}
%\setbeforeparaskip{}
%\setparaindent{}
%\setafterparaskip{}
-%\setparaheadstyle{}
+\setparaheadstyle{\bfseries\raggedright}
+\setparahook{\needspace{4\baselineskip}}
\newcommand{\alinea}{\paragraph}
-% sous-alinéas (a.)
+% [5] sous-alinéas (a.)
\renewcommand*{\thesubparagraph}{\alph{subparagraph}.}
%\setbeforesubparaskip{}
-%\setsubparaindent{}
-%\setaftersubparaskip{}
-%\setsubparaheadstyle{}
+\setsubparaindent{0pt}
+%\setaftersubparaskip{} %
+\setsubparaheadstyle{\bfseries\raggedright}
+\setsubparahook{\needspace{4\baselineskip}}
\newcommand{\sousalinea}{\subparagraph}
-% points (i.)
+% [6] points (i.)
\newcommand{\subsubparagraph}{\@startsection{subsubparagraph}
{6}{\parindent}{1\baselineskip plus 0.25\baselineskip}
- {.5em}{\normalsize\bfseries}}
+ {.5em}{\normalsize\bfseries\raggedright}}
\newlistentry[subparagraph]{subsubparagraph}{toc}{5}
\newcommand*{\subsubparagraphmark}[1]{} % gobble heading mark
\renewcommand{\thesubsubparagraph}{\roman{subsubparagraph}.}
\newcommand{\point}{\subsubparagraph}
-% souspoints (alpha.)
+% [7] souspoints (alpha.)
\newcommand{\subsubsubparagraph}{\@startsection{subsubsubparagraph}
{7}{\parindent}{1\baselineskip plus 0.25\baselineskip}
- {.5em}{\normalsize\bfseries}}
+ {.5em}{\normalsize\bfseries\raggedright}}
\newlistentry[subsubparagraph]{subsubsubparagraph}{toc}{6}
\newcommand*{\subsubsubparagraphmark}[1]{} % gobble heading mark
\renewcommand{\thesubsubsubparagraph}{\engrec{subsubsubparagraph}.}
\newcommand{\souspoint}{\subsubsubparagraph}
-% versets (paragraphes numérotés)
+% [8] versets (paragraphes numérotés)
\newcommand{\versetsec}[1]{\@startsection{versetsec}
{8}{\parindent}{0.5\baselineskip}
@@ -261,15 +262,48 @@ Membres du jury: & \themembera \\
\newcommand*{\versetsecmark}[1]{} % gobble heading mark
\renewcommand{\theversetsec}{\arabic{versetsec}.}
-\newcommand{\versetsecfilled}{\versetsec{-0.5em}}
+\newcommand{\versetsecfilled}{\versetsec{-1em}}
\newcommand{\versetsecblank}{\versetsec{-0em}}
% référencement des versets dans l'index
\newcounter{indexv}
-\newcommand{\verset}[1]{%
+
+% style des versets: caractères séparateur avec le texte
+\newcommand{\versetsep}{}
+\newcommand{\versetsepifempty}{}
+\newcommand{\versetsepspace}{1em}
+\newcommand{\versetsepstyle}{\normalfont}
+
+% ajout de point final si nécessaire.
+% aucun point n'est ajouté si le verset est déjà fini par "!", "?", "." ou "/ldots".
+\newcommand{\versetdot}[1]{%
+ \IfEndWith{#1}{.}{}{%
+ \IfEndWith{#1}{?}{}{%
+ \IfEndWith{#1}{!}{}{%
+ \IfEndWith{#1}{\ldots}{}{.}%
+ }%
+ }%
+ }%
+}
+
+\newcommand{\versetcontent}[1]{%
\ifthenelse{\equal{#1}{}}%
{\versetsecblank{#1}}%
- {\versetsecfilled{#1}}%
+ {\versetsecfilled{#1\protect\versetdot{#1}}}%
+}
+
+\newcommand{\verset}[1]{%
+ \ifdrfr@versetitle%
+ \ifthenelse{\equal{#1}{}}%
+ {\ifthenelse{\equal{\versetsepifempty}{}}%
+ {\versetcontent{#1}}%
+ {\versetcontent{{\versetsepstyle\versetsepifempty}}}}%
+ {\ifthenelse{\equal{\versetsep}{}}%
+ {\versetcontent{#1}}%
+ {\versetcontent{#1\hspace{\versetsepspace}{\versetsepstyle\versetsep}}}}%
+ \else%
+ \versetcontent{{\versetsepstyle\versetsepifempty}}%
+ \fi%
\addtocounter{indexv}{1}%
}
@@ -278,6 +312,8 @@ Membres du jury: & \themembera \\
\maxsecnumdepth{all}
\setcounter{secnumdepth}{7} % pour points (6) et sous-points (7)
+% option pour éviter les pbs d'hyperliens ambigus (de \part et \chapter)
+\PassOptionsToPackage{hypertexnames=false}{hyperref}
%%% REFERENCES CROISEES
@@ -295,13 +331,6 @@ Membres du jury: & \themembera \\
\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}}
@@ -309,30 +338,25 @@ Membres du jury: & \themembera \\
\ifdraft{\showindexmarks}{}
-\newcommand{\indexv}[1]{\specialindex{\jobname}{indexv}{#1}}
-\newcommand{\printindexv}{\printindex[\jobname]}
+% index de base par versets
+\newcommand{\indexvfilename}{\jobname}
+\newcommand{\makeindexv}{\makeindex[\indexvfilename]}
+\newcommand{\indexv}[1]{\specialindex{\indexvfilename}{indexv}{#1}}
+\newcommand{\printindexv}{\printindex[\indexvfilename]}
+
+% index d'auteur par versets
+\newcommand{\indexafilename}{auteurs}
+\newcommand{\makeindexa}{\makeindex[\indexafilename]}
+\newcommand{\indexa}[1]{\specialindex{\indexafilename}{indexv}{#1}}
+\newcommand{\printindexa}{\printindex[\indexafilename]}
+% entête de l'index
\newcommand{\idxmark}[1]{#1\markboth{#1}{#1}}
+% raccourcis de style pour entrées indexées
\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 %%%
@@ -476,9 +500,9 @@ 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 "}"
+heading_prefix "{\\bfseries\\hfil "
+heading_suffix "\\hfil}\\nopagebreak\n"
+headings_flag 1
\end{filecontents}
% génération du fichier de style .gst
@@ -489,9 +513,9 @@ postamble "\n\\end{theglossary}\n"
item_0 "\n\\glossitem"
delim_0 "{\\memglonum{"
encap_suffix "}}}"
+heading_prefix "{\\bfseries\\hfil "
+heading_suffix "\\hfil}\\nopagebreak\n"
headings_flag 1
-heading_prefix "\\doglobookmark{"
-heading_suffix "}"
% Input style parameters
keyword "\\glossaryentry"
\end{filecontents}