Hi, "Kyeong Soo (Joseph) Kim" <kyeongsoo....@gmail.com> writes:
> On Mon, Sep 29, 2014 at 3:07 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr> > wrote: > >> Hello, >> >> "Kyeong Soo (Joseph) Kim" <kyeongsoo....@gmail.com> 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