我最近印了一本书,在书头中使用了淡化线条。在 PDF 中它看起来是正确的,但在实际打印中,左页上的线条没有右页上的线条淡化那么多,所以线条看起来像是“被切断了”(抱歉图片模糊):
(来源:伊特拉斯报)
我认为代码是相同的,所以我不明白为什么……?它在 PDF 中的样子如下:
(来源:伊特拉斯报)
以及 MWE:
\documentclass[11pt, titlepage, openany]{book}
\usepackage[textwidth=13cm, left=3cm, bottom=2cm, top=2.5cm, headsep=1.1cm, paperwidth=20cm, paperheight=27cm, layoutwidth=19cm, layoutheight=26cm, layouthoffset=0.5cm, layoutvoffset=0.5cm, showcrop, asymmetric]{geometry}
\usepackage{fancyhdr}
\usepackage{tikz}
\usetikzlibrary{fadings}
\usepackage{lipsum}
% Headers
\definecolor{gray}{cmyk}{0,0,0,0.4}
\definecolor{darkgrey}{cmyk}{0,0,0,0.6}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\fancyhead{} % Remove head fields
\fancyfoot{} % Remove foot fields
\setlength{\headheight}{24pt}
\fancyhead[RO]{\sffamily\bfseries\footnotesize\textcolor{gray}\leftmark\hspace{0.3cm}\sffamily\bfseries\normalsize\textcolor{darkgray}\thepage}
\fancyhead[LE]{\sffamily\bfseries\textcolor{darkgray}\thepage\hspace{0.3cm}\sffamily\bfseries\footnotesize\textcolor{gray}\leftmark}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\headrule}{%
\vskip-\baselineskip\vskip4pt
\ifodd\count0\hfill\begin{tikzpicture}
\fill[darkgray,path fading=west] (0,0) rectangle (4.98,0.02);
\end{tikzpicture}\else\begin{tikzpicture}
\fill[darkgray,path fading=east] (0,0) rectangle (4.98,0.02);
\end{tikzpicture}\fi}
\begin{document}
\chapter{Test chapter}
\lipsum
\lipsum
\lipsum
\end{document}
任何帮助都将不胜感激。
致以最诚挚的问候 Lars