TransWikia.com

Set the label colour in tikzcd to be different to the arrow colour

TeX - LaTeX Asked on October 2, 2021

The arrows in my tikz-cd graph are green. I would like the label for the arrows to be a different colour. In fact, I would like the text in the label to be of multiple colours. Is it possible to to this?

One Answer

I'm not really sure what you want, but here is an example that could be helpful:

documentclass{article}
usepackage{tikz-cd}
usepackage{xcolor}

begin{document}
begin{tikzcd}
Aar[blue]{r}[red]{f}
& B ar[violet]{r}[swap]{hcirc{color{cyan}g}} 
& C
end{tikzcd}
end{document}

enter image description here

Correct answer by Luis Turcio on October 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP