diff options
author | Karl Berry <karl@freefriends.org> | 2025-01-08 21:13:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2025-01-08 21:13:28 +0000 |
commit | fa03a3ba6d78386e94cb7a30acf1c5333a351cd4 (patch) | |
tree | ce972da5321dbf40ec098393a3192acdea779f85 /Master | |
parent | 7568561525e57b3000096289a7be9f3c1b6db6dd (diff) |
yb-book (8jan25)
git-svn-id: svn://tug.org/texlive/trunk@73376 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt | 3 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/yb-book.pdf | bin | 288050 -> 289702 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/yb-book/yb-book.dtx | 40 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/yb-book/yb-book.cls | 36 |
4 files changed, 64 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt b/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt index 3d880587be3..a7a94e251f6 100644 --- a/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt +++ b/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt @@ -7,11 +7,13 @@ hard collection-fontsextra 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 xifthen hard xkeyval hard zref soft biblatex -soft href-ul soft imakeidx soft l3build soft pgfopts diff --git a/Master/texmf-dist/doc/latex/yb-book/yb-book.pdf b/Master/texmf-dist/doc/latex/yb-book/yb-book.pdf Binary files differindex b953b416211..f27123bd3e8 100644 --- a/Master/texmf-dist/doc/latex/yb-book/yb-book.pdf +++ b/Master/texmf-dist/doc/latex/yb-book/yb-book.pdf diff --git a/Master/texmf-dist/source/latex/yb-book/yb-book.dtx b/Master/texmf-dist/source/latex/yb-book/yb-book.dtx index b8fcea6bdc6..02695f297ac 100644 --- a/Master/texmf-dist/source/latex/yb-book/yb-book.dtx +++ b/Master/texmf-dist/source/latex/yb-book/yb-book.dtx @@ -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 @@ Hello, world! % 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@apa, authordraft/.store in=\yb@authordraft, compact/.store in=\yb@compact, manuscript/.store in=\yb@manuscript, @@ -311,6 +313,11 @@ Hello, world! % \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 @@ Hello, world! % \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@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 @@ Hello, world! \else \RequirePackage[raggedright]{titlesec} \titlespacing{\section}{0in}{6pt}{6pt}[1in] - \renewcommand\section{\yb@secstart\newpage\yb@oldsection} + \renewcommand\section{\yb@secstart\yb@oldsection} \fi \ifdefined\yb@compact \renewcommand\section{\yb@secstart\vspace{2em}\yb@oldsection} @@ -499,9 +515,19 @@ Hello, world! \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 @@ Hello, world! }; \end{textblock} } - \fancyfoot[C,CO,CE]{\small\ttfamily% + \fancyfoot[C,CO,C]{\small\ttfamily% page \#\thepage{} of \pageref{LastPage}} \fi \makeatother diff --git a/Master/texmf-dist/tex/latex/yb-book/yb-book.cls b/Master/texmf-dist/tex/latex/yb-book/yb-book.cls index fd9069b5cf6..273b572317c 100644 --- a/Master/texmf-dist/tex/latex/yb-book/yb-book.cls +++ b/Master/texmf-dist/tex/latex/yb-book/yb-book.cls @@ -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@apa, authordraft/.store in=\yb@authordraft, compact/.store in=\yb@compact, manuscript/.store in=\yb@manuscript, @@ -97,6 +98,8 @@ \fi \makeatother +\RequirePackage{href-ul} + \RequirePackage{anyfontsize} \RequirePackage{tikz} @@ -139,9 +142,18 @@ \ifdefined\yb@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@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@secstart\newpage\yb@oldsection} + \renewcommand\section{\yb@secstart\yb@oldsection} \fi \ifdefined\yb@compact \renewcommand\section{\yb@secstart\vspace{2em}\yb@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 |