texlive[73376] Master/texmf-dist: yb-book (8jan25)

commits+karl at tug.org commits+karl at tug.org
Wed Jan 8 22:13:28 CET 2025


Revision: 73376
          https://tug.org/svn/texlive?view=revision&revision=73376
Author:   karl
Date:     2025-01-08 22:13:28 +0100 (Wed, 08 Jan 2025)
Log Message:
-----------
yb-book (8jan25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt
    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/DEPENDS.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt	2025-01-08 21:13:18 UTC (rev 73375)
+++ trunk/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt	2025-01-08 21:13:28 UTC (rev 73376)
@@ -7,11 +7,13 @@
 hard collection-fontsrecommended
 hard csquotes
 hard cyrillic
+hard doi
 hard enumitem
 hard fancyhdr
 hard float
 hard footmisc
 hard geometry
+hard href-ul
 hard hypdoc
 hard ifmtarg
 hard imakeidx
@@ -38,7 +40,6 @@
 hard xkeyval
 hard zref
 soft biblatex
-soft href-ul
 soft imakeidx
 soft l3build
 soft pgfopts

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-08 21:13:18 UTC (rev 73375)
+++ trunk/Master/texmf-dist/source/latex/yb-book/yb-book.dtx	2025-01-08 21:13:28 UTC (rev 73376)
@@ -50,7 +50,7 @@
 %<class>\NeedsTeXFormat{LaTeX2e}
 %<class>\ProvidesClass{yb-book}
 %<*class>
-[2025/01/05 0.5.1 YB Branded Book Style]
+[2025/01/08 0.6.0 YB Branded Book Style]
 %</class>
 %<*driver>
 \documentclass{ltxdoc}
@@ -253,10 +253,12 @@
 % First, we parse package options:
 % \changes{v0.3.0}{2023/05/22}{The \texttt{pgfopts} package is now used to parse package options.}
 % \changes{v0.5.0}{2024/01/02}{The \texttt{sparse} package option added, to place every section in a new page.}
+% \changes{v0.6.0}{2025/01/08}{The \texttt{apa} package option added, to enable APA citation style.}
 %    \begin{macrocode}
 \RequirePackage{pgfopts}
 \pgfkeys{
   /yb/.cd,
+  apa/.store in=\yb at apa,
   authordraft/.store in=\yb at authordraft,
   compact/.store in=\yb at compact,
   manuscript/.store in=\yb at manuscript,
@@ -311,6 +313,11 @@
 %    \end{macrocode}
 % \end{macro}
 
+% Then, we load \href{https://ctan.org/pkg/href-ul}{href-ul} to underline links correctly:
+%    \begin{macrocode}
+\RequirePackage{href-ul}
+%    \end{macrocode}
+
 % Then, we load \href{https://ctan.org/pkg/anyfontsize}{anyfontsize} to enable all sizes of fonts:
 %    \begin{macrocode}
 \RequirePackage{anyfontsize}
@@ -407,9 +414,18 @@
 % \begin{macro}{biblatex}
 % Then, we configure |biblatex|, for citation management:
 %    \begin{macrocode}
-\RequirePackage[indexing=cite,style=authoryear,
-  natbib=true,maxnames=1,minnames=1,doi=false,
-  url=false,isbn=false,isbn=false]{biblatex}
+\PassOptionsToPackage{indexing=cite,
+  natbib=true,maxnames=2,minnames=1,doi=true,
+  url=false,isbn=false,isbn=false}{biblatex}
+\makeatletter
+\ifdefined\yb at apa
+  \PassOptionsToPackage{style=authoryear}{biblatex}
+\else
+  \PassOptionsToPackage{style=numeric}{biblatex}
+\fi
+\makeatother
+\RequirePackage{doi}
+\RequirePackage{biblatex}
   \DeclareCiteCommand{\citetitle}
     {\boolfalse{citetracker}%
      \boolfalse{pagetracker}%
@@ -476,7 +492,7 @@
 \else
   \RequirePackage[raggedright]{titlesec}
     \titlespacing{\section}{0in}{6pt}{6pt}[1in]
-  \renewcommand\section{\yb at secstart\newpage\yb at oldsection}
+  \renewcommand\section{\yb at secstart\yb at oldsection}
 \fi
 \ifdefined\yb at compact
   \renewcommand\section{\yb at secstart\vspace{2em}\yb at oldsection}
@@ -499,9 +515,19 @@
   \fancyhf{}
   \fancyhead[L,C,LO,CO]{}
   \fancyhead[R,RO]{
+    \begin{textblock}{16}[0.5,0.5](8,8)%
+      \tikz \node[minimum width=16\TPHorizModule] {%
+        \fontsize{64}{64}\selectfont\bfseries%
+        \rotatebox{45}{
+          \tikz \node
+          [fill=gray!8, font=\ttfamily\color{white}]
+          {it is a draft};%
+        }%
+      };%
+    \end{textblock}%
     \begin{textblock}{4}(11.5,1)%
       \tikz \node [color=gray, rotate=270,
-        font=\ttfamily\scriptsize, text width=5in] at (0,0) {%
+        font=\ttfamily\scriptsize, text width=8in] at (0,0) {%
         Copyright \textcopyright{} \the\year{} by \theauthor{}.
         All rights reserved. No part of the contents of
         this book may be reproduced or transmitted in any
@@ -513,7 +539,7 @@
       };
     \end{textblock}
   }
-  \fancyfoot[C,CO,CE]{\small\ttfamily%
+  \fancyfoot[C,CO,C]{\small\ttfamily%
     page \#\thepage{} of \pageref{LastPage}}
 \fi
 \makeatother

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-08 21:13:18 UTC (rev 73375)
+++ trunk/Master/texmf-dist/tex/latex/yb-book/yb-book.cls	2025-01-08 21:13:28 UTC (rev 73376)
@@ -32,7 +32,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{yb-book}
-[2025/01/05 0.5.1 YB Branded Book Style]
+[2025/01/08 0.6.0 YB Branded Book Style]
 
 
 
@@ -57,6 +57,7 @@
 \RequirePackage{pgfopts}
 \pgfkeys{
   /yb/.cd,
+  apa/.store in=\yb at apa,
   authordraft/.store in=\yb at authordraft,
   compact/.store in=\yb at compact,
   manuscript/.store in=\yb at manuscript,
@@ -97,6 +98,8 @@
 \fi
 \makeatother
 
+\RequirePackage{href-ul}
+
 \RequirePackage{anyfontsize}
 
 \RequirePackage{tikz}
@@ -139,9 +142,18 @@
   \ifdefined\yb at manuscript\setstretch{1.1}\fi
   \makeatother
 
-\RequirePackage[indexing=cite,style=authoryear,
-  natbib=true,maxnames=1,minnames=1,doi=false,
-  url=false,isbn=false,isbn=false]{biblatex}
+\PassOptionsToPackage{indexing=cite,
+  natbib=true,maxnames=2,minnames=1,doi=true,
+  url=false,isbn=false,isbn=false}{biblatex}
+\makeatletter
+\ifdefined\yb at apa
+  \PassOptionsToPackage{style=authoryear}{biblatex}
+\else
+  \PassOptionsToPackage{style=numeric}{biblatex}
+\fi
+\makeatother
+\RequirePackage{doi}
+\RequirePackage{biblatex}
   \DeclareCiteCommand{\citetitle}
     {\boolfalse{citetracker}%
      \boolfalse{pagetracker}%
@@ -187,7 +199,7 @@
 \else
   \RequirePackage[raggedright]{titlesec}
     \titlespacing{\section}{0in}{6pt}{6pt}[1in]
-  \renewcommand\section{\yb at secstart\newpage\yb at oldsection}
+  \renewcommand\section{\yb at secstart\yb at oldsection}
 \fi
 \ifdefined\yb at compact
   \renewcommand\section{\yb at secstart\vspace{2em}\yb at oldsection}
@@ -206,9 +218,19 @@
   \fancyhf{}
   \fancyhead[L,C,LO,CO]{}
   \fancyhead[R,RO]{
+    \begin{textblock}{16}[0.5,0.5](8,8)%
+      \tikz \node[minimum width=16\TPHorizModule] {%
+        \fontsize{64}{64}\selectfont\bfseries%
+        \rotatebox{45}{
+          \tikz \node
+          [fill=gray!8, font=\ttfamily\color{white}]
+          {it is a draft};%
+        }%
+      };%
+    \end{textblock}%
     \begin{textblock}{4}(11.5,1)%
       \tikz \node [color=gray, rotate=270,
-        font=\ttfamily\scriptsize, text width=5in] at (0,0) {%
+        font=\ttfamily\scriptsize, text width=8in] at (0,0) {%
         Copyright \textcopyright{} \the\year{} by \theauthor{}.
         All rights reserved. No part of the contents of
         this book may be reproduced or transmitted in any
@@ -220,7 +242,7 @@
       };
     \end{textblock}
   }
-  \fancyfoot[C,CO,CE]{\small\ttfamily%
+  \fancyfoot[C,CO,C]{\small\ttfamily%
     page \#\thepage{} of \pageref{LastPage}}
 \fi
 \makeatother



More information about the tex-live-commits mailing list.