emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mark Elston <m_elston@comcast.net>
To: org-mode emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Selective Export Question
Date: Mon, 21 Dec 2009 22:24:42 -0800	[thread overview]
Message-ID: <4B30662A.4010302@comcast.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 2726 bytes --]

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

[-- Attachment #2: test.tex --]
[-- Type: application/x-tex, Size: 1377 bytes --]

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

             reply	other threads:[~2009-12-22  6:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-22  6:24 Mark Elston [this message]
2009-12-24 18:43 ` Selective Export Question Mark Elston
2009-12-24 19:10   ` Thomas S. Dye
2010-01-03 13:20 ` Carsten Dominik
2010-01-03 16:15   ` Mark Elston
2010-01-03 17:52     ` Carsten Dominik

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=4B30662A.4010302@comcast.net \
    --to=m_elston@comcast.net \
    --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).