diff options
author | Karl Berry <karl@freefriends.org> | 2014-10-09 21:35:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-10-09 21:35:50 +0000 |
commit | f5ec258f88df2f3950b5d8dd03303420a6e947c9 (patch) | |
tree | a97485932ece918e7d730558f2a379a6985571be /Master/texmf-dist/tex | |
parent | 26f30d4b5cfa2813de4065285988c634187b6c7b (diff) |
biblatex-bookinarticle (9oct14)
git-svn-id: svn://tug.org/texlive/trunk@35340 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-bookinarticle/biblatex-bookinarticle.sty | 76 |
1 files changed, 70 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-bookinarticle/biblatex-bookinarticle.sty b/Master/texmf-dist/tex/latex/biblatex-bookinarticle/biblatex-bookinarticle.sty index de3dbe9471e..09a59620b4d 100644 --- a/Master/texmf-dist/tex/latex/biblatex-bookinarticle/biblatex-bookinarticle.sty +++ b/Master/texmf-dist/tex/latex/biblatex-bookinarticle/biblatex-bookinarticle.sty @@ -12,9 +12,9 @@ % % The Current Maintainer of this work is Maïeul Rouquette \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{biblatex-bookinarticle}[2014/06/17 v1.0.0 Book in article with biblatex] +\ProvidesPackage{biblatex-bookinarticle}[2014/10/09 v1.0.0 Book in article and book in incollection with biblatex] -% 1. The driver +% 1. The drivers \DeclareBibliographyDriver{inarticle}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% @@ -48,13 +48,69 @@ \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% \usebibmacro{finentry}} + +\DeclareBibliographyDriver{inincollection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \iffieldundef{author}{}{\setunit{\labelnamepunct}\newblock}% + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \usebibmacro{bybookauthor}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{booktitle}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \usebibmacro{maintitle}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{edition}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock}%% + }% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} % 2. The alias \DeclareBibliographyAlias{bookinarticle}{inarticle} - +\DeclareBibliographyAlias{bookinincollection}{inincollection} % 3. The formats -\DeclareFieldFormat[inarticle]{title}{\mkbibquote{#1\isdot}} +\DeclareFieldFormat[inarticle,inincollection]{title}{\mkbibquote{#1\isdot}} +\DeclareFieldFormat[inincollection,bookinincollection]{booktitle}{\mkbibquote{#1\isdot}} \DeclareFieldFormat[inarticle,bookinarticle]{maintitle}{\mkbibquote{#1\isdot}} @@ -66,7 +122,15 @@ \inherit{subtitle}{mainsubtitle}% } +\DeclareDataInheritance{incollection}{bookinincollection,inincollection}{ + \inherit{author}{bookauthor}% Il faudra modifier quand je saurais comment déclarer des nouveaux champs + \inherit{title}{booktitle}% + \inherit{subtitle}{booksubtitle}% + \inherit{booktitle}{maintitle}% + \inherit{booksubtitle}{mainsubtitle}% +} + %5. Label name -\DeclareLabelname[bookinarticle]{\field{author}} -\endinput
\ No newline at end of file +\DeclareLabelname[bookinincollection,bookinarticle]{\field{author}} +\endinput |