We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I’m having difficulty rendering latex tikz-cd diagrams. Could anyone help?
I feel like this should work:
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
A \arrow[rd, "f"] & B
\end{tikzcd}
\end{document}
But it’s not rendering.
I copied and pasted the code example from here: https://forum.obsidian.md/t/tikzcd/65733
And that code renders perfectly. I am wondering if the problem is the body of the diagram rather than any of the latex headers?
The text was updated successfully, but these errors were encountered:
Any luck on this? Drawing arrows in the fashion \draw[->] (A) -- (B) node[midway, above] {$f$}; works for me, but actually using \arrow does not.
\draw[->] (A) -- (B) node[midway, above] {$f$};
\arrow
Sorry, something went wrong.
You’re trying to draw an arrow to a nonexistent node.
If you just want to draw a horizontal arrow, this works:
\usepackage{tikz-cd} \begin{document} \begin{tikzcd} A \arrow[r, "f"] & B \end{tikzcd} \end{document}
If you actually want a diagonal arrow, you need to set the B node on the next line:
B
\usepackage{tikz-cd} \begin{document} \begin{tikzcd} A \arrow[rd, "f"] \\ & B \end{tikzcd} \end{document}
No branches or pull requests
I’m having difficulty rendering latex tikz-cd diagrams. Could anyone help?
I feel like this should work:
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
A \arrow[rd, "f"] & B
\end{tikzcd}
\end{document}
But it’s not rendering.
I copied and pasted the code example from here:
https://forum.obsidian.md/t/tikzcd/65733
And that code renders perfectly. I am wondering if the problem is the body of the diagram rather than any of the latex headers?
The text was updated successfully, but these errors were encountered: