我正在尝试以下操作:
\documentclass{standalone}
\usepackage[pdf]{graphviz}
%%% Helper code for Overleaf's build system to
%%% automatically update output drawings when
%%% code in a \digraph{...} is modified
\usepackage{xpatch}
\makeatletter
\newcommand*{\addFileDependency}[1]{% argument=file name and extension
\typeout{(#1)}
\@addtofilelist{#1}
\IfFileExists{#1}{}{\typeout{No file #1.}}
}
\makeatother
\xpretocmd{\digraph}{\addFileDependency{#2.dot}}{}{}
\begin{document}
\digraph[scale=0.5]{abc}{rankdir=LR; a->b
a [style=filled,fillcolor=blue]
b [style=filled,fillcolor=blue!10];}
\end{document}
除非我删除“!10”,否则它不起作用,或者即使删除了,它也不会显示较浅的蓝色。我也无法像使用 tikz 那样指定颜色,只能通过名称来指定。为什么会这样?