From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: Re: LaTeX export: Handle hash symbol in footnote url links Date: Fri, 21 Feb 2014 20:14:08 +0900 Message-ID: <20140221111408.GH904@smoon> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGo3f-0004Sn-7R for emacs-orgmode@gnu.org; Fri, 21 Feb 2014 06:14:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGo3a-0004pY-Gr for emacs-orgmode@gnu.org; Fri, 21 Feb 2014 06:14:19 -0500 Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:60730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGo3a-0004pP-8I for emacs-orgmode@gnu.org; Fri, 21 Feb 2014 06:14:14 -0500 Received: by mail-la0-f43.google.com with SMTP id pv20so2275503lab.30 for ; Fri, 21 Feb 2014 03:14:12 -0800 (PST) Received: from smoon ([109.248.126.235]) by mx.google.com with ESMTPSA id ri4sm7342755lbb.6.2014.02.21.03.14.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Feb 2014 03:14:11 -0800 (PST) Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.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.