我的印刷厂要求我为包含大量背景图片的书设置黑色套印功能。我不知道什么是套印,花了很长时间在谷歌上搜索后,我找到了这个页解释了什么是套印以及如何在 Adobe InDesign 中启用它。然后我在 ConTeXt 中找到了此命令
\setupcolors[rgb=no,cmyk=yes,spot=yes,state=start,overprint=yes]
我在 Latex 中找不到等效的。不过,我发现套印包但它不适用于 XeTeX。以下是我的书的示例:
\documentclass[10pt,oneside]{book}
%\usepackage[a5paper, margin=1cm]{geometry}
\usepackage{geometry}
\geometry{
a5paper,
total={148mm,210mm},
left=20mm,
right=20mm,
top=20mm,
bottom=20mm,
bindingoffset=0mm,
driver=xetex
}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{fancyhdr}
\usepackage{xcolor}
\usepackage[pages=some,angle=0,opacity=1]{background}
\usepackage{tikzpagenodes}
\usepackage{polyglossia}
\setdefaultlanguage[calendar=gregorian,hijricorrection=1]{arabic}
\parindent 0pt
\newfontfamily\arabicfont[Script=Arabic,Scale=1.2]{Amiri}
\newfontfamily\chapterfont[Script=Arabic,Scale=1.2]{Tarablus}
\begin{document}
\thispagestyle{plain}
\BgThispage
\backgroundsetup{ contents={\includegraphics[width=0.09\paperwidth,height=0.09\paperheight,keepaspectratio]{7}}, position=current page.center}
\vspace*{3cm}
\begin{flushright}
\Large{أهدي هذا الكتاب إلى أفضل أصدقائي ورفيقة دربي زوجتي}
\end{flushright}
\end{document}
当我使用 Acrobat Prof 中的叠印预览时的结果如下所示:
我正在寻求有关此问题的帮助。
答案1
谢谢兹德内克·瓦格纳帮助我解决这个问题。答案是页面布局包。背景图像应为 CMYK,否则套印将不起作用。以下是他的示例:
\documentclass[10pt,oneside]{book}
%\usepackage[a5paper, margin=1cm]{geometry}
%\usepackage{geometry}
%\geometry{
%a5paper,
%total={148mm,210mm},
%left=20mm,
%right=20mm,
%top=20mm,
%bottom=20mm,
%bindingoffset=0mm,
%driver=xetex
%}
\usepackage[a5,margins=20mm,footskip=20pt,overprint,cropmarks,color]{zwpagelayout}
% Notes
% Overprint requires cropmarks, this is a limitation of xdvipdfmx (not needed for other
% drivers
% footskip is the place reserved for pagination, without it the crop marks will be wrong
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{fancyhdr}
%\usepackage{xcolor} % zwpagelayout does not work with xcolor
%\usepackage[pages=some,angle=0,opacity=1]{background} % loads tikz and tikz loads xcolor
%\usepackage{tikzpagenodes} % this loads xcolor
\usepackage{polyglossia}
\setdefaultlanguage[calendar=gregorian,hijricorrection=1]{arabic}
\parindent 0pt
\newfontfamily\arabicfont[Script=Arabic,Scale=1.2]{Amiri}
%\newfontfamily\chapterfont[Script=Arabic,Scale=1.2]{Tarablus}
\begin{document}
\SetOverprint % set the overprint for the whole document
\color{cmykblack} % be sure that black is defined in CMYK, not in grayscale
\thispagestyle{plain}
%\BgThispage
%\backgroundsetup{
%contents={\includegraphics[width=0.09\paperwidth,height=0.09\paperheight,keepaspectratio]
%{
%7}}, position=current page.center}
% Be sure thet the background image is in CMYK, otherwise overprint will not work
% Background made in a different way
\vbox to 0mm{\centerline{\includegraphics[width=1.1\linewidth]{8.pdf}}\vss}
% Note: rgb179.tif was converted to cmyk179.tif using lcms
% and then to cmyk179.pdf
% The exact commands are
% tifficc -n -i AdobeRGB1998.icc -o eucmyk50.icm rgb179.tif cmyk179.tif
% tiff2ps -e cmyk179.tif | epstopdf --filter --outfile=cmyk179.pdf
% The ICC profiles are distributed with various products
\vspace*{3cm}
\begin{flushright}
\Large{أهدي هذا الكتاب إلى أفضل أصدقائي ورفيقة دربي زوجتي}
\end{flushright}
\end{document}
但是 zwpagelayout 有一个限制,它目前不支持 xcolor 包,这意味着我无法使用背景包。