I use LaTeX at my site to insert formulas. Here is the template for it. It works fine, but if I try to insert standalone formula? The preview adds white spaces at left and at right of formula.
$\frac{11}{12}$
works good, but in-line formulas has bad radical sign.I need solution to insert displayed formulas without white spaces, but in-line formulas I need to. Can I solve it with one template or I need to use two different?
Code: Select all
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
%русские символы
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage{amsfonts,amsmath,amssymb,latexsym,mathtext}
\begin{document}
\begin{preview}
$$y=5x^2\cdot\frac{abcd}{\sqrt{a}}$$
\end{preview}
\end{document}