GNU bug report logs - #20749
11.88; Meta Bug: Long standing preview bug with TIKZ (6 years!?)

Previous Next

Package: auctex;

Reported by: kuerzn <at> gmail.com

Date: Fri, 5 Jun 2015 20:29:01 UTC

Severity: normal

Merged with 20726

Found in version 11.88

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 20749 in the body.
You can then email your comments to 20749 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#20749; Package auctex. (Fri, 05 Jun 2015 20:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to kuerzn <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Fri, 05 Jun 2015 20:29:02 GMT) Full text and rfc822 format available.

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

From: kuerzn <at> gmail.com
To: bug-auctex <at> gnu.org
Subject: 11.88; Meta Bug: Long standing preview bug with TIKZ (6 years!?)
Date: Fri, 5 Jun 2015 22:24:00 +0200
Dear Auctex team!

The preview feature is not working for people that have

\usepackage{tikz}

and some other common stuff in their document. This is really a pity.

How can we actually solve this problem?

At least a workaround?

Filing Bugs does not seem to lead anywhere, considering that it was filed
at least eight times (see below).

Apr 2015

   #20388 11.88; Preview images misaligned when tikz package is loaded
   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20388

Mar 2015

   #20115 11.88; Preview images get mis-aligned
   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20115

Jan 2015

   #19499 11.88; preview-buffer with tikz and \newpage produces off by one
    image placement.
   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19499

Sep 2014

    preview latex fails part way through documen
    https://lists.gnu.org/archive/html/bug-auctex/2014-09/msg00000.html

Apr 2014

    preview not working when using tikz/pgf3.
    https://lists.gnu.org/archive/html/bug-auctex/2014-04/msg00012.html

Apr 2014

    Preview fails for all when using pgf 3.0.0
    https://lists.gnu.org/archive/html/bug-auctex/2014-04/msg00000.html
    Downstream: https://trac.macports.org/ticket/43189

Mar 2014

    Tikz and Maketitle problem
    https://lists.gnu.org/archive/html/bug-auctex/2014-03/msg00007.html
    https://lists.gnu.org/archive/html/bug-auctex/2014-06/msg00021.html

Mar 2009

    TikZ breaks preview
    https://lists.gnu.org/archive/html/bug-auctex/2009-03/msg00009.html

Thanks, Bye

Sehr


Emacs  : GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2)
 of 2015-04-20 on bitzer.hoetzel.info
Package: 11.88

current state:
==============
(setq
 AUCTeX-date "2014-10-29"
 window-system 'x
 LaTeX-version "2e"
 TeX-auto-save t
 TeX-parse-self t
 TeX-master nil
 )




Information forwarded to bug-auctex <at> gnu.org:
bug#20749; Package auctex. (Mon, 08 Jun 2015 15:37:02 GMT) Full text and rfc822 format available.

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

From: Tassilo Horn <tsdh <at> gnu.org>
To: kuerzn <at> gmail.com
Cc: 20749 <at> debbugs.gnu.org
Subject: Re: bug#20749: 11.88;
 Meta Bug: Long standing preview bug with TIKZ (6 years!?)
Date: Mon, 08 Jun 2015 17:35:59 +0200
kuerzn <at> gmail.com writes:

Hi!

> The preview feature is not working for people that have
>
> \usepackage{tikz}
>
> and some other common stuff in their document. This is really a pity.

Yes, I know.  Unfortunately, my TeX/PostScript knowledge is far too
limited to do anything about it.

> How can we actually solve this problem?

Find someone with the right skills who knows how to fix the issue.  At
least this issue has the benefit of being easy to reproduce, e.g., this
MWD will do.

--8<---------------cut here---------------start------------->8---
\documentclass[a4paper]{article}
\usepackage{lipsum}
\usepackage{tikz}

\begin{document}
\(a\)

\lipsum{}

B \(b\).  C \(c\).  D \(d\).
\end{document}
--8<---------------cut here---------------end--------------->8---

> At least a workaround?

No, sorry I don't know any workaround except for commenting out the
\usepackage{tikz} when generating previews. :-(

Bye,
Tassilo




Merged 20726 20749. Request was from Tassilo Horn <tsdh <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 08 Jun 2015 15:45:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-auctex <at> gnu.org:
bug#20749; Package auctex. (Mon, 08 Jun 2015 15:53:02 GMT) Full text and rfc822 format available.

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

From: "Nicolas Richard" <theonewiththeevillook <at> yahoo.fr>
To: bug-auctex <at> gnu.org
Subject: Re: bug#20749: 11.88;
 Meta Bug: Long standing preview bug with TIKZ (6 years!?)
Date: Mon, 08 Jun 2015 17:52:23 +0200
Tassilo Horn <tsdh <at> gnu.org> writes:

> kuerzn <at> gmail.com writes:
>
> Hi!
>
>> The preview feature is not working for people that have
>>
>> \usepackage{tikz}
>>
>> and some other common stuff in their document. This is really a pity.
>
> Yes, I know.  Unfortunately, my TeX/PostScript knowledge is far too
> limited to do anything about it.
>
>> How can we actually solve this problem?
>
> Find someone with the right skills who knows how to fix the issue.  At
> least this issue has the benefit of being easy to reproduce, e.g., this
> MWD will do.

Isn't this https://sourceforge.net/p/pgf/bugs/316/ again ?

For some reason, it seems that upstream is not fixing it even though a
patch is available. FWIW I've been running with that patch for a few
months have yet to see a problem with it.


-- 
Nicolas Richard





Information forwarded to bug-auctex <at> gnu.org:
bug#20749; Package auctex. (Mon, 08 Jun 2015 16:35:03 GMT) Full text and rfc822 format available.

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

From: Tassilo Horn <tsdh <at> gnu.org>
To: "Nicolas Richard" <theonewiththeevillook <at> yahoo.fr>
Cc: 20749 <at> debbugs.gnu.org
Subject: Re: bug#20749: 11.88;
 Meta Bug: Long standing preview bug with TIKZ (6 years!?)
Date: Mon, 08 Jun 2015 18:34:25 +0200
"Nicolas Richard" <theonewiththeevillook <at> yahoo.fr> writes:

Hi Nicolas,

>>> The preview feature is not working for people that have
>>>
>>> \usepackage{tikz}
>>>
>>> and some other common stuff in their document. This is really a pity.
>>
>> Yes, I know.  Unfortunately, my TeX/PostScript knowledge is far too
>> limited to do anything about it.
>>
>>> How can we actually solve this problem?
>>
>> Find someone with the right skills who knows how to fix the issue.  At
>> least this issue has the benefit of being easy to reproduce, e.g., this
>> MWD will do.
>
> Isn't this https://sourceforge.net/p/pgf/bugs/316/ again ?

Oh, yes, seems so.  And 315 seems also related.

> For some reason, it seems that upstream is not fixing it even though a
> patch is available.

Why do you think that?  AFAICS, no official has done a statement on
that, and the issue is just one year old.

> FWIW I've been running with that patch for a few months have yet to
> see a problem with it.

Which one?  And do you also save \shipout before \begin{document} and
restore it afterwards as indicated by the comment by Kirill Müller?

In any case: if there's anything that we could put into preview.dtx to
fix the issue from our side, that would be awesome.  Patch welcome!

Bye,
Tassilo




Information forwarded to bug-auctex <at> gnu.org:
bug#20749; Package auctex. (Mon, 08 Jun 2015 17:43:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Richard <youngfrog <at> members.fsf.org>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: 20749 <at> debbugs.gnu.org
Subject: Re: bug#20749: 11.88;
 Meta Bug: Long standing preview bug with TIKZ (6 years!?)
Date: Mon, 08 Jun 2015 19:42:23 +0200
[Message part 1 (text/plain, inline)]
Tassilo Horn <tsdh <at> gnu.org> writes:
>> Isn't this https://sourceforge.net/p/pgf/bugs/316/ again ?
>
> Oh, yes, seems so.  And 315 seems also related.
>
>> For some reason, it seems that upstream is not fixing it even though a
>> patch is available.
>
> Why do you think that?  AFAICS, no official has done a statement on
> that, and the issue is just one year old.

Err... yeah maybe I'm being pessimistic again.

>> FWIW I've been running with that patch for a few months have yet to
>> see a problem with it.
>
> Which one?

The "correct patch". More precisely, it's :
[patch.diff (text/x-diff, inline)]
--- /tmp/pgfutil-latex-ctan.def	2015-06-08 19:36:06.890121795 +0200
+++ /usr/local/texlive/2014/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def	2015-06-08 19:39:09.686116394 +0200
@@ -134,16 +134,17 @@
 % material to get lost.
 
 \AtBeginDocument{
-  \@ifpackageloaded{preview}{%
-    % Ok, package loaded. Swap definitions of everyshi.sty's shipout
-    % and preview.sty's shipout:
-    \let\pgf <at> temp\pr <at> shipout% This is the original shipout
-    \let\pr <at> shipout\@EveryShipout <at> Shipout% This is what preview.sty should call
-    \let\@EveryShipout <at> Org <at> Shipout\pgf <at> temp% Everyshi should now use the original one
-  }{}%    
+\@ifpackageloaded{preview}{%
+% Ok, package loaded. Swap definitions of everyshi.sty's shipout
+% and preview.sty's shipout:
+\ifPreview
+\let\shipout\@EveryShipout <at> Org <at> Shipout%This is the null version of \shipout, created by preview and saved by everyshi
+\let\@EveryShipout <at> Org <at> Shipout\pr <at> shipout% This is the original shipout
+\let\pr <at> shipout\@EveryShipout <at> Shipout%
+\fi
+}{}%
 }
 
-
 % Guess the driver:
 
 \def\pgfutil <at> guessdriver{
[Message part 3 (text/plain, inline)]
>             And do you also save \shipout before \begin{document} and
> restore it afterwards as indicated by the comment by Kirill Müller?

I don't.

> In any case: if there's anything that we could put into preview.dtx to
> fix the issue from our side, that would be awesome.  Patch welcome!

I admit I haven't looked into it, but I'm afraid I won't be able to
help.

Nico.

Information forwarded to bug-auctex <at> gnu.org:
bug#20749; Package auctex. (Mon, 08 Jun 2015 18:11:02 GMT) Full text and rfc822 format available.

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

From: Tassilo Horn <tsdh <at> gnu.org>
To: Nicolas Richard <youngfrog <at> members.fsf.org>
Cc: 20749 <at> debbugs.gnu.org
Subject: Re: bug#20749: 11.88;
 Meta Bug: Long standing preview bug with TIKZ (6 years!?)
Date: Mon, 08 Jun 2015 20:10:52 +0200
Nicolas Richard <youngfrog <at> members.fsf.org> writes:

Hi Nicolas,

>> Why do you think that?  AFAICS, no official has done a statement on
>> that, and the issue is just one year old.
>
> Err... yeah maybe I'm being pessimistic again.

Hehe, but yes, one year without official comment sounds like at least
nobody is especially interested in the issue.

>>> FWIW I've been running with that patch for a few months have yet to
>>> see a problem with it.
>>
>> Which one?
>
> The "correct patch". More precisely, it's :
>
> --- /tmp/pgfutil-latex-ctan.def	2015-06-08 19:36:06.890121795 +0200
> +++ /usr/local/texlive/2014/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def	2015-06-08 19:39:09.686116394 +0200
> @@ -134,16 +134,17 @@
>  % material to get lost.
>  
>  \AtBeginDocument{
> -  \@ifpackageloaded{preview}{%
> -    % Ok, package loaded. Swap definitions of everyshi.sty's shipout
> -    % and preview.sty's shipout:
> -    \let\pgf <at> temp\pr <at> shipout% This is the original shipout
> -    \let\pr <at> shipout\@EveryShipout <at> Shipout% This is what preview.sty should call
> -    \let\@EveryShipout <at> Org <at> Shipout\pgf <at> temp% Everyshi should now use the original one
> -  }{}%    
> +\@ifpackageloaded{preview}{%
> +% Ok, package loaded. Swap definitions of everyshi.sty's shipout
> +% and preview.sty's shipout:
> +\ifPreview
> +\let\shipout\@EveryShipout <at> Org <at> Shipout%This is the null version of \shipout, created by preview and saved by everyshi
> +\let\@EveryShipout <at> Org <at> Shipout\pr <at> shipout% This is the original shipout
> +\let\pr <at> shipout\@EveryShipout <at> Shipout%
> +\fi
> +}{}%
>  }

Hey, cool.  I patched my
/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
with this corrected version, and now previews work at least in the
minimal test file I've used to reproduce the issue.

>>             And do you also save \shipout before \begin{document} and
>> restore it afterwards as indicated by the comment by Kirill Müller?
>
> I don't.

Me neither and still seems to work.

>> In any case: if there's anything that we could put into preview.dtx
>> to fix the issue from our side, that would be awesome.  Patch
>> welcome!
>
> I admit I haven't looked into it, but I'm afraid I won't be able to
> help.

Ok, no problem.

Bye,
Tassilo




Information forwarded to bug-auctex <at> gnu.org:
bug#20749; Package auctex. (Sun, 03 Mar 2024 15:37:02 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: Dominique Devriese <dominique.devriese <at> gmail.com>, 20726 <at> debbugs.gnu.org,
 20749 <at> debbugs.gnu.org
Subject: Re: bug#20749: 11.88; Meta Bug: Long standing preview bug with TIKZ
 (6 years!?)
Date: Sun, 03 Mar 2024 16:36:04 +0100
[Message part 1 (text/plain, inline)]
Tassilo Horn <tsdh <at> gnu.org> writes:

> Dominique Devriese <dominique.devriese <at> gmail.com> writes:
>
> Hi Dominique,
>
>> I'd like to report a bug about preview-latex.  It seems to be confused
>> by documents that use the todonotes package.
>
> Yes, I can reproduce that.  The todonotes package uses TikZ, and preview
> has a problem with that.  See bug#20749.

(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)]
The result looks Ok to me.  I'm closing this report for now.  We can
reopen if you get other results.

Best, Arash

bug closed, send any further explanations to 20726 <at> debbugs.gnu.org and Dominique Devriese <dominique.devriese <at> gmail.com> Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 03 Mar 2024 15:38: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 57 days ago.

Previous Next


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