[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] [preview-latex] Play nice with fill-paragraph and/or auto-fill-

From: Johannes
Subject: [AUCTeX] [preview-latex] Play nice with fill-paragraph and/or auto-fill-mode or longlines-mode
Date: Fri, 7 Mar 2014 19:42:03 +0100

Users that like to wrap their text at the fill-column boundary, using either hard-wrap (with fill-paragraph command and/or auto-fill-mode) or temporary hard-wrap (using longlines-mode) (see for a general survey) experience some problems with preview-latex:

The result are lines, that use actual newline characters to limit the length of each line (to the value fill-column). If the line contains a formula this could look like this example:

Lorem ipsum dolor sit amet, consectetur $\int_0^t x^2
+ x dx$ veniam, quis nostrud exercitation ullamco.

Preview latex will render the math _expression_ and put it in line first line and emacs will put everything on one long line.

Proposed Solution:
If the _expression_ replaced by preview-latex contains a newline character, a newline character should be appended or prepended to the replacing _expression_.

Is this possible?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]