1

Preview-latex is good to leave some left indentation on formulas. When the window is small, however, the left indentation on preview is a bit excessive, is there any way to change the amount of indentation (as red circled in the following figure)?

Many thanks! the figure

I tried to set the variable preview-preserve-indentation to nil, but does not seem to help.


Update

Using the exam option,

% \documentclass[fleqn]{article}
\documentclass{exam}
\usepackage{amsmath,mathtools}

\DeclareMathOperator{\ad}{ad}
\DeclarePairedDelimiter\abs{\lvert}{\rvert}

\begin{document}
\[
\int_{a}^{b}f(x)dx=F(b)-F(a)
\]
\[
\int_{a}^{b}f(x)dx=F(x)\bigg|_{a}^{b}=F(b)-F(a)
\]
\[
e^{X}Ye^{-X}=e^{\ad_{X}}Y=Y+[X,Y]+\frac{1}{2!}[X,[X,Y]]+\frac{1}{3!}[X,[X,[X,Y]]]+\dots
\]
\[
\hat{D}(\alpha)=e^{-\frac{1}{2}\abs{\alpha}^{2}}e^{+\alpha\hat{a}^{\dagger}}e^{-\alpha^{*}\hat{a}}=e^{+\frac{1}{2}\abs{\alpha}^{2}}e^{-\alpha^{*}\hat{a}}e^{+\alpha\hat{a}^{\dagger}}
\]
\end{document}

enter image description here

Using the article option enter image description here

Using the [fleqn]{exam} option enter image description here

overall, it is not so troublesome if I choose \documentclass{article} instead of \documentclass{exam}. fleqn works, but changes the pdf output all togather, what if I just want to have less indentation for preview-latex inside emacs?

davyjones
  • 935

1 Answers1

2

You changed the value of the scale factor by setting preview-scale-function to 1.5 with

(set-default 'preview-scale-function 1.5)

In this way you magnify the snippet and the left white space. You can get better results using values between 1.2 and 1.25.

giordano
  • 8,486