From: Nick Dokos <nicholas.dokos@hp.com>
To: Paul Sexton <psexton@xnet.co.nz>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Problem with URLs in export to latex
Date: Fri, 03 Sep 2010 00:03:20 -0400 [thread overview]
Message-ID: <13624.1283486600@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Paul Sexton <psexton@xnet.co.nz> of "Fri, 03 Sep 2010 02:29:22 -0000." <loom.20100903T042624-995@post.gmane.org>
Paul Sexton <psexton@xnet.co.nz> 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
next prev parent reply other threads:[~2010-09-03 4:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-03 2:29 Problem with URLs in export to latex Paul Sexton
2010-09-03 4:03 ` Nick Dokos [this message]
2010-09-03 9:04 ` Paul Sexton
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=13624.1283486600@gamaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=psexton@xnet.co.nz \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.