From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem with URLs in export to latex Date: Fri, 03 Sep 2010 00:03:20 -0400 Message-ID: <13624.1283486600@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=43487 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrNVJ-0007S8-2c for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 00:03:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrNVH-0000hP-9m for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 00:03:52 -0400 Received: from vms173015pub.verizon.net ([206.46.173.15]:47022) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrNVH-0000hG-6b for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 00:03:51 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L8500EU7KLLK7R0@vms173015.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 23:03:21 -0500 (CDT) In-reply-to: Message from Paul Sexton of "Fri, 03 Sep 2010 02:29:22 -0000." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Paul Sexton Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Paul Sexton wrote: > Hi guys > > My .org document contains the following sentence. > > In R, procedures in the =survey= library were > used\footnote{Available at: http://faculty.washington.edu/tlumley/survey/}. > > This is exported to: > > In R, procedures in the \texttt{survey} library were > used\footnote{Available at: [[http://faculty.washington.edu/tlumley/survey/] > [http://faculty.washington.edu/tlumley/survey/]]}. > > As you can see, the URL gets exported as an [[org link]], meaningless > outside org. > > The same thing happens with \footnote{Available at: \url{...}} > > Do I have things configured wrong, or is this a bug? > Neither, I think. You can quote the URL like this: --8<---------------cut here---------------start------------->8--- In R, procedures in the =survey= library were used\footnote{Available at: #+BEGIN_LaTeX http://faculty.washington.edu/tlumley/survey/ #+END_LaTeX }. --8<---------------cut here---------------end--------------->8--- although it *is* better to use the \url macro, so that hyperref will do its thing: --8<---------------cut here---------------start------------->8--- In R, procedures in the =survey= library were used\footnote{Available at: #+BEGIN_LaTeX \url{http://faculty.washington.edu/tlumley/survey/} #+END_LaTeX }. --8<---------------cut here---------------end--------------->8--- But why not let org handle the footnote for you? --8<---------------cut here---------------start------------->8--- In R, procedures in the =survey= library were used[fn:1]. * Footnotes [fn:1] Available at: http://faculty.washington.edu/tlumley/survey/ --8<---------------cut here---------------end--------------->8--- This has the advantage that it works when exported to HTML as well. Section 2.10, "Footnotes", of the manual describes how to enter/use footnotes like this. HTH, Nick