when I try to display a math equation with LaTeX, there is always whitespace to the right and left of the math equation. I am trying it with code like this:
\documentclass{standalone}
\begin{document}
%Math equation here
\end{document}
This method works for regular text, it just doesn't seem to work for math. Is there a solution?

$...$?\[...\]?\begin{align}...\end{align}? – Ryan Reich Oct 9 '11 at 20:18\[ y \]– Herbert Oct 9 '11 at 20:39\documentclass{standalone\begin{document}\[ \int_1^a{\frac{dx}{x}} = \ln a \]\[ \int{x^n} = \frac{x^{n+1}}{n+1}\]\end{document}– mebob Oct 9 '11 at 20:42pdfcrop, as suggested in my comment where this original problem arose. However, this may be related to some options ofpreview. – Werner Oct 9 '11 at 20:43