
Quiero smartdiagram
usar el color del cuadro anterior también para la flecha, en lugar del cuadro al que conduce. Por eso en esta imagen:
Quiero que la flecha verde sea roja, la azul verde, la naranja azul y la roja naranja.
¿Cómo puedo conseguir esto? Aquí está mi MWE:
\documentclass[border=3mm]{standalone}
\usepackage{smartdiagram}
\tikzset{
every shadow/.style={
fill=none,
shadow xshift=0pt,
shadow yshift=0pt}
}
\tikzset{module/.append style={top color=\col,bottom color=\col}}
\smartdiagramset{%
module shape=rectangle,
text color=white,
border color=none,
}
\smartdiagramset{set color list={red,green,blue,orange}}
\begin{document}
\sffamily
\smartdiagram[flow diagram:horizontal]{elem1,elem2,elem3,elem4}
\end{document}
Respuesta1
https://tex.stackexchange.com/a/126481/197451
\documentclass[border=3mm]{standalone}
\usepackage{smartdiagram}
\tikzset{
every shadow/.style={
fill=none,
shadow xshift=0pt,
shadow yshift=0pt}
}
\tikzset{module/.append style={top color=\col,bottom color=\col}}
\smartdiagramset{%
module shape=rectangle,
text color=white,
border color=none,
}
\makeatletter
\smartdiagramset{
flip arrow colors/.style={
/tikz/diagram arrow type/.prefix code={%
\edef\col{\@nameuse{color@\xi}}%
}
}
}
\smartdiagramset{flip arrow colors}
\begin{document}
\sffamily
\smartdiagram[flow diagram:horizontal]{elem1,elem2,elem3,elem4}
\end{document}