[Top][All Lists]

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

Re: [AUCTeX] preview-latex, custom commands and \PreviewMacro

From: Moritz Maxeiner
Subject: Re: [AUCTeX] preview-latex, custom commands and \PreviewMacro
Date: Thu, 10 Nov 2011 10:02:20 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

On 06.11.2011 10:29, Frederik wrote:
Am 05.11.2011 14:48, schrieb Moritz Maxeiner:
I started to use auctex and preview-latex and they work great, save for
one thing; and that is, that preview images
get misplaced (placed after } instead of withing) if I use custom commands:


    \item $a = c$
} % Preview(s) (of all items inside) gets placed here

    \item $a = b$ % Preview gets placed here

Now, I searched for a solution and came upon \PreviewMacro, but I could
not get it to work no matter how I used it - I tried several
of the things described here:
Did you try to put
in the preamble and to reapply the style hooks via C-c C-n or to close
the buffer and to reopen it afterwards? This works for me.


Sorry, hit the wrong button and replied to you directly instead of the list, so now here again: At the point in time where you wrote this I tried that and it did not work (Putting \PreviewMacro*{\enuml} in the preamble); now, I tried putting it in the document itself instead of the preable (so right after \begin{document}) and somehow it works. Does anyone have an idea, why the command seems not to work
when put in the preamble and only when put in the document body?


PS: I tried this on GNU Emacs (i386-mingw-nt6.1.7600) (compiled it myself) and on the same version compiled under linux (Archlinux); both versions have the same result in only previewing correctly, if \PreviewMacro
is put inside the document body...

reply via email to

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