无法控制几何设置,从而为封面和书本内部提供不同的边距

无法控制几何设置,从而为封面和书本内部提供不同的边距
%------------------------------------------------------------------------------- %
\documentclass[a4,english,11pt]{book}
%------------------------------------------------------------------------------- %
%
\usepackage[fleqn]{amsmath} %
\usepackage{amsthm,amssymb} %
\usepackage{newtxtext} %
\usepackage{xcolor} %

\usepackage[paperwidth=170mm,paperheight=240mm,textwidth=170mm,lmargin=0mm,rmargin=0mm,
bindingoffset=0mm,showframe,showcrop]{geometry} %

\usepackage[a4,frame,cam,center]{crop} %
\usepackage{layout} %
\usepackage{graphicx}
\usepackage{mwe}

\frontmatter

\begin{document}
\clearpage
\parindent=0pt

\mainmatter

\Large{I want the left and right margins set to zero so that the 240mm x 170mm image A \\[6pt] (my front cover) aligns with the crop marks - i.e. occupies the full page.}

\begin{titlepage}

\includegraphics[width=170mm,height=240mm]{example-image-A}%

\end{titlepage}

\Large{Then the margins and binding-offset change to align the contents inside the book.}

\newgeometry{paperwidth=170mm,paperheight=240mm,textwidth=132mm,lmargin=25mm,
tmargin=25mm,bindingoffset=12.5mm} %

    \begin{center}

        \vspace*{18mm}
        \Huge\textbf{Text inside the book} \\[6pt]
                \huge{crop marks have moved}
            
        \vspace{24mm}
                \Large
        Text entry:\\[6pt]
                width=132mm \\[6pt] left margin=25mm, right margin=13.5mm \\[6pt]
                bindingoffset=12.5mm \\[6pt]
                topmargin=25mm, bottommargin=18mm
                
                \vspace{48mm}
                \Large
                2022-11-03
                
    \end{center}

\end{document}

答案1

如果你的封面是一张图片,你可以简单地使用\includepdfpackage pdfpages。一个简化的例子是:

\documentclass[english,11pt]{book}
\usepackage{newtxtext}
\usepackage{babel}

\usepackage[paperwidth=170mm,paperheight=240mm,textwidth=132mm,lmargin=25mm,tmargin=25mm,bindingoffset=12.5mm,showframe,showcrop]{geometry} %

\usepackage[a4,frame,cam,center]{crop} %
\usepackage{mwe}
\usepackage{pdfpages}

\begin{document}
\frontmatter

\includepdf[noautoscale=true,width=170mm,height=240mm]{example-image-a}%

\mainmatter

\begin{center}

  \vspace*{18mm}
  \Huge\textbf{Text inside the book} \\[6pt]
  \huge crop marks have moved
  
  \vspace{24mm}
  \Large
  Text entry:\\[6pt]
  width=132mm \\[6pt] left margin=25mm, right margin=13.5mm \\[6pt]
  bindingoffset=12.5mm \\[6pt]
  topmargin=25mm, bottommargin=18mm
  
  \vspace{48mm}
  \Large
  2022-11-03
  
\end{center}

\end{document}

在此处输入图片描述

因此您不需要更改封面的页边距。

顺便说一句:像这样的命令\huge没有参数。它们是开关。

如果您确实需要使用 dvi 模式,您可以调整类似的功能以\includepdf使用包eso-pic

\documentclass[english,11pt]{book}
\usepackage{newtxtext}
\usepackage{babel}

\usepackage[paperwidth=170mm,paperheight=240mm,textwidth=132mm,lmargin=25mm,tmargin=25mm,bindingoffset=12.5mm,showframe,showcrop]{geometry} %

\usepackage[a4,frame,cam,center]{crop} %
\usepackage{mwe}
\usepackage{eso-pic}

\begin{document}
\frontmatter

\AddToShipoutPicture*{%
  \AtPageLowerLeft{\includegraphics[width=170mm,height=240mm]{example-image-a}}
}
\thispagestyle{empty}
\mbox{}
\clearpage

\mainmatter

\begin{center}

  \vspace*{18mm}
  \Huge\textbf{Text inside the book} \\[6pt]
  \huge crop marks have moved
  
  \vspace{24mm}
  \Large
  Text entry:\\[6pt]
  width=132mm \\[6pt] left margin=25mm, right margin=13.5mm \\[6pt]
  bindingoffset=12.5mm \\[6pt]
  topmargin=25mm, bottommargin=18mm
  
  \vspace{48mm}
  \Large
  2022-11-03
  
\end{center}

\end{document}

相关内容