我需要生成符合的 PDF PDF/X-1a:2001
,但在尝试创建基于的标题页时出错titleTH
。
我遇到了错误:
未定义控制序列。\titleTH
当我单击错误消息时,我转到pdf.sty
文件的这一行:
% 2010 for PDF/A-2, 2012 for PDF/A-3.
为什么我的代码不起作用?
代码:
% !TeX program = lualatex
\RequirePackage{filecontents} %if filecontents should overwrite old files
\begin{filecontents}{\jobname.xmpdata}
\Title{My Title}
\Author{My Name}
\end{filecontents}
\documentclass[ebook,11pt,twoside,openright,showtrims]{memoir}
\usepackage[x-1a1]{pdfx}
\immediate\pdfobj stream attr{/N 4} file{ISOcoated_v2_300_eci.icc}
\pdfcatalog{%
/OutputIntents [ <<
/Type /OutputIntent
/S/GTS_PDFX
/DestOutputProfile \the\pdflastobj\space 0 R
/OutputConditionIdentifier (ISO Coated v2 300 (ECI))
/Info(ISO Coated v2 300 (ECI))
/RegistryName (http://www.color.org/)
>> ]
}
\pdfinfo{% not needed with newer PDF/X versions
/GTS_PDFXVersion (PDF/X-1:2001)%
/GTS_PDFXConformance (PDF/X-1a:2001)%
}
% -------------------------------------------------------Packages
\usepackage{fontspec}
\usepackage{xcolor}
\newlength\drop
\newcommand*{\titleTH}{%
\thispagestyle{empty}
\begingroup% TH Typography
\raggedleft
\vspace*{\baselineskip}
{\Large The Author}\\[0.167\textheight]
{\bfseries The Big Book of}\\[\baselineskip]
{\textcolor{red}{\Huge CONUNDRUMS}}\\[\baselineskip]
{\small With 123 illustrations}\par
\vfill
{\Large The Publisher \plogo}\par
\vspace*{3\baselineskip}
\endgroup}
\begin{document}
\mainmatter
\titleTH
\end{document}