Guest User

Untitled

a guest
Apr 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. documentclass[preview]{standalone}
  2. usepackage{tikz-cd}
  3. begin{document}
  4.  
  5. How I normally use the baseline. To get the punctation to follow the diagram, I do
  6. [
  7. begin{tikzcd}[baseline=(W.base)]
  8. X ar[d] ar[r] & Y ar[d] \
  9. Z ar[r] & |[alias=W]| W
  10. end{tikzcd}.
  11. ]
  12.  
  13. But now if I want to number the diagram as well, I get
  14. begin{equation}
  15. begin{tikzcd}[baseline=(W.base)]
  16. X ar[d] ar[r] & Y ar[d] \
  17. Z ar[r] & |[alias=W]| W
  18. end{tikzcd}.
  19. end{equation}
  20. But I want the equation number positioned as in
  21. begin{equation}
  22. begin{tikzcd}
  23. X ar[d] ar[r] & Y ar[d] \
  24. Z ar[r] & |[alias=W]| W
  25. end{tikzcd}.
  26. end{equation}
  27.  
  28. end{document}
Add Comment
Please, Sign In to add comment