From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Changed behaviours of LaTeX exporter in version 8.0+ Date: Mon, 29 Sep 2014 10:53:40 +0200 Message-ID: <87eguug63v.fsf@gmx.us> References: <87lhpg3o60.fsf@berkeley.edu> <8738bn391c.fsf@berkeley.edu> <87mw9rlk6h.fsf@nicolasgoaziou.fr> <87ppegrae5.fsf@nicolasgoaziou.fr> <87wq8mvr9y.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYWic-0006Ei-92 for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 04:54:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYWiW-00061p-6n for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 04:54:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:43464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYWiV-00060z-WE for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 04:54:00 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XYWiP-0002IV-QF for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 10:53:53 +0200 Received: from 109.201.154.186 ([109.201.154.186]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Sep 2014 10:53:53 +0200 Received: from rasmus by 109.201.154.186 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Sep 2014 10:53:53 +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: emacs-orgmode@gnu.org Hi, "Kyeong Soo (Joseph) Kim" writes: > On Mon, Sep 29, 2014 at 3:07 PM, Nicolas Goaziou > wrote: > >> Hello, >> >> "Kyeong Soo (Joseph) Kim" writes: >> >> > The real problem is that, except for using the custom id, the current >> > export engine cannot refer to the correct label (e.g., "\label{se-1}") >> > which is automatically generated during the export process. >> > >> > See the case of section title with only one word in the ECM (e.g., " >> > \hyperref[sec-1]{OneWord}"), where the export engine still cannot >> properly >> > refer to the automatically generated label. This has nothing to do with >> the >> > URL-encoding. >> >> Could you elaborate about what is wrong with >> "\hyperref[sec-1]{OneWord}"? >> >> AFAICT, it is the desired output. >> >> >> Regards, >> >> -- >> Nicolas Goaziou >> > > Now I see the point in your suggestion. > > It seems that you suggest using filter to change > > \hyperref[sec-1]{OneWord} > > to > > \ref{sec-1} > > Am I right? If you don't want to use hyperref (i) make sure your sections are numbered (e.g. #+OPTIONS: num:5) and (ii) make sure that you are not giving links a description. Here's an example: * test my heading :PROPERTIES: :CUSTOM_ID: t :END: [[*test my heading][my funky label]] [[*test my heading]] [[#t]] → \section{test my heading} \label{sec-1} \hyperref[sec-1]{my funky label} \ref{sec-1} \ref{sec-1} —Rasmus -- May the Force be with you