From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: breaking URLs Date: Tue, 26 Jul 2011 13:24:21 +0200 Message-ID: <87r55dthcq.fsf@gnu.org> References: <87wrfgdk7m.fsf@altern.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qlfk1-0008Ll-Tx for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 07:24:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qlfk0-0007ve-2L for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 07:24:01 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:42776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qlfjz-0007vX-TN for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 07:24:00 -0400 Received: by wyg36 with SMTP id 36so122126wyg.0 for ; Tue, 26 Jul 2011 04:23:59 -0700 (PDT) In-Reply-To: (Henri-Paul Indiogine's message of "Mon, 18 Jul 2011 09:18:42 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Henri-Paul Indiogine Cc: emacs-org Henri-Paul Indiogine writes: > Hi Bastien! > > 2011/7/18 Bastien : >>> the URL in  \url{my url}  it is exported as >>> >>> \url{[[my url]] [[my url]]}   however the URL is nicely split to the >>> next line in the pdf. >> >> I would welcome ideas/code to have more flexibility wrt the way urls >> are handled by the LaTeX exporter. > > If there would be a way of having the URL in orgmode be exported to > LaTeX as \url{my url} without the square brackets and the repetition > that would be all that is necessary for me. I have no idea why the > LaTeX exporter add the brackets and duplicates the link. You want to customize `org-export-latex-href-format'. This variable used to make two "%s" mandatory, to insert both the link and its path. You can now use only one "%s" if you want, since latest git commit. (setq org-export-latex-href-format "\url{%s}") will do what you want. Thanks for bringing this up! -- Bastien