texlive[70736] Master/texmf-dist: yb-book (23mar24)
commits+karl at tug.org
commits+karl at tug.org
Sat Mar 23 21:20:22 CET 2024
Revision: 70736
https://tug.org/svn/texlive?view=revision&revision=70736
Author: karl
Date: 2024-03-23 21:20:22 +0100 (Sat, 23 Mar 2024)
Log Message:
-----------
yb-book (23mar24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt
trunk/Master/texmf-dist/doc/latex/yb-book/LICENSE.txt
trunk/Master/texmf-dist/doc/latex/yb-book/README.md
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/source/latex/yb-book/yb-book.ins
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 2024-03-23 20:20:13 UTC (rev 70735)
+++ trunk/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt 2024-03-23 20:20:22 UTC (rev 70736)
@@ -1,34 +1,42 @@
-hard pgf
-hard pgfopts
-hard xkeyval
-hard textpos
-hard geometry
hard anyfontsize
+hard biblatex
+hard bigfoot
+hard changepage
hard chngcntr
+hard csquotes
+hard enumitem
+hard fancyhdr
+hard float
+hard footmisc
+hard geometry
+hard ifmtarg
+hard imakeidx
hard lastpage
+hard libertine
+hard mdframed
+hard microtype
+hard needspace
hard paralist
-hard xcolor
+hard hypdoc
+hard pgf
+hard pgfopts
+hard qrcode
hard setspace
-hard enumitem
-hard float
-hard ulem
-hard qrcode
-hard wrapfig
hard soul
-hard xifthen
-hard csquotes
-hard biblatex
-hard imakeidx
-hard microtype
-hard libertine
-hard footmisc
+hard textpos
hard titlesec
hard titlesec
-hard fancyhdr
+hard ulem
hard wrapfig
-hard mdframed
-hard changepage
-hard ifmtarg
-hard bigfoot
+hard wrapfig
+hard xcolor
+hard xifthen
+hard xkeyval
hard zref
-hard needspace
\ No newline at end of file
+soft biblatex
+soft href-ul
+soft imakeidx
+soft l3build
+soft pgfopts
+soft scheme-basic
+soft xetex
Modified: trunk/Master/texmf-dist/doc/latex/yb-book/LICENSE.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yb-book/LICENSE.txt 2024-03-23 20:20:13 UTC (rev 70735)
+++ trunk/Master/texmf-dist/doc/latex/yb-book/LICENSE.txt 2024-03-23 20:20:22 UTC (rev 70736)
@@ -1,6 +1,6 @@
(The MIT License)
-Copyright (c) 2021-2023 Yegor Bugayenko
+Copyright (c) 2021-2024 Yegor Bugayenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Modified: trunk/Master/texmf-dist/doc/latex/yb-book/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yb-book/README.md 2024-03-23 20:20:13 UTC (rev 70735)
+++ trunk/Master/texmf-dist/doc/latex/yb-book/README.md 2024-03-23 20:20:22 UTC (rev 70736)
@@ -1,12 +1,16 @@
+# LaTeX Class for My Books
+
[![make](https://github.com/yegor256/yb-book/actions/workflows/l3build.yml/badge.svg)](https://github.com/yegor256/yb-book/actions/workflows/l3build.yml)
[![CTAN](https://img.shields.io/ctan/v/yb-book)](https://ctan.org/pkg/yb-book)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/yb-book/blob/master/LICENSE.txt)
-This LaTeX class I use to format [my books](https://www.yegor256.com/books.html),
+This LaTeX class I use to format
+[my books](https://www.yegor256.com/books.html),
which I sell [on Amazon](https://www.amazon.com/Yegor-Bugayenko/e/B01AM1QMDK).
-First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages)
-from [CTAN](https://ctan.org/pkg/yb-book)
+First,
+[install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages)
+from [CTAN](https://ctan.org/pkg/yb-book)
and then use in the preamble:
```tex
@@ -23,7 +27,7 @@
\end{document}
```
-If you want to contribute yourself, make a fork, then create a branch,
+If you want to contribute yourself, make a fork, then create a branch,
then run `make` in the root directory.
It should compile everything without errors. If not, submit an issue and wait.
Otherwise, make your changes and then run `make` again. If the build is
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 2024-03-23 20:20:13 UTC (rev 70735)
+++ trunk/Master/texmf-dist/source/latex/yb-book/yb-book.dtx 2024-03-23 20:20:22 UTC (rev 70736)
@@ -1,7 +1,7 @@
% \iffalse meta-comment
% (The MIT License)
%
-% Copyright (c) 2021-2023 Yegor Bugayenko
+% Copyright (c) 2021-2024 Yegor Bugayenko
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the 'Software'), to deal
@@ -50,7 +50,7 @@
%<class>\NeedsTeXFormat{LaTeX2e}
%<class>\ProvidesClass{yb-book}
%<*class>
-[22.05.20230 0.3.0 YB Branded Book Style]
+[23.03.2024 0.4.1 YB Branded Book Style]
%</class>
%<*driver>
\documentclass{ltxdoc}
@@ -127,7 +127,8 @@
% printing on paper for review purposes.
% \end{macro}
-% \begin{macro}{draft}
+% \begin{macro}{authordraft}
+% \changes{v0.4.0}{2024/03/23}{The package option \texttt{draft} renamed to \texttt{draft}}
% When it's a draft for reviewers (the page size is A4)
% and you want to have a watermark and a compact form of the content. This
% option goes together with |\thereviewer{}| command, which you may redefine,
@@ -137,7 +138,7 @@
%<*verb>
%\fi
\begin{verbatim}
-\documentclass[draft]{yb-book}
+\documentclass[authordraft]{yb-book}
\renewcommand*\thereviewer{Walter Sobchak}
\begin{document}
Hello, world!
@@ -251,7 +252,7 @@
\RequirePackage{pgfopts}
\pgfkeys{
/yb/.cd,
- draft/.store in=\yb at draft,
+ authordraft/.store in=\yb at authordraft,
compact/.store in=\yb at compact,
manuscript/.store in=\yb at manuscript,
}
@@ -258,10 +259,10 @@
\ProcessPgfPackageOptions{/yb}
% \end{macrocode}
-% Then, depending on the options like |draft| and |manuscript|, we preset
+% Then, depending on the options like |authordraft| and |manuscript|, we preset
% options of the class |book| and then load it:
% \begin{macrocode}
-\makeatletter\ifdefined\yb at draft
+\makeatletter\ifdefined\yb at authordraft
\PassOptionsToClass{11pt}{book}
\PassOptionsToClass{oneside}{book}
\else
@@ -282,7 +283,7 @@
\RequirePackage{geometry}
\geometry{paperwidth=6in, paperheight=9in, bindingoffset=0.25in,
left=0.75in, right=0.75in, top=0.75in, bottom=1.25in}
-\makeatletter\ifdefined\yb at draft
+\makeatletter\ifdefined\yb at authordraft
\geometry{a4paper, margin=1in, left=1.5in}
\else
\ifdefined\yb at manuscript
@@ -299,21 +300,53 @@
\RequirePackage{lmodern}
% \end{macrocode}
-% Then, we load many important packages:
+% Then, we load \href{https://ctan.org/pkg/anyfontsize}{anyfontsize} to enable all sizes of fonts:
% \begin{macrocode}
\RequirePackage{anyfontsize}
+% \end{macrocode}
+
+% Then, we load \href{https://ctan.org/pkg/tikz}{tikz} for graphics:
+% \begin{macrocode}
\RequirePackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{shapes}
\usetikzlibrary{fit}
+% \end{macrocode}
+
+% Then, we load \href{https://ctan.org/pkg/chngcntr}{chngcntr} for something else:
+% \begin{macrocode}
\RequirePackage{chngcntr}
\counterwithout{footnote}{chapter}
+% \end{macrocode}
+
+% Then, we load \href{https://ctan.org/pkg/lastpage}{lastpage} to enable rendering of the last page number:
+% \begin{macrocode}
\RequirePackage{lastpage}
+% \end{macrocode}
+
+% Then, we load \href{https://ctan.org/pkg/paralist}{paralist} for inline enumeration:
+% \begin{macrocode}
\RequirePackage{paralist}
+% \end{macrocode}
+
+% Then, we load \href{https://ctan.org/pkg/xcolor}{xcolor} for colors:
+% \begin{macrocode}
\RequirePackage{xcolor}
+% \end{macrocode}
+
+% Then, we load \href{https://ctan.org/pkg/graphicx}{graphicx} to enable graphic files inclusion:
+% \begin{macrocode}
\RequirePackage{graphicx}
+% \end{macrocode}
+
+% Then, we load \href{https://ctan.org/pkg/enumitem}{enumitem} for inline enumeration:
+% \begin{macrocode}
\RequirePackage[inline]{enumitem}
\setlist{nosep}
+% \end{macrocode}
+
+% Then, we load more packages:
+% \begin{macrocode}
\RequirePackage{float}
\RequirePackage[normalem]{ulem}
\RequirePackage{xfp}
@@ -335,7 +368,7 @@
% \begin{macrocode}
\RequirePackage{setspace}
\setstretch{1.2}
- \makeatletter\ifdefined\yb at draft\setstretch{1.1}\fi\makeatother
+ \makeatletter\ifdefined\yb at authordraft\setstretch{1.1}\fi\makeatother
\makeatletter\ifdefined\yb at compact\setstretch{1.0}\fi\makeatother
\makeatletter\ifdefined\yb at manuscript\setstretch{1.1}\fi\makeatother
% \end{macrocode}
@@ -383,7 +416,7 @@
% \begin{macro}{microtype}
% Then, we include |microtype| for better rendering:
% \begin{macrocode}
-\makeatletter\ifdefined\yb at draft\else
+\makeatletter\ifdefined\yb at authordraft\else
\RequirePackage[letterspace=-50]{microtype}
\fi\makeatother
% \end{macrocode}
@@ -403,7 +436,7 @@
% \begin{macrocode}
\makeatletter
\let\yb at oldsection\section
-\ifdefined\yb at draft
+\ifdefined\yb at authordraft
\RequirePackage[medium]{titlesec}
\else
\RequirePackage[raggedright]{titlesec}
@@ -417,9 +450,9 @@
% \end{macrocode}
% \end{macro}
-% Then, if it's a |draft|, we put a watermark comment:
+% Then, if it's a |authordraft|, we put a watermark comment:
% \begin{macrocode}
-\makeatletter\ifdefined\yb at draft
+\makeatletter\ifdefined\yb at authordraft
\RequirePackage[absolute]{textpos}
\TPGrid{16}{16}
\RequirePackage{fancyhdr}
@@ -475,7 +508,7 @@
% Then, we define |\ybPrintTitlePage| command:
% \begin{macrocode}
\makeatletter\newcommand\ybPrintTitlePage{
- \ifdefined\yb at draft\else
+ \ifdefined\yb at authordraft\else
\begin{titlepage}
\ttfamily
\vspace*{\fill}
@@ -505,7 +538,7 @@
% Then, we define |ybPrintTOC| command to print table of contents:
% \begin{macrocode}
\makeatletter\newcommand\ybPrintTOC{
- \ifdefined\yb at draft\else
+ \ifdefined\yb at authordraft\else
\ifdefined\yb at compact\else\cleardoublepage\fi
{\setstretch{0.7}\tableofcontents}
\fi
@@ -521,7 +554,7 @@
\makeindex
\indexsetup{othercode={\hyphenpenalty=10000}}
\makeatletter\newcommand\ybPrintIndex[1][Index]{
- \ifdefined\yb at draft\else
+ \ifdefined\yb at authordraft\else
\cleardoublepage
{
\setstretch{1.0}
@@ -571,7 +604,7 @@
``#1''\\\raggedleft---#2 #3%
\fi%
}
- \ifdefined\yb at draft%
+ \ifdefined\yb at authordraft%
\begin{wrapfigure}{r}{0.4\textwidth}%
\begin{mdframed}[style=quoteodd]%
\yb at body%
Modified: trunk/Master/texmf-dist/source/latex/yb-book/yb-book.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/yb-book/yb-book.ins 2024-03-23 20:20:13 UTC (rev 70735)
+++ trunk/Master/texmf-dist/source/latex/yb-book/yb-book.ins 2024-03-23 20:20:22 UTC (rev 70736)
@@ -1,6 +1,6 @@
%% (The MIT License)
%%
-%% Copyright (c) 2021-2023 Yegor Bugayenko
+%% Copyright (c) 2021-2024 Yegor Bugayenko
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the 'Software'), to deal
@@ -26,7 +26,7 @@
\preamble
(The MIT License)
-Copyright (c) 2021-2023 Yegor Bugayenko
+Copyright (c) 2021-2024 Yegor Bugayenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Modified: trunk/Master/texmf-dist/tex/latex/yb-book/yb-book.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/yb-book/yb-book.cls 2024-03-23 20:20:13 UTC (rev 70735)
+++ trunk/Master/texmf-dist/tex/latex/yb-book/yb-book.cls 2024-03-23 20:20:22 UTC (rev 70736)
@@ -7,7 +7,7 @@
%% yb-book.dtx (with options: `class')
%% (The MIT License)
%%
-%% Copyright (c) 2021-2023 Yegor Bugayenko
+%% Copyright (c) 2021-2024 Yegor Bugayenko
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the 'Software'), to deal
@@ -32,7 +32,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{yb-book}
-[22.05.20230 0.3.0 YB Branded Book Style]
+[23.03.2024 0.4.1 YB Branded Book Style]
@@ -56,13 +56,13 @@
\RequirePackage{pgfopts}
\pgfkeys{
/yb/.cd,
- draft/.store in=\yb at draft,
+ authordraft/.store in=\yb at authordraft,
compact/.store in=\yb at compact,
manuscript/.store in=\yb at manuscript,
}
\ProcessPgfPackageOptions{/yb}
-\makeatletter\ifdefined\yb at draft
+\makeatletter\ifdefined\yb at authordraft
\PassOptionsToClass{11pt}{book}
\PassOptionsToClass{oneside}{book}
\else
@@ -79,7 +79,7 @@
\RequirePackage{geometry}
\geometry{paperwidth=6in, paperheight=9in, bindingoffset=0.25in,
left=0.75in, right=0.75in, top=0.75in, bottom=1.25in}
-\makeatletter\ifdefined\yb at draft
+\makeatletter\ifdefined\yb at authordraft
\geometry{a4paper, margin=1in, left=1.5in}
\else
\ifdefined\yb at manuscript
@@ -92,18 +92,26 @@
\RequirePackage{lmodern}
\RequirePackage{anyfontsize}
+
\RequirePackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{shapes}
\usetikzlibrary{fit}
+
\RequirePackage{chngcntr}
\counterwithout{footnote}{chapter}
+
\RequirePackage{lastpage}
+
\RequirePackage{paralist}
+
\RequirePackage{xcolor}
+
\RequirePackage{graphicx}
+
\RequirePackage[inline]{enumitem}
\setlist{nosep}
+
\RequirePackage{float}
\RequirePackage[normalem]{ulem}
\RequirePackage{xfp}
@@ -115,7 +123,7 @@
\RequirePackage{setspace}
\setstretch{1.2}
- \makeatletter\ifdefined\yb at draft\setstretch{1.1}\fi\makeatother
+ \makeatletter\ifdefined\yb at authordraft\setstretch{1.1}\fi\makeatother
\makeatletter\ifdefined\yb at compact\setstretch{1.0}\fi\makeatother
\makeatletter\ifdefined\yb at manuscript\setstretch{1.1}\fi\makeatother
@@ -147,7 +155,7 @@
{\begingroup\setstretch{1.0}\lsstyle}
{\endgroup}
-\makeatletter\ifdefined\yb at draft\else
+\makeatletter\ifdefined\yb at authordraft\else
\RequirePackage[letterspace=-50]{microtype}
\fi\makeatother
@@ -157,7 +165,7 @@
\makeatletter
\let\yb at oldsection\section
-\ifdefined\yb at draft
+\ifdefined\yb at authordraft
\RequirePackage[medium]{titlesec}
\else
\RequirePackage[raggedright]{titlesec}
@@ -169,7 +177,7 @@
\fi
\makeatother
-\makeatletter\ifdefined\yb at draft
+\makeatletter\ifdefined\yb at authordraft
\RequirePackage[absolute]{textpos}
\TPGrid{16}{16}
\RequirePackage{fancyhdr}
@@ -216,7 +224,7 @@
}
\makeatletter\newcommand\ybPrintTitlePage{
- \ifdefined\yb at draft\else
+ \ifdefined\yb at authordraft\else
\begin{titlepage}
\ttfamily
\vspace*{\fill}
@@ -241,7 +249,7 @@
}\makeatother
\makeatletter\newcommand\ybPrintTOC{
- \ifdefined\yb at draft\else
+ \ifdefined\yb at authordraft\else
\ifdefined\yb at compact\else\cleardoublepage\fi
{\setstretch{0.7}\tableofcontents}
\fi
@@ -252,7 +260,7 @@
\makeindex
\indexsetup{othercode={\hyphenpenalty=10000}}
\makeatletter\newcommand\ybPrintIndex[1][Index]{
- \ifdefined\yb at draft\else
+ \ifdefined\yb at authordraft\else
\cleardoublepage
{
\setstretch{1.0}
@@ -297,7 +305,7 @@
``#1''\\\raggedleft---#2 #3%
\fi%
}
- \ifdefined\yb at draft%
+ \ifdefined\yb at authordraft%
\begin{wrapfigure}{r}{0.4\textwidth}%
\begin{mdframed}[style=quoteodd]%
\yb at body%
More information about the tex-live-commits
mailing list.