diff options
author | Karl Berry <karl@freefriends.org> | 2022-11-30 20:30:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-11-30 20:30:37 +0000 |
commit | e05e0ef0bb5bf445d47c31fc60e4591e0f81f89b (patch) | |
tree | 86fde0e4d34ebdcf6c4f7dfc014a428abf8919dc /Master/texmf-dist/tex/latex/kdpcover | |
parent | 8624a5d970faf95011e4ab23ae9e567bc93a8575 (diff) |
kdpcover (30nov22)
git-svn-id: svn://tug.org/texlive/trunk@65150 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/kdpcover')
-rw-r--r-- | Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls b/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls index 28feb70560b..125fa6c0526 100644 --- a/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls +++ b/Master/texmf-dist/tex/latex/kdpcover/kdpcover.cls @@ -31,7 +31,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesClass{kdpcover} -[02.10.2022 0.4.0 Cover for Kindle Direct Publishing books] +[2022.11.30 0.5.1 Cover for Kindle Direct Publishing books] @@ -55,6 +55,8 @@ +\LoadClass{article} + \makeatletter \newcommand*\kdp@pages{100} \newlength\kdp@xsize @@ -184,8 +186,9 @@ \newcommand\putVersion[1]{% \begin{textblock}{4}[0,1](10,14)% #1 - \quad - \iexec{git log -n 1 --pretty='format:\%ad' --date='format:\%e-\%b-\%Y'} + \IfFileExists{.git} + {\quad\iexec{git log -n 1 --pretty='format:\%ad' --date='format:\%e-\%b-\%Y'}} + {} \end{textblock}% } |