I want to produce a picture in PDF format using pdflatex, with nothing else in the page but the picture, so I decided to use the document class minimal
\documentclass{minimal}
\begin{document}
\input{file_produced_by_graphics_program}
\end{document}
But the \input file contains labels in the form of $\cal{A}$ and when I run pdflatex on the example input above I have
...
! Undefined control sequence.
<recently read> \cal
...
My question is twofold
may I use a different document class that defines
\calbut doesn't put extraneous stuff on the page?may I load something or define a new command, so that I can use
\calinside aminimaldocument?
An extra question is, are there other similar gaps in minimal functionality?

standaloneclass. – Joseph Wright Jun 15 '16 at 09:15texdoc standalone, it opens the documentation file near the end, a clear sign that a past self was wiser than the present one... :-( – gboffi Jun 15 '16 at 09:35