You may have noticed that previews of equations in display style 
have a large amount of embedded space to the left of the 
equation. This means that, when switching from preview mode to 
edit mode, the user gets a nasty jump in his view of the 
equation.

I've been chatting with David Kastrup about what might be done 
about this and he suggests using the fleqn option. It works 
perfectly on this little snippet file:
=============================================
\documentclass[fleqn]{article}
\mathindent 0em

\usepackage[active,delayed,dvipng,tightpage,showlabels,lyx]{preview}

\begin{document}

\begin{preview}
\[ E=\int_{A}\!\!\mathrm{d}A\:\rho^{2} \]
\end{preview}

\end{document}
=============================================
$ latex snippet
$ dvips -o snippet.ps snippet.dvi
$ gs -q -dNOPAUSE -dBATCH -dSAFER \
        -sDEVICE=png16m -sOutputFile=snippet%d.png \
        -dGraphicsAlphaBit=4 -dTextAlphaBits=4 snippet.ps
=============================================

My first question is about the mechanics of this solution. Can I 
use the fleqn option with any document class?

My second question is should I make this change? Do people have 
strong opinions either way?

Angus

Reply via email to