GNU bug report logs - #20327
11.88.4; Misplacement of previews inside enquote

Previous Next

Package: auctex;

Reported by: gojjoe <at> gmail.com

Date: Tue, 14 Apr 2015 06:19:01 UTC

Severity: normal

Found in version 11.88.4

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 20327 in the body.
You can then email your comments to 20327 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#20327; Package auctex. (Tue, 14 Apr 2015 06:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to gojjoe <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Tue, 14 Apr 2015 06:19:02 GMT) Full text and rfc822 format available.

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

From: gojjoe <at> gmail.com
To: bug-auctex <at> gnu.org
Subject: 11.88.4; Misplacement of previews inside enquote
Date: Tue, 14 Apr 2015 08:17:53 +0200
Hi,

Preview is misplacing inline math inside an \enquote{} 
environment (csquotes LaTeX package).

For example, in a minimal article document with

test \enquote{$M$} test

the preview of "M" will appear immediately after the closing 
brace "}". I don't understand what's causing this. Note that 
I have the following custom-set variables:

(custom-set-variables
'(LaTeX-csquotes-close-quote "''")
'(LaTeX-csquotes-open-quote "``")
'(TeX-close-quote "}")
'(TeX-open-quote "\\enquote{")
)

and changing the first two has no effect (I've never quite 
understood how to use LaTeX-csquotes-open/close-quote). 
Also, I'm using TeX-PDF-mode.

Thank you for your help!

J


Emacs  : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
 of 2013-03-17 on MARVIN
Package: 11.88.3

current state:
==============
(setq
 AUCTeX-date "2015-03-22"
 window-system 'w32
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex"
		  "c:/Users/***/.emacs.d/elpa/auctex-11.88.4/style"
		  "c:/Users/***/.emacs.d/auctex/auctex-auto"
		  "c:/Users/***/.emacs.d/auctex/auctex-style"
		  "auctex-auto" "auctex-style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 TeX-command-list '(("View" "%V" 
TeX-run-discard-or-function nil t :help
		     "Run Viewer")
		    ("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"
		     "%(PDF)amstex %(extraopts) %`%S%(PDFout)%(mode)%' %t"
		     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
		    ("ConTeXt"
		     "texexec --once --texutil %(extraopts) %(execopts)%t"
		     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
		    ("ConTeXt Full" "texexec %(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-command t t :help
		     "Generate PostScript file")
		    ("Index" "makeindex %s" TeX-run-command nil t :help
		     "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")
		    )
 )




Information forwarded to bug-auctex <at> gnu.org:
bug#20327; Package auctex. (Tue, 14 Apr 2015 06:41:01 GMT) Full text and rfc822 format available.

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

From: David Kastrup <dak <at> gnu.org>
To: gojjoe <at> gmail.com
Cc: 20327 <at> debbugs.gnu.org
Subject: Re: bug#20327: 11.88.4; Misplacement of previews inside enquote
Date: Tue, 14 Apr 2015 08:39:49 +0200
gojjoe <at> gmail.com writes:

> Hi,
>
> Preview is misplacing inline math inside an \enquote{} environment
> (csquotes LaTeX package).
>
> For example, in a minimal article document with
>
> test \enquote{$M$} test
>
> the preview of "M" will appear immediately after the closing brace
> "}". I don't understand what's causing this. Note that I have the
> following custom-set variables:

<URL:https://www.gnu.org/software/auctex/manual/preview-latex/Misplaced-previews.html>

-- 
David Kastrup




Information forwarded to bug-auctex <at> gnu.org:
bug#20327; Package auctex. (Tue, 14 Apr 2015 06:47:02 GMT) Full text and rfc822 format available.

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

From: gojjoe <at> gmail.com
To: 20327 <at> debbugs.gnu.org
Subject: Re: bug#20327: 11.88.4; Misplacement of previews inside enquote
Date: Tue, 14 Apr 2015 08:46:34 +0200
On 2015-04-14 08:39, David Kastrup wrote:
> <URL:https://www.gnu.org/software/auctex/manual/preview-latex/Misplaced-previews.html>
>

Thank you David, I'll try to use a \PreviewMacro*\enquote to 
solve the problem. BUT: note that inline math inside an 
\emph or \text** environment previews perfectly aligned for 
me. Is it because previews inserts those \PreviewMacro* 
automatically for me?

Cheers,
J




Information forwarded to bug-auctex <at> gnu.org:
bug#20327; Package auctex. (Tue, 14 Apr 2015 07:19:02 GMT) Full text and rfc822 format available.

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

From: David Kastrup <dak <at> gnu.org>
To: gojjoe <at> gmail.com
Cc: 20327 <at> debbugs.gnu.org
Subject: Re: bug#20327: 11.88.4; Misplacement of previews inside enquote
Date: Tue, 14 Apr 2015 09:18:12 +0200
gojjoe <at> gmail.com writes:

> On 2015-04-14 08:39, David Kastrup wrote:
>> <URL:https://www.gnu.org/software/auctex/manual/preview-latex/Misplaced-previews.html>
>>
>
> Thank you David, I'll try to use a \PreviewMacro*\enquote to solve the
> problem. BUT: note that inline math inside an \emph or \text**
> environment previews perfectly aligned for me. Is it because previews
> inserts those \PreviewMacro* automatically for me?

$ git grep '\\PreviewMacro'
[...]
latex/preview.dtx:%<auccfg>\PreviewMacro*[[][#1{}]\footnote
latex/preview.dtx:%<auccfg>\PreviewMacro*[?[{@{[]}}{}][#1]\item
latex/preview.dtx:%<auccfg>\PreviewMacro*\emph
latex/preview.dtx:%<auccfg>\PreviewMacro*\textrm
latex/preview.dtx:%<auccfg>\PreviewMacro*\textit
latex/preview.dtx:%<auccfg>\PreviewMacro*\textsc
latex/preview.dtx:%<auccfg>\PreviewMacro*\textsf
latex/preview.dtx:%<auccfg>\PreviewMacro*\textsl
latex/preview.dtx:%<auccfg>\PreviewMacro*\texttt
latex/preview.dtx:%<auccfg>\PreviewMacro*\textcolor
[...]

-- 
David Kastrup




Information forwarded to bug-auctex <at> gnu.org:
bug#20327; Package auctex. (Tue, 14 Apr 2015 07:21:01 GMT) Full text and rfc822 format available.

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

From: gojjoe <at> gmail.com
To: 20327 <at> debbugs.gnu.org
Subject: Re: bug#20327: 11.88.4; Misplacement of previews inside enquote
Date: Tue, 14 Apr 2015 09:20:10 +0200
OK, I've read the documentation about prauctex.cfg. Note 
that in my system, AucTeX's own prauctex.cfg is overridden 
by MikTeX's prauctex.cfg, located in

C:\Program Files\MiKTeX 2.9\tex\latex\preview\prauctex.cfg

Anyway, I've added \PreviewMacro*\enquote to 
preview-default-preamble and it's working. Could this step 
somehow be included in future AucTeX distribution?

Thank you again for your help!
J


On 2015-04-14 08:46, gojjoe <at> gmail.com wrote:
> On 2015-04-14 08:39, David Kastrup wrote:
>> <URL:https://www.gnu.org/software/auctex/manual/preview-latex/Misplaced-previews.html>
>>
>>
>
> Thank you David, I'll try to use a \PreviewMacro*\enquote to
> solve the problem. BUT: note that inline math inside an
> \emph or \text** environment previews perfectly aligned for
> me. Is it because previews inserts those \PreviewMacro*
> automatically for me?
>
> Cheers,
> J




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

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

From: Arash Esbati <arash <at> gnu.org>
To: gojjoe <at> gmail.com
Cc: 20327 <at> debbugs.gnu.org
Subject: Re: bug#20327: 11.88.4; Misplacement of previews inside enquote
Date: Mon, 04 Mar 2024 10:19:32 +0100
gojjoe <at> gmail.com writes:

> OK, I've read the documentation about prauctex.cfg. Note that in my
> system, AucTeX's own prauctex.cfg is overridden by MikTeX's
> prauctex.cfg, located in
>
> C:\Program Files\MiKTeX 2.9\tex\latex\preview\prauctex.cfg
>
> Anyway, I've added \PreviewMacro*\enquote to preview-default-preamble
> and it's working. Could this step somehow be included in future AucTeX
> distribution?

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

I'd say people can customize the variable acc. to their needs, therefore
I'm closing this report.

Best, Arash




bug closed, send any further explanations to 20327 <at> debbugs.gnu.org and gojjoe <at> gmail.com Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 04 Mar 2024 09:21: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 39 days ago.

Previous Next


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