From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [patch, ox] Unnumbered headlines
Date: Fri, 26 Sep 2014 15:48:11 +0200 [thread overview]
Message-ID: <87y4t6v6g4.fsf@gmx.us> (raw)
In-Reply-To: <87d2aiesce.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 26 Sep 2014 09:51:09 +0200")
Hi Nicolas,
Thanks for all time you've put into the comments. I appreciate it,
and I will try to revise the patches over the weekend.
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>> Using this file:
>>
>> * h1
>> :PROPERTIES:
>> :CUSTOM_ID: h1
>> :END:
>> ** h2
>> :PROPERTIES:
>> :unnumbered: t
>> :CUSTOM_ID: h2
>> :END:
>> *** h3
>> *** h4
>> * h5
>> :PROPERTIES:
>> :CUSTOM_ID: h5
>> :END:
>> [[*h1]] [[#h2]] [[*h4]] [[#h5]]
>> ** h6
>>
>> The output is now
>>
>> \section{h1}
>> \label{sec-1}
>> \subsection*{h2}
>> \label{unnumbered-1}
>> \subsubsection*{h3}
>> \label{unnumbered-2}
>> \subsubsection*{h4}
>> \label{unnumbered-3}
>> \section{h5}
>> \label{sec-2}
>> \ref{sec-1} \hyperref[unnumbered-1]{h2}
>> \hyperref[unnumbered-3]{h4} \ref{sec-2}
>> \subsection{h6}
>> \label{sec-2-1}
>>
>> Which I think is quite good.
>
> I agree.
I worry about this approach based on some observations Alan sent
off-list. When you export the quoted document with num:nil all labels
will be of the form "unnumbered-N", loosing all structure in labels.
Also, some labels are still unassigned in html for unnumbered
headlines, e.g. the "text-" (which is a function of parents' section
numbers) and outline-container-sec-.
Do you think it's better to solve the remaining issues, and accept
that when num:nil exported documents will be quite altered compared to
previously, or should I try to introduce a more informative ID for
numbered an unnumbered headlines alike?
If following the latter path, the most obvious approach (to me) would
be to have a separate :headline-id
and :headline-numbering. :headline-id could be collected using
something like `org-export--collect-headline-numbering', but labels
would not necessarily reflect the printed section numbers,
though :headline-numbering would still be "correct".
What do you think?
—Rasmus
--
. . . It begins of course with The Internet. A Net of Peers
next prev parent reply other threads:[~2014-09-26 13:48 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-08 13:39 [patch, ox] Unnumbered headlines Rasmus
2014-08-08 22:35 ` Alan L Tyree
2014-08-09 1:04 ` [patch, ox] Unnumbered headlines - early test Alan L Tyree
2014-08-09 7:47 ` [patch, ox] Unnumbered headlines Detlef Steuer
2014-08-11 14:18 ` Nicolas Goaziou
2014-08-11 15:37 ` Rasmus
2014-08-12 8:58 ` Nicolas Goaziou
2014-09-20 16:02 ` Rasmus
2014-09-20 20:34 ` Alan L Tyree
2014-09-21 13:12 ` Nicolas Goaziou
2014-09-21 14:37 ` Rasmus
2014-09-21 19:40 ` Nicolas Goaziou
2014-09-21 20:13 ` Rasmus
2014-09-22 15:53 ` Nicolas Goaziou
2014-09-23 0:35 ` Rasmus
2014-09-23 1:10 ` Thomas S. Dye
2014-09-26 7:51 ` Nicolas Goaziou
2014-09-26 13:48 ` Rasmus [this message]
2014-09-27 8:19 ` Nicolas Goaziou
2014-09-30 22:54 ` Rasmus
2014-10-02 0:35 ` Rasmus
2014-10-03 7:56 ` Nicolas Goaziou
2014-10-03 8:49 ` Sebastien Vauban
2014-10-03 10:26 ` Rasmus
2014-10-03 20:14 ` Nicolas Goaziou
2014-10-03 20:31 ` Rasmus
2014-10-05 8:06 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y4t6v6g4.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).