diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/kdpcover/kdpcover.pdf | bin | 104774 -> 104667 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/kdpcover/kdpcover.tex | 5 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls | 18 |
3 files changed, 16 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/latex/kdpcover/kdpcover.pdf b/Master/texmf-dist/doc/latex/kdpcover/kdpcover.pdf Binary files differindex d80edde8e34..984c26469bd 100644 --- a/Master/texmf-dist/doc/latex/kdpcover/kdpcover.pdf +++ b/Master/texmf-dist/doc/latex/kdpcover/kdpcover.pdf diff --git a/Master/texmf-dist/doc/latex/kdpcover/kdpcover.tex b/Master/texmf-dist/doc/latex/kdpcover/kdpcover.tex index 9e94ac13a63..793ba90b013 100644 --- a/Master/texmf-dist/doc/latex/kdpcover/kdpcover.tex +++ b/Master/texmf-dist/doc/latex/kdpcover/kdpcover.tex @@ -27,6 +27,9 @@ % It's better not to use "pages" option here, but to let it calculate % the size of your book from the PDF file. Just say "pdf=book.pdf" and it % will be calculated automatically. +% +% To get rid of the black bar at the center of the page, just add +% "barless" option here. \documentclass[pages=200,6x9]{kdpcover} \begin{document} @@ -45,7 +48,7 @@ % Here we print the version and it will also add the date of the latest % Git commit in the current directory. If it's not a Git repository, % the date won't be printed. -\putVersion{0.2.4} +\putVersion{0.3.0} % This prints the price, which is a good practice to mention, I believe. \putPrice{\$0.00} diff --git a/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls b/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls index a04b5b2f9ec..9e38b0d3b50 100644 --- a/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls +++ b/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls @@ -21,7 +21,7 @@ % SOFTWARE. \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{kdpcover}[2022/01/09 0.2.4 Cover for Kindle Direct Publishing books] +\ProvidesClass{kdpcover}[2022/07/03 0.3.0 Cover for Kindle Direct Publishing books] \LoadClass{article} \makeatletter @@ -41,6 +41,8 @@ \DeclareOptionX{7x10}{\setlength\kdp@xsize{7in}\setlength\kdp@ysize{10in}} \DeclareOptionX{8x10}{\setlength\kdp@xsize{8in}\setlength\kdp@ysize{10in}} \DeclareOptionX{pages}{\renewcommand*\kdp@pages{#1}} +\newif\ifkdp@barless +\DeclareOptionX{barless}{\kdp@barlesstrue} \DeclareOptionX{pdf}{% \iexec[trace,quiet,stdout=kdpcover-pages-count.txt]{qpdf --show-npages #1 | tr -d '[[:space:]]' | \{ cat; echo \%; \}}% \newread\kdp@pagescount% @@ -75,12 +77,15 @@ \RequirePackage[absolute]{textpos} \TPGrid{16}{16} +\makeatletter \newcommand\putSpine[2][kdpcover-signature]{% - \begin{textblock}{2.4}[0.5,0](8,0)% - \begin{tikzpicture}% - \node [rectangle, inner sep=0em, fill=black, minimum width=2.4\TPHorizModule, minimum height=16\TPVertModule] at (0,0) {}; - \end{tikzpicture}% - \end{textblock}% + \ifkdp@barless\else + \begin{textblock}{2.4}[0.5,0](8,0)% + \begin{tikzpicture}% + \node [rectangle, inner sep=0em, fill=black, minimum width=2.4\TPHorizModule, minimum height=16\TPVertModule] at (0,0) {}; + \end{tikzpicture}% + \end{textblock}% + \fi \begin{textblock}{1}[0.5,0](8,2)% \begin{tikzpicture}% \node [color=white, inner sep=0cm, outer sep=0cm, rotate=270, minimum height=\TPHorizModule] at (0,0) { @@ -92,6 +97,7 @@ \centerline{\includegraphics[width=0.32in]{#1}}% \end{textblock}% } +\makeatother \newcommand\putPicture[1]{% \begin{textblock}{4}(10,2)% |