texlive[42071] Master/texmf-dist: biblatex-opcit-booktitle

commits+karl at tug.org commits+karl at tug.org
Thu Sep 15 00:25:04 CEST 2016


Revision: 42071
          http://tug.org/svn/texlive?view=revision&revision=42071
Author:   karl
Date:     2016-09-15 00:25:04 +0200 (Thu, 15 Sep 2016)
Log Message:
-----------
biblatex-opcit-booktitle

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle-example.bib
    trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle-example.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle-example.tex
    trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle.tex
    trunk/Master/texmf-dist/tex/latex/biblatex-opcit-booktitle/biblatex-opcit-booktitle.sty

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle-example.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle-example.bib	2016-09-14 22:24:47 UTC (rev 42070)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle-example.bib	2016-09-14 22:25:04 UTC (rev 42071)
@@ -1,5 +1,26 @@
 
 
+ at bookinarticle{BHG1850z_o,
+	Crossref = {Halkin1961},
+	Pages = {244-252},
+	Title = {Τοῦ ἁγίου ἀποστόλου Τίτου, ἐπισκόπου γενομένου Κρήτης πόλεως Γορτύνης, μαθητοῦ τοῦ ἁγίου ἀποστόλου Παύλου},
+	}
+
+ at bookinarticle{BHG1850z_r,
+	Crossref = {Halkin1961},
+	Pages = {252-256},
+	Title = {Τοῦ ἁγίου ἀποστόλου Τίτου, ἐπισκόπου Γορτύνης τῆς Κρητῶν νήσου},
+	}
+
+ at article{Halkin1961,
+	Author = {François Halkin},
+	Date = {1961},
+	Journal = {Analecta Bollandiana},
+	Number = {79},
+	Pages = {241-256},
+	Title = {La légende crétoise de Saint Tite}
+}
+
 @incollection{Klausner1997,
 	Author = {David N. Klausner},
 	Crossref = {Izydorczyk1997},

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

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle-example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle-example.tex	2016-09-14 22:24:47 UTC (rev 42070)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle-example.tex	2016-09-14 22:25:04 UTC (rev 42071)
@@ -1,8 +1,9 @@
 \documentclass{article}
-\usepackage{fontspec}
+\usepackage{libertine}
 \usepackage{polyglossia}
 \setmainlanguage{french}
-\usepackage[bibstyle=verbose,citestyle=verbose-trad2,citepages=omit]{biblatex}
+\usepackage[tools={bookinother,morenames}]{biblatex-multiple-dm}
+\usepackage[bibstyle=multiple-dm,citestyle=verbose-trad2,citepages=omit]{biblatex}
 \usepackage{biblatex-opcit-booktitle}
 \bibliography{biblatex-opcit-booktitle-example.bib}
 \usepackage{hyperref}
@@ -12,8 +13,8 @@
 
 \cite{Klausner1997}
 
+\cite{BHG1850z_o}
 
-
 \cite{Pleiade_Barnabe}
 
 \cite{Klausner1997}
@@ -25,5 +26,8 @@
 \cite{Pleiade_Tite}
 
 \cite[22]{Pseudo-Hippolyte}
+
+\cite{BHG1850z_r}
+
 \end{document}
 

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

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle.tex	2016-09-14 22:24:47 UTC (rev 42070)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-opcit-booktitle/documentation/biblatex-opcit-booktitle.tex	2016-09-14 22:25:04 UTC (rev 42071)
@@ -22,8 +22,8 @@
   subtitle={Abbreviated references},
   email={maieul <at> maieul <dot> net},
   author={Maïeul Rouquette},
-  revision={1.5.0a},
-  date={2016/06/12},
+  revision={1.6.0},
+  date={2016/09/08},
   url={https://git.framasoft.org/maieul/biblatex-opcit-booktitle}}
 
 % biblatex
@@ -166,12 +166,32 @@
 
 If you have created your own \verb+cite+ bibmacro, this bibmacro must call, directly or indirectly the `cite:test:ifrelated` bibmacro (or your adaptation of this bibmacro).
 
+
 \subsection{Customization}
 
 You can change the \verb+inbook:rel:verbose-trad-xxx+ bibliographic driver to customize the way the main title is printed, \verb+xxx+ meaning 1, 2, or 3, depending of you specific citation style.
 
+\subsection{Use with new entrytypes}
+
+If you create new entrytypes, as the \emph{biblatex-bookintother} package does, you can let know to \emph{biblatex-opcit-booktitle} that these entry types are concerned by using short form of the main entry.
+ 
+
+To do it, just add in your \verb+.bbx+ or \verb+.dbx+ file:
+\begin{minted}{latex}
+\listadd\opcit at booktitle@entrytypes{<newentrytype>}
+\end{minted}
+
+\verb+<newentrytype>+ must be the new sub-entrytype concerned. For example, the \emph{biblatex-bookintother} package contains:
+
+\begin{minted}{latex}
+\listadd\opcit at booktitle@entrytypes{inarticle}
+\end{minted}
+
+Depending of the fields of the new entry, you could have to modify the \verb+inbook:rel:verbose-trad-xxx+. But in this case, please contact us, in order to know if we could provide a generic mechanism directly in this package.
 \section{Credits}
 
+
+
 This package was created for Maïeul Rouquette's phd dissertation\footnote{\url{http://apocryphes.hypothese.org}.} in 2015. It is freely inspired by Paul Stanley code.\footnote{\url{http://tex.stackexchange.com/a/172777/7712}.} It is licensed on the \emph{\LaTeX\ Project Public License}.\footnote{\url{http://latex-project.org/lppl/lppl-1-3c.html}.}.
 
 
@@ -183,6 +203,11 @@
 
 \begin{changelog}
 
+
+\begin{release}{1.6.0}{2016-09-08}
+  \item Add hooks for new entrytype.
+\end{release}
+
 \begin{release}{1.5.0a}{2016-06-12}
   \item Precisions in the handbook.
 \end{release}

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-opcit-booktitle/biblatex-opcit-booktitle.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-opcit-booktitle/biblatex-opcit-booktitle.sty	2016-09-14 22:24:47 UTC (rev 42070)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-opcit-booktitle/biblatex-opcit-booktitle.sty	2016-09-14 22:25:04 UTC (rev 42071)
@@ -15,9 +15,16 @@
 % 
 % The Current Maintainer of this work is Maïeul Rouquette
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{biblatex-opcit-booktitle}[2016/06/12 v1.5.0a Manage op. cit. when using subentry]
+\ProvidesPackage{biblatex-opcit-booktitle}[2016/09/08 v1.6.0 Manage op. cit. when using subentry]
 \RequirePackage{xpatch}
 
+% Declaration of the entry concerned. Some package could have already add their own entry
+\listadd\opcit at booktitle@entrytypes{inbook}
+\listadd\opcit at booktitle@entrytypes{incollection}
+\listadd\opcit at booktitle@entrytypes{inproceedings}
+\listadd\opcit at booktitle@entrytypes{bookinbook}
+
+
 \DeclareFieldFormat{bibhypertarget:crossref}{%
   \bibhypertarget{\iffootnote{f}{t}:\cbx at resetcount:\thefield{crossref}}{#1}}
 
@@ -67,10 +74,7 @@
 \newbibmacro*{cite:test:ifrelated}%
       {\ifboolexpr {%
          test {\iffieldundef{crossref}}%
-         or not (test {\ifentrytype{inbook}}%
-               or test {\ifentrytype{incollection}}%
-               or test {\ifentrytype{inproceedings}}%
-               or test {\ifentrytype{bookinbook}})}%
+         or not (test {\xifinlist{\thefield{entrytype}}{\opcit at booktitle@entrytypes}})}%
        {\usebibmacro{cite:full}%
         \usebibmacro{cite:save}}%
        {\ifrelatedunseen%
@@ -83,10 +87,7 @@
 \newbibmacro*{cite:test:ifrelated:verbose-trad3}%
       {\ifboolexpr {%
          test {\iffieldundef{crossref}}%
-         or not (test {\ifentrytype{inbook}}%
-               or test {\ifentrytype{incollection}}%
-               or test {\ifentrytype{inproceedings}}%
-               or test {\ifentrytype{bookinbook}})}%
+         or not (test {\xifinlist{\thefield{entrytype}}{\opcit at booktitle@entrytypes}})}%
        {\usebibmacro{cite:full}%
         }%
        {\ifrelatedunseen%
@@ -132,7 +133,8 @@
   \newunit\newblock
   \usebibmacro{in:}%
   \printtext[bibhyperlink:crossref]{%
-  \usebibmacro{maintitle+booktitle}%
+    \usebibmacro{inbook:rel:bookauthor}%
+    \usebibmacro{maintitle+booktitle}%
     \newunit\newblock
     \usebibmacro{byeditor+others}%
     \newunit%
@@ -172,7 +174,8 @@
   \newunit\newblock
   \usebibmacro{in:}%
   \printtext[bibhyperlink:crossref]{%
-  \usebibmacro{maintitle+booktitle}%
+    \usebibmacro{inbook:rel:bookauthor}%
+    \usebibmacro{maintitle+booktitle}%
     \newunit\newblock
     \usebibmacro{byeditor+others}%
     \newunit%
@@ -209,7 +212,8 @@
   \newunit\newblock
   \usebibmacro{in:}%
   \printtext[bibhyperlink:crossref]{%
-  \usebibmacro{maintitle+booktitle}%
+    \usebibmacro{inbook:rel:bookauthor}%
+    \usebibmacro{maintitle+booktitle}%
     \newunit\newblock
     \usebibmacro{byeditor+others}%
     \newunit%
@@ -230,4 +234,12 @@
     {}%
   \usebibmacro{finentry}}
 
+\newbibmacro{inbook:rel:bookauthor}{%
+    \ifnameundef{bookauthor}%
+      {}
+      {%
+      \usebibmacro{bybookauthor}%
+      \setunit{\labelnamepunct}\newblock%
+      }%
+}
 \endinput



More information about the tex-live-commits mailing list