GNU bug report logs - #22525
11.89.1; Preview appears at the wrong position in the document

Previous Next

Package: auctex;

Reported by: post <at> ralfj.de

Date: Mon, 1 Feb 2016 19:57:01 UTC

Severity: normal

Tags: notabug

Found in version 11.89.1

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #21 received at 22525 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: post <at> ralfj.de
Cc: 22525 <at> debbugs.gnu.org
Subject: Re: bug#22525: 11.89.1; Preview appears at the wrong position in
 the document
Date: Mon, 04 Mar 2024 11:37:13 +0100
[Message part 1 (text/plain, inline)]
post <at> ralfj.de writes:

> With a document like the following, that contains a custom enumeration,
> the preview generated by preview-latex for the math that is within the
> [...] of the items, appears at the wrong position: After hitting C-c C-p
> C-b, the document looks as follows
>
>   \pcase[$\langtext{inc}$] h<begin embedded image>inc<end embedded
>   image>ello
>
> whereas of course I would expect
>
>   \pcase[<begin embedded image>inc<end embedded image>] hello

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

This is what I get with a recent AUCTeX and Emacs:
[preview.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
My additions were these 2 lines:

\usepackage[textmath,displaymath,footnotes,sections,floats]{preview}
\PreviewMacro*[?[{@{[]}}{}]{\pcase}

where \PreviewMacro* tell preview how to deal your \pcase macro.  I
think the result is what you have expected, therefore I'm closing this
report.

Best, Arash

This bug report was last modified 1 year and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.