texlive[43723] Master/texmf-dist: biblatex-claves (9apr17)

commits+karl at tug.org commits+karl at tug.org
Mon Apr 10 00:39:29 CEST 2017


Revision: 43723
          http://tug.org/svn/texlive?view=revision&revision=43723
Author:   karl
Date:     2017-04-10 00:39:28 +0200 (Mon, 10 Apr 2017)
Log Message:
-----------
biblatex-claves (9apr17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.tex
    trunk/Master/texmf-dist/tex/latex/biblatex-claves/claves.bbx
    trunk/Master/texmf-dist/tex/latex/biblatex-claves/claves.dbx

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.tex	2017-04-09 22:39:12 UTC (rev 43722)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-claves/documentation/biblatex-claves.tex	2017-04-09 22:39:28 UTC (rev 43723)
@@ -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 @@
 \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 @@
     \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 @@
 
 \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}

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-claves/claves.bbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-claves/claves.bbx	2017-04-09 22:39:12 UTC (rev 43722)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-claves/claves.bbx	2017-04-09 22:39:28 UTC (rev 43723)
@@ -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 at bibstyle}
 	{\RequireBibliographyStyle{\biblatexmultipledm at 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}%

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-claves/claves.dbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-claves/claves.dbx	2017-04-09 22:39:12 UTC (rev 43722)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-claves/claves.dbx	2017-04-09 22:39:28 UTC (rev 43723)
@@ -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



More information about the tex-live-commits mailing list