emacs-orgmode
[Top][All Lists]
Advanced

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

Bug: Images with link break LaTeX export with centered images [9.3.6 (9.


From: Arne Babenhauserheide
Subject: Bug: Images with link break LaTeX export with centered images [9.3.6 (9.3.6-elpa @ /home/arne/.guix-profile/share/emacs/site-lisp/)]
Date: Sun, 10 May 2020 10:40:26 +0200
User-agent: mu4e 1.4.4; emacs 26.3

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

When I use the syntax for images with link, exporting to LaTeX fails,
because it uses \begin{center} inside the href:

    
\href{covid-19-germany-infections-by-date-prognosen-2020-03-23.png}{\begin{center}
    
\includegraphics[width=.9\linewidth]{covid-19-germany-infections-by-date-prognosen-2020-03-23.png}
    \end{center}}

I have a workaround to set

    # Local Variables:
    # org-latex-images-centered: nil
    # End:

but this is no proper fix.

To reproduce: use linked image syntax like this:

    
[[file:covid-19-germany-infections-by-date-prognosen-2020-03-23.png][file:covid-19-germany-infections-by-date-prognosen-2020-03-23.png]]

Then export to LaTeX.

Expected: Exports to LaTeX with centered images.

Actual: Export fails with

    [2] [3 <./covid-19-germany-infections-by-date.png>] [4] [5 
<./covid-19-germany-
    infections-by-date-prognosen.png>] [6]
    ! pdfTeX error (ext1): \pdfendlink cannot be used in vertical mode.
    \close@pdflink ...\Hy@VerboseLinkStop \pdfendlink 
                                                      
    l.135 \end{center}}
                       
    !  ==> Fatal error occurred, no output PDF file produced!
    Transcript written on .//covid-19-naiver-blick.log.


Best wishes,
Arne

Emacs  : GNU Emacs 26.3 (build 1, x86_64-unknown-linux-gnu, GTK+ Version 
3.24.14)
Package: Org mode version 9.3.6 (9.3.6-elpa @ 
/home/arne/.guix-profile/share/emacs/site-lisp/)
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken



reply via email to

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