From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: How to change latex export of links from \href to \url ? Date: Sun, 25 Sep 2011 23:24:00 +0530 Message-ID: <81mxdswls7.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7suG-0003lS-Mx for emacs-orgmode@gnu.org; Sun, 25 Sep 2011 13:54:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R7suF-0002gz-IX for emacs-orgmode@gnu.org; Sun, 25 Sep 2011 13:54:24 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:59913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7suF-0002gv-G9 for emacs-orgmode@gnu.org; Sun, 25 Sep 2011 13:54:23 -0400 Received: by yxi19 with SMTP id 19so4469799yxi.0 for ; Sun, 25 Sep 2011 10:54:22 -0700 (PDT) In-Reply-To: (Pierfranco Minsenti's message of "Sun, 25 Sep 2011 19:30:29 +0200") 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: Pierfranco Minsenti Cc: emacs-orgmode@gnu.org Pierfranco Minsenti writes: > Hello, > > > I would like to change how hyperlinks are exported from org mode to > LaTeX. > Infact now links are exported as a couple of \href but I've found out > that in the case of long URLs it is impossible to have them broken > properly in different lines using in the latex file commands such as=C2=A0 > \usepackage{breakurl} becasue this and other similar strategies don't > work with \href > > So that's why I'd like to export links as \url and obviously not as a > couple but as single instance. > > Does anybody knows how to obtain it in org mode? Under M-x customize-group RET org-latex RET you will find ,----[ C-h v org-export-latex-href-format RET ] | org-export-latex-href-format is a variable defined in `org-latex.el'. | Its value is "\\href{%s}{%s}" |=20 | Documentation: | A printf format string to be applied to href links. | The format must contain either two %s instances or just one.=20=20 | If it contains two %s instances, the first will be filled with=20 | the link, the second with the link description. If it contains | only one, the %s will be filled with the link. |=20 | You can customize this variable. |=20 | [back] `---- > Thank you in advance for your help. > > Pierfranco > > > --=20