emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Possible buglet in latex export


From: Nick Dokos
Subject: Re: [Orgmode] Possible buglet in latex export
Date: Mon, 17 Aug 2009 01:18:16 -0400

Robert Goldman <address@hidden> wrote:

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

I tried your scenario with the following org file and I cannot reproduce
the problem:


--8<---------------cut here---------------start------------->8---

* some urls

  - [[http://www.google.com][google]]

  - [[http://www.google.com]]

--8<---------------cut here---------------end--------------->8---

The resulting LaTeX file (attached) compiles without error and produces
the expected output. 

HTH,
Nick

Version info: Org-mode version 6.29trans
              GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 
2009-08-09 on gamaville.dokosmarshall.org
              Linux gamaville.dokosmarshall.org 2.6.24-24-generic #1 SMP Fri 
Jul 24 22:46:06 UTC 2009 i686 GNU/Linux


Attachment: url.tex
Description: LaTeX export of org file


reply via email to

[Prev in Thread] Current Thread [Next in Thread]