From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Elston Subject: Selective Export Question Date: Mon, 21 Dec 2009 22:24:42 -0800 Message-ID: <4B30662A.4010302@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090108080705070001020704" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMyAy-0000uw-6s for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 01:24:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMyAx-0000uk-Jp for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 01:24:55 -0500 Received: from [199.232.76.173] (port=38373 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMyAx-0000uf-Bt for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 01:24:55 -0500 Received: from qmta05.emeryville.ca.mail.comcast.net ([76.96.30.48]:41475) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NMyAw-0000xV-VT for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 01:24:55 -0500 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: org-mode emacs-orgmode This is a multi-part message in MIME format. --------------090108080705070001020704 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I have been making progress on my use of org-mode to manage both my teaching notes and handouts in a single document. However, there is something I still have not been able to make happen. That is selective exporting of text *without* exporting a headline along with it. Here is a sample of what I would like. In this example I have sections with "common" text (should be in both teaching notes and handouts) and sections that are specific to each individual output format. What I have below is set up to export the notes. What I would like is to have the text (only) of the non-excluded sections and not the headlines. -------------------------------------------------------------- #+TITLE: Test #+LaTeX_CLASS: ClassNotes #+OPTIONS: toc:nil H:8 tags:nil #+EXPORT_EXCLUDE_TAGS: handouts * Headline 1 some text ** Headline 1-1 even more text * Headline 2 some more text ** Headline 2-1 Common text 1. Should be followed by handout or notes text. ***** should be handouts only :handouts: handout text ***** should be notes only :notes: notes text ** Headline 2-2 Common text 2. Should be followed by handout or notes text. ***** :handouts: handout text again ***** :notes: notes text again -------------------------------------------------------------- The relevant material from my org-export-latex-classes is: ("ClassNotes" "\\documentclass[letter,twoside,openright]{memoir} ... ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("%% Level 5" . "%% Level 5") ("%% Level 6" . "%% Level 6") ("%% Level 7" . "%% Level 7") ("%% Level 8" . "%% Level 8")) ... I was hoping to allow all levels of heading to be exported but only write comments for the levels below level 4. It didn't work out that way. With the above I don't get *any* of the :notes: or :handouts: sections written out. However, if I include empty level three and four headlines (the stars followed by a mandatory space) I get the :notes: and :handouts: sections just fine. Except now I also get empty \subsection{} and \subsubsection{} blocks in my latex output. I have attached the resulting .tex file with comments pointing out the extra heading lines I would like to *not* see... The net result is a lot of blank space in the resulting .pdf file between the 'common' text and the note- or handout-specific text. This is *definitely* not what I had in mind. Is there any way of working around this or correcting this behavior? Mark --------------090108080705070001020704 Content-Type: application/x-tex; name="test.tex" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="test.tex" JSBDcmVhdGVkIDIwMDktMTItMjEgTW9uIDIyOjA3DQpcZG9jdW1lbnRjbGFzc1tsZXR0ZXIs dHdvc2lkZSxvcGVucmlnaHRde21lbW9pcn0NClx1c2VwYWNrYWdle3ZhcmlvcmVmfQ0KXHVz ZXBhY2thZ2V7c2hvcnR0b2N9DQpcdXNlcGFja2FnZXtjb2xvcn0NClx1c2VwYWNrYWdle2dy YXBoaWN4fQ0KXHVzZXBhY2thZ2V7YmlibGVzdHVkeX0NClx1c2VwYWNrYWdlW3BvbHV0b25p a29ncmVlayxlbmdsaXNoXXtiYW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VhZGluZyBsaW5lDQolIExldmVsIDUNClxsYWJlbHtzZWMtMi4xLjEuMS4xfQ0KDQogICAg ICBub3RlcyB0ZXh0DQpcc2VjdGlvbip7SGVhZGxpbmUgMi0yfQ0KXGxhYmVse3NlYy0yLjJ9 DQoNCiAgIENvbW1vbiB0ZXh0IDIuICBTaG91bGQgYmUgZm9sbG93ZWQgYnkgaGFuZG91dCBv ciBub3RlcyB0ZXh0Lg0KXHN1YnNlY3Rpb24qe30gICAgICAgICAgICAlJSBFeHRyYSBoZWFk aW5nIGxpbmUNClxzdWJzdWJzZWN0aW9uKnt9ICAgICAgICAgJSUgRXh0cmEgaGVhZGluZyBs aW5lDQolIExldmVsIDUNClxsYWJlbHtzZWMtMi4yLjEuMS4xfQ0KDQogICAgICBub3RlcyB0 ZXh0IGFnYWluDQoNClxlbmR7ZG9jdW1lbnR9 --------------090108080705070001020704 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --------------090108080705070001020704--