From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Target and link text normalised to `orgtargetn' Date: Mon, 20 Apr 2015 10:55:50 +0200 Message-ID: <87383vqiuh.fsf@gmx.us> References: <20150414092530.GC2957@chitra.no-ip.org> <20150414120852.GD2957@chitra.no-ip.org> <87zj699ez9.fsf@gmx.us> <20150416001830.GC14328@chitra.no-ip.org> <87egnk9ycz.fsf@gmx.us> <87k2x9cddu.fsf@nicolasgoaziou.fr> <20150419121305.GZ14328@chitra.no-ip.org> <87618smg2i.fsf@nicolasgoaziou.fr> <87d230rzak.fsf@gmx.us> <87vbgsdw2c.fsf@nicolasgoaziou.fr> <87pp70qi9w.fsf@gmx.us> <87oamkdu5v.fsf@nicolasgoaziou.fr> <87lhhoqbsc.fsf@gmx.us> <87fv7wdkz2.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yk7Uk-0008C2-UB for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 04:55:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yk7Uf-0000hA-VT for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 04:55:58 -0400 Received: from mout.gmx.net ([212.227.15.18]:50930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yk7Uf-0000gy-KW for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 04:55:53 -0400 Received: from x200s ([91.64.37.213]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MTjua-1YsxDM2BkW-00QSkc for ; Mon, 20 Apr 2015 10:55:52 +0200 In-Reply-To: <87fv7wdkz2.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 19 Apr 2015 20:36: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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Rasmus writes: > >> That's what I meant. Or rather a wrapper like org-latex--label. A >> mapping like the one that was reverted for ox-latex only. Or are there >> pitfalls in that approach? > > It will not give you predictability either since you cannot guess "4" in > "sec:4". That's fine. > Also, it is dangerous since a user could use \label{sec:4} for something > different. So we could replace ^org with a mapping, e.g. "headline" =E2=86=92 "sec:" a= nd "table" =E2=86=92 "tab:". Then there's the added safety of TYPE-NUMBER and= the expected prefix. > What is the real benefit of "sec:4" over "orgheadline4"? Aesthetics? Mostly aesthetics. "sec:4" is expected, though I have no numbers to back this claim. I would expect breakage following the change to be pretty rare, but one example of breakage is fancyref: \documentclass{article} \usepackage{fancyref} \begin{document} \section{h1} \label{sec:h1} \section{h2} \label{orgheading2} See \fref{sec:h1} and \fref{orgheading2} \end{document} >> It does not IMO. I would rather not label sections manually. > > I don't understand that part. Would you mind elaborating a bit? Given my taste for "standard" prefixes, I would rather not have to label every section with some custom id to get a standard prefix in the output. =E2=80=94Rasmus --=20 I almost cut my hair, it happened just the other day