半透明 Tikz 节点

半透明 Tikz 节点

尝试重现我上一个问题的答案中的半透明填充https://tex.stackexchange.com/a/188453/37570我无法让它工作。尝试在它的backgrounds内部和外部添加库ifpdf,但填充仍然是实心的,没有透明度。

\documentclass[border=10pt]{standalone}
\usepackage{adjustbox}

\ifpdf
    \usepackage{forest}
    \usetikzlibrary{backgrounds}
\else
    \usepackage{pst-barcode}
\fi

\usepackage[crop=off]{auto-pst-pdf}


\begin{document}

\begin{tabular}{l r}
&
\begin{adjustbox}{valign=t}
\begin{pspicture}(1.02in,1.02in)
    \psbarcode{http://localhost/Chart}{version=5}{qrcode}
\end{pspicture}
\end{adjustbox} \\
 & \\ % extra row for vertical separation
\multicolumn{2}{c}{
\begin{forest} 
for tree={
    draw=black, align=center, l sep=4ex, parent anchor=south, child anchor=north,
    node options={font=\scriptsize, minimum width=14em, minimum height=10ex, rounded corners=1ex},
    edge path={
        \noexpand\path[\forestoption{edge}]
        (!u.parent anchor) -- +(0,-2ex) -| (.child anchor)\forestoption{edge label};
    },
    where n children=0{
        child anchor=west,
        edge path={
            \noexpand\path[\forestoption{edge}]
            ([xshift=-6em]!u.parent anchor) |- (.child anchor)\forestoption{edge label};
        },
        for parent={
            parent anchor=south, l sep=-12em, grow'=east, calign=child edge%, draw=blue         
        } %,draw=red
    }{}, base=b,
    fill=white!25,
    fill opacity=.75,
}
[\textbf{Aaaaaa  Aaaaa}\\
Aa. Aaaaaaaaaaaa \\aaaaaaaaaaaaaaaa\\Aaaaaaaaaaa 
,name=10003863
    [\textbf{Bbbbbb Bbbbbbb}\\
Bbbbbb Bbbbbbbbb Bbbbbbbb\\Bbbbbbbbbbb 
,name=10004145
        [\textbf{Cc Cccccc}\\
Ccccccccc Ccccccccccccc Ccccccc\\Ccccccccccc 
,name=10003046,node options={dashed}
[,phantom, minimum height=1ex]
    [\textbf{Dddddd Ddddddd}\\
Ddddddddddddd Dddddddddd\\Ddddddddddd 
,name=10004047,node options={dashed}]
]
    [\textbf{Eeeeee Eeeee}\\
Eeeeeeeee Eeeeeeeeeee\\Eeeeeeeeeee 
,name=10004057,node options={dashed}[,phantom]]
]]
 %
\tikzset{every node/.style={font=\footnotesize, align=center, draw=black!20, minimum width=14em, minimum height=10ex, rounded corners=1ex}}
\begin{scope}[on background layer]
\draw[->,dashed] (10004047) to (10004145);
\end{scope}
\node[anchor=south,draw=black](10011144) at ([xshift=16em]10004145 |- 0,-18ex) {
\textbf{Fffffff Fffff}\\
Ffffffffff\\fff fff\\Ffffff Fffffffffffffff
}[];
\begin{scope}[on background layer]
\draw[->,dashed] (10004145) to (10011144);
\end{scope}
\begin{scope}[on background layer]
\draw[->,dashed] (10003046) to (10003863);
\end{scope}
\begin{scope}[on background layer]
\draw[->,dashed] (10004057) to (10003863);
\end{scope}
 %
\end{forest}
} \\
\end{tabular}
\end{document}

在此处输入图片描述

相关内容