获得正确的书籍封面尺寸

获得正确的书籍封面尺寸

我必须遵循这个模板:

在此处输入图片描述

梅威瑟:

\documentclass[spinewidth=11mm,coverwidth=180mm,coverheight=276mm,flapwidth=0mm,dvipsnames,svgnames,marklength=0mm]{bookcover}
\begin{document}
Foo
\end{document} 

但是,这会给我一个尺寸为 381x286.000472mm 的文档...这太大了。我该如何解决这个问题?

答案1

本例中 coverwidth=155+10=165mm 和 coverheight=246mm。您可以定义新的书封部分,即:

后左、后右、前左、前右

尝试以下 TeX 代码:

\documentclass[coverwidth=165mm,coverheight=246mm,spinewidth=11mm]{bookcover}
\newbookcoverpart{back left}{\setpartposx{15mm}\setpartposy{15mm}\setpartwidth{155mm}\setpartheight{246mm}}
\newbookcoverpart{back right}{\setpartposx{170mm}\setpartposy{15mm}\setpartwidth{10mm}\setpartheight{246mm}}
\newbookcoverpart{front left}{\setpartposx{191mm}\setpartposy{15mm}\setpartwidth{10mm}\setpartheight{246mm}}
\newbookcoverpart{front right}{\setpartposx{201mm}\setpartposy{15mm}\setpartwidth{155mm}\setpartheight{246mm}}
\begin{document}
\begin{bookcover}
\bookcovercomponent{color}{back left}{color=blue}
\bookcovercomponent{color}{back right}{color=blue!50}
\bookcovercomponent{color}{spine}{color=yellow}
\bookcovercomponent{color}{front left}{color=red!50}
\bookcovercomponent{color}{front right}{color=red}
\bookcovercomponent{center}{spine}{\rotatebox[origin=c]{90}{\bfseries\Large Book title}}
\bookcovercomponent{normal}{front right}{
\vspace{5cm}
\begin{center}
\bfseries\huge Book title
\end{center}}
\end{bookcover}
\end{document}

相关内容