Lower half of tikzcd images truncated by convert
Posted: 2019-06-12T01:22:18-07:00
Hi, I have many small LaTeX diagrams which I can accurately convert to .ps files (an example below)
Due to external code I am using, I have to use imagemagick's convert function to turn this into a .png, and I can supply any arguments I wish. However, no matter what combinations flags I try, the images invariably have their lower half removed. Here is
an example of that happening: http://web.stanford.edu/~ksb/content/X1.3.9.html
Does anyone have suggestions for what could be responsible for this behavior?
Mac OS Mojave
ImageMagick 7.0.8-42 Q16 x86_64 2019-04-28
ghostscript version 9.26
Code: Select all
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{amsmath}\usepackage{mathtools}\usepackage{amssymb}\usepackage{mathrsfs}\usepackage{tikz-cd}\usepackage{tikz}\begin{document}
\begin{displaymath}
.\begin{tikzcd} & A \arrow[rd, "\alpha"] & \\Q \arrow[ru, "f"] \arrow[rd, "g"'] & & C \\ & B \arrow[ru, "\beta"'] & \end{tikzcd}\end{displaymath}
\end{document}
an example of that happening: http://web.stanford.edu/~ksb/content/X1.3.9.html
Does anyone have suggestions for what could be responsible for this behavior?
Mac OS Mojave
ImageMagick 7.0.8-42 Q16 x86_64 2019-04-28
ghostscript version 9.26