[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] preview-latex and breqn
From: |
Tamas Papp |
Subject: |
Re: [AUCTeX] preview-latex and breqn |
Date: |
Thu, 27 Sep 2012 11:11:49 +0200 |
User-agent: |
mu4e 0.9.9-dev6; emacs 24.2.50.1 |
Hi Ivan,
Thanks for the help -- it does make it work, but the colors don't work
out (see attached screenshots, I am using a white-on-black-ish color
scheme).
Also, when I enter \alpha with `a in AUCTeX, in the dmath a pair of
braces {} is appended. Is there a way I can tell AUCTeX to treat the
contents of dmath the same as, say, equation?
Best,
Tamas
source.png
Description: PNG image
rendered.png
Description: PNG image
On Wed, Sep 26 2012, Ivan Andrus <address@hidden> wrote:
> You can add
>
> \PreviewEnvironment{dmath}
>
> to a prdefault.cfg file someplace where latex can find it. The same
> directory as the latex file works. I think there is also a way to add it to
> the tex file, so if you prefer that you I refer you to the manual:
> http://texdoc.net/texmf-dist/doc/latex/preview/preview.pdf
>
> -Ivan
>
> On Sep 25, 2012, at 10:53 AM, Tamas Papp wrote:
>
>> Hi,
>>
>> Is it possible to use the breqn package with preview-latex? If I try to
>> preview formulas in the following latex document:
>>
>> \documentclass[a4paper,12pt]{article}
>> \usepackage{breqn}
>> \begin{document}
>> \begin{dmath}
>> \label{eq:1}
>> 1+2
>> \end{dmath}
>> \end{document}
>>
>> preview-latex goes into an infinite loop and the _region_.log file shows
>> error messages like this:
>>
>> ! Preview: Snippet 1868 ended.(0+0x536870912).
>> <-><->
>>
>> l.10 \end{dmath}
>>
>> [1868]
>> ! Preview: Snippet 1869 started.
>> <-><->
>>
>> l.10 \end{dmath}
>>
>> ! Missing $ inserted.
>> <inserted text>
>> $
>> l.10 \end{dmath}
>>
>> ! Display math should end with $$.
>> <to be read again>
>> \@@par
>> l.10 \end{dmath}
>>
>> I tried the customization suggested in the manual (adding the
>> environment to preview-default-preamble) but it didn't help. Emacs
>> snippets that solve this would be appreciated.
>>
>> Best,
>>
>> Tamas
>>
>> _______________________________________________
>> auctex mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/auctex