% (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}