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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22525 in the body.
You can then email your comments to 22525 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#22525; Package auctex. (Mon, 01 Feb 2016 19:57:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to post <at> ralfj.de:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Mon, 01 Feb 2016 19:57:01 GMT) Full text and rfc822 format available.

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

From: post <at> ralfj.de
To: bug-auctex <at> gnu.org
Subject: 11.89.1; Preview appears at the wrong position in the document
Date: Mon, 01 Feb 2016 19:32:56 +0100
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

Kind regards,
Ralf

\documentclass[english]{article}

\RequirePackage{enumitem}
\newlist{pcases}{enumerate}{2} % this is the max. nesting level
\setlist[pcases]{
  label=\textbf{Case~\arabic*:}\protect\thiscase.~,
  ref=\arabic*,
  align=left,
  leftmargin=1.5em,
  itemindent=-1em,
  topsep=0.33em,
  labelsep=0pt,
  labelwidth=0pt,
  parsep=0pt
}
\newcommand{\pcase}[1][]{%
  \if\relax\detokenize{#1}\relax
    \def\thiscase{}%
  \else
    \def\thiscase{~#1}%
  \fi
  \item
}
\let\langtext\textsf

\begin{document}
    \begin{pcases}
    \pcase[$\langtext{inc}$] hello
    \pcase[$\langtext{get}$] world
  \end{pcases}

\end{document}

Emacs  : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.6)
 of 2016-01-22 on binet, modified by Debian
Package: 11.89.1

current state:
==============
(setq
 AUCTeX-date "2016-01-31"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex" "/home/r/.emacs.d/elpa/auctex-11.89.1/style" "/home/r/.emacs.d/auctex/auto"
                  "/home/r/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX
                     nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX")
                    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX")
                    ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help
                     "Run Makeinfo with Info output")
                    ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help
                     "Run Makeinfo with HTML output")
                    ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode)
                     :help "Run AMSTeX")
                    ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil
                     (context-mode) :help "Run ConTeXt once")
                    ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help
                     "Run ConTeXt until completion")
                    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
                    ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
                    ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer")
                    ("Print" "%p" TeX-run-command t t :help "Print the file")
                    ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible
                     TeX-queue-command)
                    ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScript file")
                    ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript")
                    ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF")
                    ("Index" "makeindex %s" TeX-run-index nil t :help "Run makeindex to create index file")
                    ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file")
                    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help
                     "Check LaTeX file for correctness")
                    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help
                     "Check LaTeX file for common mistakes")
                    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document")
                    ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files")
                    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
                     "Delete generated intermediate and output files")
                    ("Other" "" TeX-run-command t t :help "Run an arbitrary command"))
 )




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Wed, 10 Feb 2016 02:17:01 GMT) Full text and rfc822 format available.

Notification sent to post <at> ralfj.de:
bug acknowledged by developer. (Wed, 10 Feb 2016 02:17:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 22525-done <at> debbugs.gnu.org
Subject: Re: 25.1.50; error: #error "alignas not defined"
Date: Tue, 9 Feb 2016 18:16:46 -0800
Should be fixed now, in commit f2e9d1b3847d43206e8b0d05e5b64335d2c0b36f. 
Boldly marking this bug as done; we can reopen it if I'm wrong.




Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 10 Feb 2016 02:23:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-auctex <at> gnu.org:
bug#22525; Package auctex. (Wed, 10 Feb 2016 02:25:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 22525 <at> debbugs.gnu.org
Subject: Re: 25.1.50; error: #error "alignas not defined"
Date: Tue, 9 Feb 2016 18:24:06 -0800
Please ignore my previous message; I sent it to the wrong place. Sorry. 
I reopened this bug.




Information forwarded to bug-auctex <at> gnu.org:
bug#22525; Package auctex. (Wed, 10 Feb 2016 07:48:01 GMT) Full text and rfc822 format available.

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

From: Ralf Jung <post <at> ralfj.de>
To: 22525 <at> debbugs.gnu.org
Subject: Re: bug#22525: closed (Re: 25.1.50; error: #error "alignas not
 defined")
Date: Wed, 10 Feb 2016 08:42:46 +0100
Hi,

On 10.02.2016 03:17, GNU bug Tracking System wrote:
> Your bug report
> 
> #22525: 11.89.1; Preview appears at the wrong position in the document
> 
> which was filed against the auctex package, has been closed.

Great, thanks! I will test this once a version with the fix is on (M)ELPA :D

Kind regards,
Ralf




Information forwarded to bug-auctex <at> gnu.org:
bug#22525; Package auctex. (Mon, 04 Mar 2024 10:39:02 GMT) Full text and rfc822 format available.

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

Added tag(s) notabug. Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 04 Mar 2024 10:40:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 22525 <at> debbugs.gnu.org and post <at> ralfj.de Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 04 Mar 2024 10:40:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 01 Apr 2024 11:24:06 GMT) Full text and rfc822 format available.

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

Previous Next


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