texlive[73514] Master/texmf-dist: yb-book (19jan25)
commits+karl at tug.org
commits+karl at tug.org
Sun Jan 19 21:55:02 CET 2025
Revision: 73514
https://tug.org/svn/texlive?view=revision&revision=73514
Author: karl
Date: 2025-01-19 21:55:02 +0100 (Sun, 19 Jan 2025)
Log Message:
-----------
yb-book (19jan25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/yb-book/yb-book.pdf
trunk/Master/texmf-dist/source/latex/yb-book/yb-book.dtx
trunk/Master/texmf-dist/tex/latex/yb-book/yb-book.cls
Modified: trunk/Master/texmf-dist/doc/latex/yb-book/yb-book.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/yb-book/yb-book.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/yb-book/yb-book.dtx 2025-01-19 20:54:51 UTC (rev 73513)
+++ trunk/Master/texmf-dist/source/latex/yb-book/yb-book.dtx 2025-01-19 20:55:02 UTC (rev 73514)
@@ -50,7 +50,7 @@
%<class>\NeedsTeXFormat{LaTeX2e}
%<class>\ProvidesClass{yb-book}
%<*class>
-[2025/01/13 0.6.1 YB Branded Book Style]
+[2025/01/19 0.6.2 YB Branded Book Style]
%</class>
%<*driver>
\documentclass{ltxdoc}
@@ -714,20 +714,21 @@
% \begin{macro}{\ybPrintBibliography}
% Then, we define |\ybPrintBibliography|, to print a list of references:
+% \changes{v0.6.2}{2025/01/19}{The \texttt{\char`\\ybPrintBibliography} command has an optional argument, which is the title of the chapter.}
% \begin{macrocode}
\makeatletter
-\newcommand\ybPrintBibliography{%
+\newcommand\ybPrintBibliography[1][Bibliography]{%
\AtNextBibliography{\small}%
\raggedright%
\ifdefined\yb at manuscript%
\setlength\bibitemsep{0pt}%
\newpage%
- \begin{multicols}{2}
- {\setstretch{1.0}\printbibliography}
- \end{multicols}
- \else
- \printbibliography
- \fi
+ \begin{multicols}{2}%
+ {\setstretch{1.0}\printbibliography}%
+ \end{multicols}%
+ \else%
+ \printbibliography[heading=bibintoc,title={#1}]%
+ \fi%
}
\makeatother
% \end{macrocode}
Modified: trunk/Master/texmf-dist/tex/latex/yb-book/yb-book.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/yb-book/yb-book.cls 2025-01-19 20:54:51 UTC (rev 73513)
+++ trunk/Master/texmf-dist/tex/latex/yb-book/yb-book.cls 2025-01-19 20:55:02 UTC (rev 73514)
@@ -32,7 +32,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{yb-book}
-[2025/01/13 0.6.1 YB Branded Book Style]
+[2025/01/19 0.6.2 YB Branded Book Style]
@@ -386,18 +386,18 @@
\makeatother
\makeatletter
-\newcommand\ybPrintBibliography{%
+\newcommand\ybPrintBibliography[1][Bibliography]{%
\AtNextBibliography{\small}%
\raggedright%
\ifdefined\yb at manuscript%
\setlength\bibitemsep{0pt}%
\newpage%
- \begin{multicols}{2}
- {\setstretch{1.0}\printbibliography}
- \end{multicols}
- \else
- \printbibliography
- \fi
+ \begin{multicols}{2}%
+ {\setstretch{1.0}\printbibliography}%
+ \end{multicols}%
+ \else%
+ \printbibliography[heading=bibintoc,title={#1}]%
+ \fi%
}
\makeatother
More information about the tex-live-commits
mailing list.