From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Continuation of main section text after subsections ? Date: Wed, 30 Mar 2011 21:41:40 -0400 Message-ID: <87bp0svzfv.fsf@fastmail.fm> References: <20110327170251.58923564@hsdev.com> <87hbal7o60.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54018 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q56tL-00052v-QB for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 21:41:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q56tK-0005sj-N4 for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 21:41:43 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:48201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q56tK-0005sP-JU for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 21:41:42 -0400 In-Reply-To: (Rasmus's message of "Wed, 30 Mar 2011 12:05:56 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: >> --8<---------------cut here---------------start------------->8--- >> * Main headline >> Some thoughts expressed here >> >> ** Subheading 1 >> More thoughts expressed here >> ** Subheading 2 >> More thoughts expressed here >> ** Main headline (cont.) >> >> I would like to have this text part of 'Main headline', not of >> 'Subheading 2' >> --8<---------------cut here---------------end--------------->8--- > > I don't understand the logic in this.=20 > There is no logic in it. ;) It is simply a hack to prevent the text at the bottom from being folded into "Subheading 2". If anything, it illustrates that terminating sub-entries in this way only has meaning when drafting a paper, not when publishing/exporting it. Presumably one would remove the "Main headline (cont.)" heading when exporting the piece. AFAICT, the OP is chiefly concerned about visibility when drafting -- i.e., he does not want all the text following "Subheading 2" be folded into that subheading. As pointed out by others in the thread, there is no way for html or LaTeX export to display the sort of nested logic the OP requests. Books and articles have the same logic as outlines; sections are only terminated by another section of an equal or higher level. I think it is natural that org-mode (an outlining tool) adheres to this logic, even if it means that terminated, nested subsections (=C3=A0 la xml) are not possible. > I do however, strongly support the idea of terminating headings, but for > other reasons.=20 > > My problem is ending * COMMENT headings.=20 > > This sketch the issue (in terms of LaTeX export): > #+begin_src emacs-org > * COMMENT This is were I put all my export settings, various notes and su= ch > > it could be placed as the very last headline, but that is somewhat > annoying an illogical to me.=20 > Moving it to the end of the outline would indeed solve these problems. But I believe it could still be the first headline. One solution would be to move any text prior to the first section above *all* the headlines (including the COMMENT headline). If you prefer, you could create a "pre-section" headline and remove it, but not its contents, via an export hook. Best, Matt