emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Possible buglet in latex export
@ 2009-08-17  3:51 Robert Goldman
  2009-08-17  5:18 ` Nick Dokos
  2009-08-17 10:39 ` Tim Burt
  0 siblings, 2 replies; 7+ messages in thread
From: Robert Goldman @ 2009-08-17  3:51 UTC (permalink / raw)
  To: Org Mode

When I do a latex export, a simple URL in text, or a simple link url of
the form [[URL]] --- with no description --- gets emitted as

\href{URL}{URL}

which causes Latex to crash for me.

I believe that this is because it won't accept a URL as the second
argument to href.

Changing the \href command to \url fixes the latex problem.

So I wonder if we need to catch this special case of a description-less
URL and treat it specially in latex export for the benefit of latex's
hyperref package.

I'm not an expert on hyperref, by any means, nor do I know the innards
of latex export, so I could be missing something here.  However the
description of \url in the hyperref manual says the following:

  \url{URL}

Similar to \href{URL}{\nolinkurl{URL}}

...which suggests to me that using the URL without some kind of magical
protection (provided by \nolinkurl) may lead to bad things.

best,
r

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-08-18 12:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-17  3:51 Possible buglet in latex export Robert Goldman
2009-08-17  5:18 ` Nick Dokos
2009-08-17 10:39 ` Tim Burt
2009-08-17 12:57   ` Robert Goldman
2009-08-17 13:26     ` Nick Dokos
2009-08-18 11:07       ` Carsten Dominik
2009-08-18 12:19         ` Robert Goldman

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).