From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: Incorrect hexification in URLs in LaTeX Export Date: Fri, 28 Feb 2014 21:26:17 +0100 Message-ID: <87fvn32dcm.fsf@med.uni-goettingen.de> References: <0DEDD4E4-A513-4B03-AA78-25D9859EEA9F@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJU13-0007b1-8F for emacs-orgmode@gnu.org; Fri, 28 Feb 2014 15:26:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJU0w-0007ec-V0 for emacs-orgmode@gnu.org; Fri, 28 Feb 2014 15:26:41 -0500 Received: from plane.gmane.org ([80.91.229.3]:38631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJU0w-0007eX-OV for emacs-orgmode@gnu.org; Fri, 28 Feb 2014 15:26:34 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WJU0u-0007TW-5m for emacs-orgmode@gnu.org; Fri, 28 Feb 2014 21:26:32 +0100 Received: from p57bdcd89.dip0.t-ipconnect.de ([87.189.205.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Feb 2014 21:26:32 +0100 Received: from andreas.leha by p57bdcd89.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Feb 2014 21:26:32 +0100 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: emacs-orgmode@gnu.org "R. Michael Weylandt " writes: > I've tried this with Org 7.9.3 and 8.2.5h to the same result: > > <----------------------> > #+TITLE: Test > * One > Here is a [[http://google.com/search?q=orgmode][link]] > <----------------------> > > Exporting to HTML doesn't transform the link but exporting to LaTeX results in the (non-working) http://google.com/search?%3Dorgmode > > Is there a reason for this behavior and, if so, a way to work around it? > > RFC 3986 2.2 explicitly says URLs may include `=` and =url-encode-url= doesn't change the link in question. > > I've played with org-url-hexify-p and read past ML discussions, but > they seem primarily concerned with characters which should not appear > in URIs. > > Thanks, > Michael Hi Michael, I have recently been bitten by this as well. Based on a block post [fn:1], I now have this in my .emacs as a work-around: --8<---------------cut here---------------start------------->8--- (defun al-link-filter (contents backend info) (let ((contents (replace-regexp-in-string "\\\\#\\+name:.*$" "" contents)));; old and unrelated (replace-regexp-in-string "%3D" "=" contents))) (add-to-list 'org-export-filter-final-output-functions 'al-link-filter) --8<---------------cut here---------------end--------------->8--- It seems to work for me. Regards, Andreas Footnotes: [fn:1] http://irreal.org/blog/?p=2175