From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Possible buglet in latex export Date: Mon, 17 Aug 2009 01:18:16 -0400 Message-ID: <16199.1250486296@gamaville.dokosmarshall.org> References: <4A88D3D0.3000509@sift.info> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McudN-0000Cx-4B for emacs-orgmode@gnu.org; Mon, 17 Aug 2009 01:19:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McudH-000098-F7 for emacs-orgmode@gnu.org; Mon, 17 Aug 2009 01:19:51 -0400 Received: from [199.232.76.173] (port=52776 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McudH-00008y-5B for emacs-orgmode@gnu.org; Mon, 17 Aug 2009 01:19:47 -0400 Received: from vms173015pub.verizon.net ([206.46.173.15]:38705) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1McudG-00042b-RL for emacs-orgmode@gnu.org; Mon, 17 Aug 2009 01:19:47 -0400 Received: from gamaville.dokosmarshall.org ([98.110.172.159]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KOI0001J9E37VY5@vms173015.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 17 Aug 2009 00:18:16 -0500 (CDT) In-reply-to: Message from Robert Goldman of "Sun\, 16 Aug 2009 22\:51\:44 CDT." <4A88D3D0.3000509@sift.info> 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: Robert Goldman Cc: Org Mode --=-=-= Robert Goldman 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 --=-=-= Content-Type: text/x-tex Content-Disposition: attachment; filename=url.tex Content-Description: LaTeX export of org file % Created 2009-08-17 Mon 01:13 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{longtable} \usepackage{hyperref} \title{url} \author{Nick Dokos} \date{17 August 2009} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \section{some urls} \label{sec-1} \begin{itemize} \item \href{http://www.google.com}{google} \item \href{http://www.google.com}{http://www.google.com} \end{itemize} \end{document} --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--