diff options
author | Karl Berry <karl@freefriends.org> | 2024-03-23 20:20:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-03-23 20:20:22 +0000 |
commit | 520e45898a57d3013b0040d2c851d24fb1e6ec3d (patch) | |
tree | 896ce50d1179dc8ecaa17d95a7dd2e0dfd3f6069 | |
parent | 03358c375fa7949b3ef5097ea1d6b84c497e3e19 (diff) |
yb-book (23mar24)
git-svn-id: svn://tug.org/texlive/trunk@70736 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt | 56 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/LICENSE.txt | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/README.md | 12 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/yb-book.pdf | bin | 284729 -> 285789 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/yb-book/yb-book.dtx | 69 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/yb-book/yb-book.ins | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/yb-book/yb-book.cls | 34 |
7 files changed, 115 insertions, 62 deletions
diff --git a/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt b/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt index 6d007226664..cdd7bf4c2b3 100644 --- a/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt +++ b/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt @@ -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 lastpage -hard paralist -hard xcolor -hard setspace +hard csquotes hard enumitem +hard fancyhdr hard float -hard ulem -hard qrcode -hard wrapfig -hard soul -hard xifthen -hard csquotes -hard biblatex +hard footmisc +hard geometry +hard ifmtarg hard imakeidx -hard microtype +hard lastpage hard libertine -hard footmisc +hard mdframed +hard microtype +hard needspace +hard paralist +hard hypdoc +hard pgf +hard pgfopts +hard qrcode +hard setspace +hard soul +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 diff --git a/Master/texmf-dist/doc/latex/yb-book/LICENSE.txt b/Master/texmf-dist/doc/latex/yb-book/LICENSE.txt index 5744f745f0a..1f211e02878 100644 --- a/Master/texmf-dist/doc/latex/yb-book/LICENSE.txt +++ b/Master/texmf-dist/doc/latex/yb-book/LICENSE.txt @@ -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 diff --git a/Master/texmf-dist/doc/latex/yb-book/README.md b/Master/texmf-dist/doc/latex/yb-book/README.md index fcc2528d672..caa052d47d8 100644 --- a/Master/texmf-dist/doc/latex/yb-book/README.md +++ b/Master/texmf-dist/doc/latex/yb-book/README.md @@ -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 @@ Hello, world! \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 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 75d400f8588..0a319992b5b 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 105aec54c12..1c69ae61bbc 100644 --- a/Master/texmf-dist/source/latex/yb-book/yb-book.dtx +++ b/Master/texmf-dist/source/latex/yb-book/yb-book.dtx @@ -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 @@ Hello, world! % 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 @@ Hello, world! %<*verb> %\fi \begin{verbatim} -\documentclass[draft]{yb-book} +\documentclass[authordraft]{yb-book} \renewcommand*\thereviewer{Walter Sobchak} \begin{document} Hello, world! @@ -251,17 +252,17 @@ Hello, world! \RequirePackage{pgfopts} \pgfkeys{ /yb/.cd, - draft/.store in=\yb@draft, + authordraft/.store in=\yb@authordraft, compact/.store in=\yb@compact, manuscript/.store in=\yb@manuscript, } \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@draft +\makeatletter\ifdefined\yb@authordraft \PassOptionsToClass{11pt}{book} \PassOptionsToClass{oneside}{book} \else @@ -282,7 +283,7 @@ Hello, world! \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@draft +\makeatletter\ifdefined\yb@authordraft \geometry{a4paper, margin=1in, left=1.5in} \else \ifdefined\yb@manuscript @@ -299,21 +300,53 @@ Hello, world! \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 @@ Hello, world! % \begin{macrocode} \RequirePackage{setspace} \setstretch{1.2} - \makeatletter\ifdefined\yb@draft\setstretch{1.1}\fi\makeatother + \makeatletter\ifdefined\yb@authordraft\setstretch{1.1}\fi\makeatother \makeatletter\ifdefined\yb@compact\setstretch{1.0}\fi\makeatother \makeatletter\ifdefined\yb@manuscript\setstretch{1.1}\fi\makeatother % \end{macrocode} @@ -383,7 +416,7 @@ Hello, world! % \begin{macro}{microtype} % Then, we include |microtype| for better rendering: % \begin{macrocode} -\makeatletter\ifdefined\yb@draft\else +\makeatletter\ifdefined\yb@authordraft\else \RequirePackage[letterspace=-50]{microtype} \fi\makeatother % \end{macrocode} @@ -403,7 +436,7 @@ Hello, world! % \begin{macrocode} \makeatletter \let\yb@oldsection\section -\ifdefined\yb@draft +\ifdefined\yb@authordraft \RequirePackage[medium]{titlesec} \else \RequirePackage[raggedright]{titlesec} @@ -417,9 +450,9 @@ Hello, world! % \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@draft +\makeatletter\ifdefined\yb@authordraft \RequirePackage[absolute]{textpos} \TPGrid{16}{16} \RequirePackage{fancyhdr} @@ -475,7 +508,7 @@ Hello, world! % Then, we define |\ybPrintTitlePage| command: % \begin{macrocode} \makeatletter\newcommand\ybPrintTitlePage{ - \ifdefined\yb@draft\else + \ifdefined\yb@authordraft\else \begin{titlepage} \ttfamily \vspace*{\fill} @@ -505,7 +538,7 @@ Hello, world! % Then, we define |ybPrintTOC| command to print table of contents: % \begin{macrocode} \makeatletter\newcommand\ybPrintTOC{ - \ifdefined\yb@draft\else + \ifdefined\yb@authordraft\else \ifdefined\yb@compact\else\cleardoublepage\fi {\setstretch{0.7}\tableofcontents} \fi @@ -521,7 +554,7 @@ Hello, world! \makeindex \indexsetup{othercode={\hyphenpenalty=10000}} \makeatletter\newcommand\ybPrintIndex[1][Index]{ - \ifdefined\yb@draft\else + \ifdefined\yb@authordraft\else \cleardoublepage { \setstretch{1.0} @@ -571,7 +604,7 @@ Hello, world! ``#1''\\\raggedleft---#2 #3% \fi% } - \ifdefined\yb@draft% + \ifdefined\yb@authordraft% \begin{wrapfigure}{r}{0.4\textwidth}% \begin{mdframed}[style=quoteodd]% \yb@body% diff --git a/Master/texmf-dist/source/latex/yb-book/yb-book.ins b/Master/texmf-dist/source/latex/yb-book/yb-book.ins index e72072dbba8..28537392a3e 100644 --- a/Master/texmf-dist/source/latex/yb-book/yb-book.ins +++ b/Master/texmf-dist/source/latex/yb-book/yb-book.ins @@ -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 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 9bb86baf2c9..392011e3994 100644 --- a/Master/texmf-dist/tex/latex/yb-book/yb-book.cls +++ b/Master/texmf-dist/tex/latex/yb-book/yb-book.cls @@ -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@draft, + authordraft/.store in=\yb@authordraft, compact/.store in=\yb@compact, manuscript/.store in=\yb@manuscript, } \ProcessPgfPackageOptions{/yb} -\makeatletter\ifdefined\yb@draft +\makeatletter\ifdefined\yb@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@draft +\makeatletter\ifdefined\yb@authordraft \geometry{a4paper, margin=1in, left=1.5in} \else \ifdefined\yb@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@draft\setstretch{1.1}\fi\makeatother + \makeatletter\ifdefined\yb@authordraft\setstretch{1.1}\fi\makeatother \makeatletter\ifdefined\yb@compact\setstretch{1.0}\fi\makeatother \makeatletter\ifdefined\yb@manuscript\setstretch{1.1}\fi\makeatother @@ -147,7 +155,7 @@ {\begingroup\setstretch{1.0}\lsstyle} {\endgroup} -\makeatletter\ifdefined\yb@draft\else +\makeatletter\ifdefined\yb@authordraft\else \RequirePackage[letterspace=-50]{microtype} \fi\makeatother @@ -157,7 +165,7 @@ \makeatletter \let\yb@oldsection\section -\ifdefined\yb@draft +\ifdefined\yb@authordraft \RequirePackage[medium]{titlesec} \else \RequirePackage[raggedright]{titlesec} @@ -169,7 +177,7 @@ \fi \makeatother -\makeatletter\ifdefined\yb@draft +\makeatletter\ifdefined\yb@authordraft \RequirePackage[absolute]{textpos} \TPGrid{16}{16} \RequirePackage{fancyhdr} @@ -216,7 +224,7 @@ } \makeatletter\newcommand\ybPrintTitlePage{ - \ifdefined\yb@draft\else + \ifdefined\yb@authordraft\else \begin{titlepage} \ttfamily \vspace*{\fill} @@ -241,7 +249,7 @@ }\makeatother \makeatletter\newcommand\ybPrintTOC{ - \ifdefined\yb@draft\else + \ifdefined\yb@authordraft\else \ifdefined\yb@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@draft\else + \ifdefined\yb@authordraft\else \cleardoublepage { \setstretch{1.0} @@ -297,7 +305,7 @@ ``#1''\\\raggedleft---#2 #3% \fi% } - \ifdefined\yb@draft% + \ifdefined\yb@authordraft% \begin{wrapfigure}{r}{0.4\textwidth}% \begin{mdframed}[style=quoteodd]% \yb@body% |