From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Orgmode fails to export specific web-links as latex/pdf Date: Tue, 09 Jul 2013 16:55:55 +0200 Message-ID: <87a9lvpytg.fsf@bzg.ath.cx> References: <87y59gt27c.fsf@bzg.ath.cx> <877ggzn8tq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwZKj-0001rH-8N for emacs-orgmode@gnu.org; Tue, 09 Jul 2013 10:56:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwZKh-0008Kz-Ty for emacs-orgmode@gnu.org; Tue, 09 Jul 2013 10:56:01 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:45491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwZKh-0008Ko-Np for emacs-orgmode@gnu.org; Tue, 09 Jul 2013 10:55:59 -0400 Received: by mail-wg0-f42.google.com with SMTP id z11so9981537wgg.5 for ; Tue, 09 Jul 2013 07:55:58 -0700 (PDT) In-Reply-To: <877ggzn8tq.fsf@gmail.com> (Nicolas Goaziou's message of "Tue, 09 Jul 2013 15:48:01 +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: Nicolas Goaziou Cc: emacs-orgmode , Mark Edgington Hi Nicolas, Nicolas Goaziou writes: > Actually, some characters need to be escaped when used in a URL within > a \href command, but not all of them. `org-latex-plain-text' escapes too > many of them and `org-link-escape' doesn't escape enough (and we don't > need to rely on it). Thanks for the details. > According to hyperref documentation # and ~ need not be escaped. Though, > %, { and } do. I'm not sure about \, ^ and _. > > Also, I don't think \url command has the same problem, so escaping can > happen later in the function, not at the `raw-path' level. Please feel free to go ahead with whatever fix is better, I was just trying to quickly reproduce the bug. Thanks, -- Bastien