auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] preview-latex and breqn


From: Ivan Andrus
Subject: Re: [AUCTeX] preview-latex and breqn
Date: Wed, 26 Sep 2012 15:59:00 +0200

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




reply via email to

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