From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Org equivalent to \chapter* Date: Wed, 06 Aug 2014 19:38:10 +0200 Message-ID: <87wqalzfgd.fsf@gmx.us> References: <53E172B1.5020101@gmail.com> <87oavyj7sd.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]:49985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF5AP-0007j0-6W for emacs-orgmode@gnu.org; Wed, 06 Aug 2014 13:38:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XF5AJ-0007Rt-Ju for emacs-orgmode@gnu.org; Wed, 06 Aug 2014 13:38:25 -0400 Received: from mout.gmx.net ([212.227.17.20]:56595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF5AJ-0007Rc-A1 for emacs-orgmode@gnu.org; Wed, 06 Aug 2014 13:38:19 -0400 In-Reply-To: (Thomas S. Dye's message of "Wed, 06 Aug 2014 07:15:25 -1000") 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: tsd@tsdye.com Cc: emacs-orgmode@gnu.org Thomas, tsd@tsdye.com (Thomas S. Dye) writes: > Rasmus writes: > >> Alan L Tyree writes: >> >>> I'm sure this has been asked before, but I can't seem to find it. Is >>> there an org markup that produces a starred latex heading? >>> >>> In a book, for example, I want the Preface to be at chapter level, but >>> not included in the numbering. Same for HTML export, of course. >> >> You would probably need some sort of filter for this. Most certainly >> you will be able to find implementations on this list. >> >> Here's something from my init file that works with LaTeX. Other >> formats such as txt and html are harder since Org generates section >> numbers and the TOC. > > Thanks for sharing this. It will be useful for book authors.=20 > > Do you think it is possible to write a general headline filter that > takes care of all the various LaTeX possibilities?=20=20 I don't like *one* filter to rule them all. Of course, if it's a collection of other function calls that is OK. As your recent question showed execution order may matter, (e.g. with :ignoreheading:clearpage:). Of course it's possible to bundle a couple of filters generally useful for ox-latex and provide a "consistent" interface. Alternatively, one could make a ox-latex+.el that provides a derived class with extra options. That's may be more work, and may be harder to hack. In fact Aaron started ox-extra.el, with the intention of providing "semi-official" extensions but Worg may be a better means of communication. > Right now I=CA=BBm using tags to ignoreheading, clearpage, and newpage. > In addition to your nonum filter, Eric S. has a filter that gets rid > of a heading and promotes the content, which I haven=CA=BBt had occasion > to use, but also has its own tag. Yes, Eric has cool tree-based filter(s). I want to study them more carefully. Quite possibly, it's easier to provide elegant filters with trees. For instance, you have direct access to the element representation. In my filters I "hack" my way to this using text-properties. > From the LaTeX author=CA=BBs point of view, it would be great to have a s= et > of tags (and options) that "just work." Would you want this as a derived class or filters? Perhaps it's easier to have a derived class with an alternative headline function. . . > Do you (and others) think the "tag and filter" approach can achieve > this? Or, are there too many moving parts to make it feasible? Yes. The ox-koma-script interface is basically controlled via tags. I think it's nice. =E2=80=94Rasmus --=20 If you can mix business and politics wonderful things can happen!