This file gives me the following error message

\begin{tikzcd} T \arrow[r,"\langle f,g \rangle"] &  G   \end{tikzcd}

! Missing \endcsname inserted.
<to be read again> 
l.5 ...,"\langle f,g \rangle"] &  G   \end{tikzcd}

If I change f,g to simply f then it runs fine. But I need f,g for this arrow. How can I get that?

  • prblem is comma between f and g. try to envlose them with curly braces: "\langle {f,g} \rangle" – Zarko Jan 4 '18 at 11:42
  • @Zarko Yes. Can you make that an answer? – Colin McLarty Jan 4 '18 at 11:50
  • done. see answer below. – Zarko Jan 4 '18 at 11:59

options in \arrow[...] are separated by commas. in your case, where you also use comma for separate variables in math expression, you need to encapsulate expression in curly braces. so, instead:

"\langle f,g \rangle"

you need to write

"\langle {f,g} \rangle"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.