From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [patch, ox] Unnumbered headlines Date: Sun, 21 Sep 2014 21:40:55 +0200 Message-ID: <87ppeon4mw.fsf@nicolasgoaziou.fr> References: <87lhqzyubg.fsf@gmx.us> <87bnrrp0tb.fsf@nicolasgoaziou.fr> <87r40n6nrg.fsf@gmx.us> <87egwmaxte.fsf@nicolasgoaziou.fr> <87k34y701i.fsf@gmx.us> <87fvfl86ct.fsf@nicolasgoaziou.fr> <87k34xghtt.fsf@gmx.us> 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]:38690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVmzi-0001yg-C8 for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 15:40:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVmza-0007fZ-3B for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 15:40:26 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:52812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVmzZ-0007ex-So for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 15:40:18 -0400 In-Reply-To: <87k34xghtt.fsf@gmx.us> (rasmus@gmx.us's message of "Sun, 21 Sep 2014 16:37:50 +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: Rasmus Cc: emacs-orgmode@gnu.org, alantyree@gmail.com, tsd@tsdye.com Rasmus writes: > Thanks for the comments. Let's give it another try, shand't we. There we go. > Okay, I returned to my first hack (which never made it to this list). > Basically, I ID everything. Unnumbered sections get the id > "unnumbered-sec-COUNTER" and numbered sections get the id > "sec-COUNTER". > > Perhaps you will find it too much of a hack. I don't think it is a hack. I am just pointing out that how we refer internally to headlines has an effect on output clarity. I let you strike a balance between clarity and easiness of implementation. Note that the internal reference can be a bit cryptic (e.g. num-1-1 and nonum-2). >> At the moment, referring to an unnumbered section displays its name. > > In some modes, yes. In LaTeX it produces a \ref{=C2=B7} that LaTeX will > laugh at. This is incorrect. #+options: num:nil * Headline :PROPERTIES: :CUSTOM_ID: test :END: This is a link to [[#test]]. will produce \section*{Headline} \label{sec-1} This is a link to \hyperref[sec-1]{Headline}. > If you have a better idea than using the title I'm all ears! On the contrary, using the title is what is usually done. I'm all for it. >> Comparing symbols with `equal' is a sin beyond redemption. Use `eq'. > > Why, out of curiosity? I though equal was like the meaner, tougher > eq, that gets shit right, but is a bit more expensive. This is about using the right tool for the job. Unless you mess with the obarray, two symbols with the same name are guaranteed to be `eq'. There's really no reason to use anything else. Regards, --=20 Nicolas Goaziou