emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vladimir Lomov <lomov.vl@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: LaTeX export: Handle hash symbol in footnote url links
Date: Fri, 21 Feb 2014 20:14:08 +0900	[thread overview]
Message-ID: <20140221111408.GH904@smoon> (raw)
In-Reply-To: <le7b4h$fi5$1@ger.gmane.org>

Hello,
** Michael Bach [2014-02-21 11:52:14 +0100]:

> Dear org-mode Devs and Users,

> I am trying to export the following snippet

> #+BEGIN_ORG
> * LaTeX export of url with hash symbol

> The Org mode export facilities can be used to export Org documents or
> parts of Org documents to a variety of other formats.[fn:1]

> * Footnotes

> [fn:1] [[http://orgmode.org/org.html#Exporting]]
> #+END_ORG

> Now the exported .tex file contains the link as
> : \footnote{\url{http://orgmode.org/org.html#Exporting}}

> Which LaTeX does not like:
> : Illegal parameter number in definition of \Hy@tempa

> FWIW, there is a workaround for the percent symbol described on SO[1]
> using `\urldef` - but this does not work with the hash symbol.

> Is there another workaround/solution that works with org-mode?

Hash (#), as well as several other symbols have to be espaced when used
as is in LaTeX documents. See, for example, "The Not So Short
Introduction to LaTeX2e", 1.3.2 Special Characters. In general it is
duty of ox-latex (LaTeX export backend) to espace such characters.

> [1] bit.ly/1cwYJaM

---
WBR, Vladimir Lomov

-- 
God grant us the serenity to accept the things we cannot change, courage to
change the things we can, and wisdom to know the difference.

  reply	other threads:[~2014-02-21 11:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21 10:52 LaTeX export: Handle hash symbol in footnote url links Michael Bach
2014-02-21 11:14 ` Vladimir Lomov [this message]
2014-02-21 12:57   ` Michael Bach
2014-02-26 14:11     ` Nicolas Goaziou
2014-03-21  8:39       ` Bastien
2014-04-10 17:25       ` Michael Bach

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=20140221111408.GH904@smoon \
    --to=lomov.vl@gmail.com \
    --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).