texlive[73317] Master/texmf-dist: yb-book (5jan25)

commits+karl at tug.org commits+karl at tug.org
Sun Jan 5 21:56:05 CET 2025


Revision: 73317
          https://tug.org/svn/texlive?view=revision&revision=73317
Author:   karl
Date:     2025-01-05 21:56:05 +0100 (Sun, 05 Jan 2025)
Log Message:
-----------
yb-book (5jan25)

Modified Paths:
--------------
    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/tex/latex/yb-book/yb-book.cls

Modified: trunk/Master/texmf-dist/doc/latex/yb-book/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yb-book/README.md	2025-01-05 20:55:56 UTC (rev 73316)
+++ trunk/Master/texmf-dist/doc/latex/yb-book/README.md	2025-01-05 20:56:05 UTC (rev 73317)
@@ -27,6 +27,10 @@
 \end{document}
 ```
 
+Otherwise, you can download
+[`yb-book.cls`](https://yegor256.github.io/yb-book/yb-book.cls) and
+use in your document.
+
 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.

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-05 20:55:56 UTC (rev 73316)
+++ trunk/Master/texmf-dist/source/latex/yb-book/yb-book.dtx	2025-01-05 20:56:05 UTC (rev 73317)
@@ -50,7 +50,7 @@
 %<class>\NeedsTeXFormat{LaTeX2e}
 %<class>\ProvidesClass{yb-book}
 %<*class>
-[2025/01/02 0.5.0 YB Branded Book Style]
+[2025/01/05 0.5.1 YB Branded Book Style]
 %</class>
 %<*driver>
 \documentclass{ltxdoc}
@@ -285,6 +285,12 @@
 \LoadClass{book}
 %    \end{macrocode}
 
+% Then, we load \href{https://ctan.org/pkg/inputenc}{inputenc} for UTF-8 encoding of the sources:
+% \changes{v0.5.1}{2025/01/05}{Added the usage of \texttt{inputenc} in order to ensure UTF-8 encoding for the sources.}
+%    \begin{macrocode}
+\RequirePackage[utf8]{inputenc}
+%    \end{macrocode}
+
 % \begin{macro}{geometry}
 % Then, using |geometry|, we setup page layout:
 %    \begin{macrocode}
@@ -493,9 +499,9 @@
   \fancyhf{}
   \fancyhead[L,C,LO,CO]{}
   \fancyhead[R,RO]{
-    \begin{textblock}{4}(11.5,1)
+    \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=5in] 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
@@ -503,11 +509,11 @@
         of the publisher. This particular manuscript is
         printed for \textbf{\thereviewer{}} and may be used only
         for one-time review. The manuscript has to be destroyed
-        after the review.
+        after the review.%
       };
     \end{textblock}
   }
-  \fancyfoot[C,CO,CE]{\small\ttfamily
+  \fancyfoot[C,CO,CE]{\small\ttfamily%
     page \#\thepage{} of \pageref{LastPage}}
 \fi
 \makeatother
@@ -589,16 +595,16 @@
   \makeindex
   \indexsetup{othercode={\hyphenpenalty=10000}}
 \makeatletter
-\newcommand\ybPrintIndex[1][Index]{
+\newcommand\ybPrintIndex[1][Index]{%
   \ifdefined\yb at authordraft\else
-    \cleardoublepage
-    {
-      \setstretch{1.0}
-      \small
-      \addcontentsline{toc}{chapter}{#1}
-      \printindex
-    }
-  \fi
+    \cleardoublepage%
+    {%
+      \setstretch{1.0}%
+      \small%
+      \addcontentsline{toc}{chapter}{#1}%
+      \printindex%
+    }%
+  \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-05 20:55:56 UTC (rev 73316)
+++ trunk/Master/texmf-dist/tex/latex/yb-book/yb-book.cls	2025-01-05 20:56:05 UTC (rev 73317)
@@ -32,7 +32,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{yb-book}
-[2025/01/02 0.5.0 YB Branded Book Style]
+[2025/01/05 0.5.1 YB Branded Book Style]
 
 
 
@@ -80,6 +80,8 @@
 \makeatother
 \LoadClass{book}
 
+\RequirePackage[utf8]{inputenc}
+
 \RequirePackage{geometry}
 \geometry{
   paperwidth=6in, paperheight=9in,
@@ -204,9 +206,9 @@
   \fancyhf{}
   \fancyhead[L,C,LO,CO]{}
   \fancyhead[R,RO]{
-    \begin{textblock}{4}(11.5,1)
+    \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=5in] 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
@@ -214,11 +216,11 @@
         of the publisher. This particular manuscript is
         printed for \textbf{\thereviewer{}} and may be used only
         for one-time review. The manuscript has to be destroyed
-        after the review.
+        after the review.%
       };
     \end{textblock}
   }
-  \fancyfoot[C,CO,CE]{\small\ttfamily
+  \fancyfoot[C,CO,CE]{\small\ttfamily%
     page \#\thepage{} of \pageref{LastPage}}
 \fi
 \makeatother
@@ -281,16 +283,16 @@
   \makeindex
   \indexsetup{othercode={\hyphenpenalty=10000}}
 \makeatletter
-\newcommand\ybPrintIndex[1][Index]{
+\newcommand\ybPrintIndex[1][Index]{%
   \ifdefined\yb at authordraft\else
-    \cleardoublepage
-    {
-      \setstretch{1.0}
-      \small
-      \addcontentsline{toc}{chapter}{#1}
-      \printindex
-    }
-  \fi
+    \cleardoublepage%
+    {%
+      \setstretch{1.0}%
+      \small%
+      \addcontentsline{toc}{chapter}{#1}%
+      \printindex%
+    }%
+  \fi%
 }
 \makeatother
 



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