emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2020-05-10  8:40 Arne Babenhauserheide
  2020-05-10 12:45 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Arne Babenhauserheide @ 2020-05-10  8:40 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-10 18:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-10  8:40 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/)] Arne Babenhauserheide
2020-05-10 12:45 ` Nicolas Goaziou
2020-05-10 18:28   ` Arne Babenhauserheide

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).