From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?=22Martin_G=2E_Skj=E6veland=22?= Subject: changing \href to \myhref in LaTex export Date: Tue, 19 Jan 2010 16:31:23 +0100 Message-ID: <4B55D04B.7050305@ifi.uio.no> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXG1a-0006V3-68 for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 10:29:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXG1V-0006Se-Gh for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 10:29:45 -0500 Received: from [199.232.76.173] (port=47040 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXG1V-0006SS-6t for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 10:29:41 -0500 Received: from mail-out1.uio.no ([129.240.10.57]:33676) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXG1U-0008VT-SC for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 10:29:41 -0500 Received: from mail-mx3.uio.no ([129.240.10.44]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1NXG1R-0007L9-Rf for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 16:29:37 +0100 Received: from 1x-193-157-193-148.uio.no ([193.157.193.148]) by mail-mx3.uio.no with esmtpsa (TLSv1:AES256-SHA:256) user martige (Exim 4.69) (envelope-from ) id 1NXG1R-0003PP-JS for emacs-orgmode@gnu.org; Tue, 19 Jan 2010 16:29:37 +0100 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: emacs-orgmode@gnu.org Hi, is it possible to change how hyperlinks are exported to LaTex without going into to org-latex.el, but setting by a variable or similar in my .emacs file? I would like to export hyperlinks in Latex as \myhref (or something else) instead of \href, so that I can redefine \myhref using \href, like this \usepackage{ifthen} \newcommand{\myhref}[2]{ \ifthenelse{\equal{#1}{#2}} {\href{#1}{#2}} {\href{#1}{#2}\footnote{\url{#1}}} } and thus include the URLs of the links as footnotes. (I thought I could set this with a parameter of the hyperref package in LaTex, but I have not found a way.) Thanks! Martin