使用 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.9使用TEXStudio

它给了我这个错误Package pgf Warning: Your graphic driver pgfsys-dvips.def does not support fadings.

答案1

消息本质上就是答案:该dvips路线不支持淡入淡出。这是由于 PostScript 和 PDF 文件格式之间的差异造成的:只有后者原生支持淡入淡出。您必须使用直接 PDF 路线。

相关内容