diff options
author | Karl Berry <karl@freefriends.org> | 2022-01-03 21:07:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-01-03 21:07:13 +0000 |
commit | f7a0d508f882ad92e49e61e2bbc9d2d56e882e58 (patch) | |
tree | bfc26f8b75ee1453a31cdfcfa183e0ca36b5ff3c /Master/texmf-dist/doc | |
parent | 8db679fdb975f2bf246dbc50403e617ffedbf664 (diff) |
yb-book (3jan22)
git-svn-id: svn://tug.org/texlive/trunk@61484 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt | 33 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/README.md | 25 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/samples/sample.tex | 41 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/yb-book-logo.pdf | bin | 0 -> 5216 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/yb-book.pdf | bin | 0 -> 239404 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/yb-book/yb-book.tex | 79 |
6 files changed, 178 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt b/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt new file mode 100644 index 00000000000..df34424b3dc --- /dev/null +++ b/Master/texmf-dist/doc/latex/yb-book/DEPENDS.txt @@ -0,0 +1,33 @@ +hard xkeyval +hard geometry +hard fontenc +hard inputenc +hard anyfontsize +hard tikz +hard chngcntr +hard lastpage +hard paralist +hard xcolor +hard graphicx +hard setspace +hard textcomp +hard enumitem +hard float +hard ulem +hard qrcode +hard wrapfig +hard xfp +hard soul} % in order to use \st{ +hard xifthen +hard csquotes +hard biblatex +hard imakeidx +hard microtype +hard libertine +hard footmisc +hard titlesec +hard titlesec +hard fancyhdr +hard wrapfig +hard mdframed +hard changepage diff --git a/Master/texmf-dist/doc/latex/yb-book/README.md b/Master/texmf-dist/doc/latex/yb-book/README.md new file mode 100644 index 00000000000..a9eae33589d --- /dev/null +++ b/Master/texmf-dist/doc/latex/yb-book/README.md @@ -0,0 +1,25 @@ +[](https://github.com/yegor256/yb-book/actions/workflows/make.yml) +[](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), +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) +and then use in the preamble: + +```tex +\documentclass{yb-book} +\renewcommand*\theauthor{Jeff Lebowski} +\renewcommand*\thevolume{1} +\renewcommand*\thetitle{New Book About OOP} +\begin{document} +Hello, world! +\end{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. +Otherwise, make your changes and then run `make` again. If the build is +still clean, submit a pull request. diff --git a/Master/texmf-dist/doc/latex/yb-book/samples/sample.tex b/Master/texmf-dist/doc/latex/yb-book/samples/sample.tex new file mode 100644 index 00000000000..b5528d54ca4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/yb-book/samples/sample.tex @@ -0,0 +1,41 @@ +% (The MIT License) +% +% Copyright (c) 2021 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 +% in the Software without restriction, including without limitation the rights +% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +% copies of the Software, and to permit persons to whom the Software is +% furnished to do so, subject to the following conditions: +% +% The above copyright notice and this permission notice shall be included in all +% copies or substantial portions of the Software. +% +% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +% SOFTWARE. + +\documentclass{../yb-book} +\renewcommand*\thetitle{\LaTeX{} Class yb-book} +\renewcommand*\theauthor{Yegor Bugayenko} +\begin{document} + +\ybPrintTitlePage + +\newpage + +\chapter{Overview} + +\section{Purpose} + +\index{computer} +This is a very interesting book about computers. + +\ybPrintIndex + +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/yb-book/yb-book-logo.pdf b/Master/texmf-dist/doc/latex/yb-book/yb-book-logo.pdf Binary files differnew file mode 100644 index 00000000000..5d49cb9daa4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/yb-book/yb-book-logo.pdf 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 differnew file mode 100644 index 00000000000..cde5f931f58 --- /dev/null +++ b/Master/texmf-dist/doc/latex/yb-book/yb-book.pdf diff --git a/Master/texmf-dist/doc/latex/yb-book/yb-book.tex b/Master/texmf-dist/doc/latex/yb-book/yb-book.tex new file mode 100644 index 00000000000..09375520582 --- /dev/null +++ b/Master/texmf-dist/doc/latex/yb-book/yb-book.tex @@ -0,0 +1,79 @@ +% (The MIT License) +% +% Copyright (c) 2021-2022 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 +% in the Software without restriction, including without limitation the rights +% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +% copies of the Software, and to permit persons to whom the Software is +% furnished to do so, subject to the following conditions: +% +% The above copyright notice and this permission notice shall be included in all +% copies or substantial portions of the Software. +% +% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +% SOFTWARE. + +\documentclass[compact,manuscript]{./yb-book} +\usepackage{ffcode} +\usepackage{href-ul} +\renewcommand*\theversion{0.1.0} +\renewcommand*\thedate{2022/01/03} +\renewcommand*\thetitle{\LaTeX{} Class \ff{yb-book}} +\renewcommand*\theauthor{Yegor Bugayenko} + +\begin{document} + +\includegraphics[height=6em]{yb-book-logo.pdf} +\vspace*{24pt} + +\maketitle + +\index{Amazon} +The provided class \ff{yb-book} helps me design +\href{https://www.yegor256.com/books.html}{my books} and +publish them +\href{https://www.amazon.com/Yegor-Bugayenko/e/B01AM1QMDK}{on Amazon}. + +There are a few class options you can use: + +\ff{compact} --- when you need to make text more compact +and take less vertical space; + +\ff{manuscript} --- when the format is not for Amazon printing, +but for some other purposes (the page size is A4), like the document +you are reading right now; + +\ff{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; + +\section*{Printers} + +There are a number of printers, commands that print large blocks of text +in the expected format: + +\ff{\textbackslash{}ybPrintTitlePage} --- prints the first page of a book. + +\ff{\textbackslash{}ybPrintTOC} --- prints the table of contents. + +\ff{\textbackslash{}ybQuote} --- prints a side quote. + +\ff{\textbackslash{}ybPrintBibliography} --- prints the list of bib references. + +\ff{\textbackslash{}ybPrintIcons} --- prints your social icons. + +\ff{\textbackslash{}ybPrintIndex[1]} --- prints index with an optional name of the section (instead of ``Index''). + +For more samples, check the directory \ff{samples/}. + +You are welcome to suggest additional commands, but the style +of my books is intentionally as simple as possible, avoiding formatting +as much as possible. + +\end{document}
\ No newline at end of file |