
當我們編譯這段程式碼:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
% Some variants of closing the path
\coordinate (a) at (0,0) ;
\coordinate (b) at (2,0) ;
\draw[] (a) .. controls +(0,1) and +(0,1) .. (b) -- (a);
\coordinate (c) at (3,0) ;
\coordinate (d) at (5,0) ;
\draw[] (c) .. controls +(0,1) and +(0,1) .. (d) -- cycle;
\coordinate (e) at (6,0) ;
\coordinate (f) at (8,0) ;
\draw[] (e) .. controls +(0,1) and +(0,1) .. (f) -- (e) -- cycle;
% Without closing the path
\coordinate (g) at (0,-1) ;
\coordinate (h) at (2,-1) ;
\draw[] (g) .. controls +(0,1) and +(0,1) .. (h);
\coordinate (i) at (3,-1) ;
\coordinate (j) at (5,-1) ;
\draw[] (i) .. controls +(0,1) and +(0,1) .. (j)
(j) -- (i);
\end{tikzpicture}
\end{document}
這是我們期望並使用的輸出pdflatex
(TeXLive 2014,TikZ 3.0.0):
然而,當我們列印 PDF 時,我們得到:
轉換 PDF 時也會發生同樣的情況pdftops
(這就是我獲取影像的方式)。
我們當然希望在所有情況下都能列印貝塞爾曲線。這裡發生了什麼以及我們如何解決或解決這個問題?