diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-09 22:39:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-09 22:39:28 +0000 |
commit | 07cc5c2480421e2ca1ca9fd8e58897a4c42dc0e7 (patch) | |
tree | 2d987fc31c6c296d04ae22e1985423cd860035ed | |
parent | a62d427cc23b32f39be7c5c901c3cb0fb985edc6 (diff) |
biblatex-claves (9apr17)
git-svn-id: svn://tug.org/texlive/trunk@43723 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.pdf | bin | 85397 -> 86947 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.tex | 25 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-claves/claves.bbx | 15 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-claves/claves.dbx | 5 |
4 files changed, 37 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.pdf b/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.pdf Binary files differindex b54b5a8ce1b..c308324f957 100644 --- a/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.pdf +++ b/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.tex b/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.tex index 7b7debc1b91..63e2fda4af5 100644 --- a/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.tex +++ b/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.tex @@ -24,8 +24,8 @@ subtitle={New fields}, email={maieul <at> maieul <dot> net}, author={Maïeul Rouquette}, - revision={1.1.0}, - date={2016/09/25}, + revision={1.2.0}, + date={2017/04/09}, url={https://git.framasoft.org/maieul/biblatex-claves}} \usepackage[citestyle=verbose,bibstyle=claves]{biblatex} @@ -106,7 +106,11 @@ You can redefine: \begin{itemize} \item The \cs{multiclavesseparator} macro, which defines which character will be typeset between the different \claves\ identifiers. By default, a semicolon. \item The \cs{clavisseparator} macro, which defines which character will be typeset between the \clavis abbreviated form and the \clavis identifier. By default, just a space. - \item The \verb+claves+ fieldformat, which define the way all the \claves and identifier will be typeset. + \item The \verb+claves+ fieldformat, which defines the way all the \claves and identifier will be typeset. By default, in brackets. + \item The \cs{clavisformat} macro, which defines the way individual clavis abbreviation will by typse. For example, if you want italic/emphaze, use: + \begin{minted}{latex} +\renewcommand{\clavisformat}[1]{\emph{#1}} + \end{minted} By default, between parenthesis. \end{itemize} Note that you must use the \biblatex\ punctuation macro. @@ -164,6 +168,16 @@ Note the following points: \end{minted} \end{itemize} +\section{Knowing if an entry is used as \emph{clavis}} + +You may want to know if an entry is a \emph{clavis}, that is its entrykey was added to \cs{AddBiblatexClavis}. To test it, you must use + +\begin{minted}{latex} +\iffieldundef{claves_definition}% + {<If not a clavis>}% + {<If a clavis>}% +\end{minted} + \section{Notes about inheritance} The \bibfield{claves} field are not inherited from the main entry when a subentry is an \bibtype{inbook} entry. @@ -180,6 +194,11 @@ All issues can be submitted, in French or English, in the Framasoft issues page. \begin{changelog} +\begin{release}{1.2.0}{2017-04-09} +\item Mark the entries used as \emph{claves} with \bibfield{claves\_definition} field. +\item Add \cs{clavisformat} macro, for more customization. +\end{release} + \begin{release}{1.1.0}{2016-09-25} \item Prevent inheritance of the \bibfield{claves} field for \bibtype{inbook} entries. \end{release} diff --git a/Master/texmf-dist/tex/latex/biblatex-claves/claves.bbx b/Master/texmf-dist/tex/latex/biblatex-claves/claves.bbx index e2c62d8eeb1..ccf5fcd16eb 100644 --- a/Master/texmf-dist/tex/latex/biblatex-claves/claves.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-claves/claves.bbx @@ -14,7 +14,7 @@ % This work consists of the files claves.dbx, claves.bbx % 0. Preamble -\ProvidesFile{claves.dbx}[2016/09/25 v1.1.0 biblatex bibliography style (MR)] +\ProvidesFile{claves.dbx}[2017/04/09 v1.2.0 biblatex bibliography style (MR)] \ifdef{\biblatexmultipledm@bibstyle} {\RequireBibliographyStyle{\biblatexmultipledm@bibstyle}} @@ -30,9 +30,13 @@ \maps[datatype=bibtex]{% \map[overwrite]{% \step[fieldsource=#1,final]% - \step[fieldset=claves,fieldvalue={\string\multiclavesseparator\space#1\string\clavisseparator{}},append]% + \step[fieldset=claves,fieldvalue={\string\multiclavesseparator\space\string\clavisformat{#1}\string\clavisseparator{}},append]% \step[fieldset=claves,origfieldval, append] }% + \map[overwrite]{% + \step[fieldsource=entrykey,match=\regexp{^#1$},final] + \step[fieldset=claves_definition, origfieldval] + }% }% }% } @@ -41,6 +45,8 @@ \newcommand{\multiclavesseparator}{\addsemicolon\ifpunct{\addspace}{}} \newcommand{\clavisseparator}{\addspace} \DeclareFieldFormat{claves}{\mkbibparens{#1}} +\DeclareFieldFormat{claves_definition}{\clavisformat{#1}} +\newcommand{\clavisformat}[1]{#1} % 3. Patching macro standard to add claves @@ -82,7 +88,7 @@ } \defbibenvironment{claves}%Inspired from shorthand environment {\list - {\printfield[labelwidth]{entrykey}} + {\printtext[claves_definition]{\printfield[labelwidth]{entrykey}}} {\setlength{\labelwidth}{\shorthandwidth}% \setlength{\leftmargin}{\labelwidth}% \setlength{\labelsep}{\biblabelsep}% @@ -105,6 +111,9 @@ %5. Inheritance + \DeclareDataInheritance{*}{*}{% + \noinherit{claves_definition}% + }% \DeclareDataInheritance{*}{inbook}{% \noinherit{claves}% diff --git a/Master/texmf-dist/tex/latex/biblatex-claves/claves.dbx b/Master/texmf-dist/tex/latex/biblatex-claves/claves.dbx index 362b45d2504..d07384f0a4c 100644 --- a/Master/texmf-dist/tex/latex/biblatex-claves/claves.dbx +++ b/Master/texmf-dist/tex/latex/biblatex-claves/claves.dbx @@ -13,9 +13,10 @@ % The Current Maintainer of this work is Maïeul Rouquette % This work consists of the files claves.dbx, claves.bbx \ProvidesFile{claves.dbx} -[2016/09/25 v1.1.0 biblatex bibliography style (MR)] +[2017/04/09 v1.2.0 biblatex bibliography style (MR)] \DeclareDatamodelFields[type=field,datatype=literal]{% - claves% + claves,% + claves_definition% } \endinput
\ No newline at end of file |