Standalone and vcenter issue

Create issue
Issue #39 resolved
Former user created an issue

Using pdflatex Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) and standalone 2015/07/15 v1.2

The following fails with "! Missing $ inserted.". Replacing standalone with article works as expected.

\documentclass{standalone}
\usepackage[all]{xy}

\begin{document}
$$
\vcenter{
\xymatrix{
A \ar[d] \ar[r] & B \ar[d] \\
C \ar[r] & D
}
}
$$
\end{document}

Comments (1)

  1. Martin Scharrer repo owner

    You need to use the varwidth option to the class if you want to have content which creates a paragraph not just a text or picture box. The $$ creates a paragraph! Alternative use the preview option instead of the default clip option which works with paragraphs directly.

  2. Log in to comment