emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Magnus Nilsson <magnus.nilsson@alumni.chalmers.se>
To: emacs-orgmode@gnu.org
Subject: Bug in LaTeX export for links with underscores in captions. (Easy to fix for elispers)
Date: Sun, 2 Oct 2011 13:30:36 +0200	[thread overview]
Message-ID: <CAH027sUmhobNiqiqZi2m6+dD5Go4hd76ktJp8PxMur_D3-v2wA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

This is a bug which elisp-driven orgers with access to the git
repository can fix quickly.

* Linking to [[a_file.txt][a file with underscore]] in a headline works well
with LaTeX export

#+CAPTION: Linking [[a_file.txt][a file with underscore]] in a caption does
_not_ work well with LaTeX export.
[[/Path_to_figure/figure.png]]

The reason is because org-export-latex-links processes the figure's
caption with org-export-latex-fontify-headline, which in turn
processes the caption's link (with altered underscores for some
reason). For example,
(org-export-latex-fontify-headline "[[/Path_to_figure/figure.png][a file
with underscore]]")
returns
#("\\href{file://./Path\\_{}to\\_{}figure/figure.png}{a file with
underscore}" 14 15 (org-attr nil) 15 24 (org-protected t org-attr nil) 24 25
(org-protected t org-attr nil) 25 28 (org-protected t org-attr nil) 28 35
(org-protected t org-attr nil) 35 46 (org-attr nil))

There must be a way to process links (whose path contains underscores)
within captions to floats correctly.

Best regards,
Magnus

[-- Attachment #2: Type: text/html, Size: 1146 bytes --]

                 reply	other threads:[~2011-10-02 11:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH027sUmhobNiqiqZi2m6+dD5Go4hd76ktJp8PxMur_D3-v2wA@mail.gmail.com \
    --to=magnus.nilsson@alumni.chalmers.se \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).