使用 tikz 無法正確產生 DVI 文件

使用 tikz 無法正確產生 DVI 文件

我正在使用這段程式碼:

\documentclass[tikz,10pt]{standalone}
\usepackage[scaled]{helvet}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{chemfig}
\usepackage{esvect}
\usetikzlibrary{arrows,shadows,calc,shapes,backgrounds,intersections,positioning} 
\usetikzlibrary{decorations.markings,decorations.pathmorphing,decorations.pathreplacing}

\renewcommand{\familydefault}{\sfdefault}
\tikzset{
%Define standard arrow tip
>=stealth
}
\def\height{3cm}
\def\width{10cm}

\begin{document}

% create a shadow layer, so that we don't need to worry about overdrawing other things
\pgfdeclarelayer{shadow} 
\pgfsetlayers{shadow,main}

\newcommand{\specnode}[7]{
\draw[line width=2pt,shade, top color=white, bottom color=blue!70,shading angle=0] (#1cm,#2cm)--++(#3*.8,0)--++(#3*.2,-.5*#4)--++(#3*-.2,-.5*#4)--(#1,#2-#4)--++(#3*.2,#4*.5) node[anchor=west, text width=#5cm,xshift=#6cm] {\parbox{#5cm}{\centering #7}}--cycle;

}

\begin{tikzpicture}[font=\normalsize,line width=1pt,node distance=.1cm]
\tikzset{nodestyle1/.style={draw,blue,rounded corners=10pt,anchor=west,minimum width=2.2cm, minimum height=3.5cm,font=\normalsize,text=black}}



%GRID
%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%\draw[white] (0,0)--(\width,0)--(\width,\height)--(0,\height)--(0,0);
%\draw[very thin,color=gray] (0,0) grid (\width,\height);
% \foreach \j  in {0,...,8.5} {
  %    \node[] at (\j,0) {$\j$};
%    }
    
% \foreach \j  in {0,...,6} {
  %    \node[] at (0,\j) {$\j$};
 %   }
%===================================================================
\specnode{0}{1.5}{4.5}{1.2}{2}{.1}{Background information}

\specnode{3.9}{1.5}{4.5}{1.2}{3}{-.2}{Pattern utilization and factors}

\specnode{7.8}{1.5}{4.5}{1.2}{3}{-.2}{Patterns\\ Documention}
%
\end{tikzpicture}
\end{document}

如果我使用pdflatex一切正常: 在此輸入影像描述

,但我需要dvi在 IEEE 中發布它。

為什麼latex編譯器不能正常運作?我正在使用MIKTEX 2.9TEXStudio.

它給了我這個錯誤Package pgf Warning: Your graphic driver pgfsys-dvips.def does not support fadings.

答案1

該訊息本質上是答案:該dvips路由不支援衰落。這是由於 PostScript 和 PDF 文件格式之間的差異造成的:只有後者本身支援淡入淡出。您將必須使用直接 PDF 路徑。

相關內容