Hi Matt,

Sorry for the non-plain text...

I added your suggestion to my .emacs but upon export it removed the
entire block, which is odd based on the source code for the
function...

Anyway, I found another solution that now seems obvious: the
#+begin...#+end blocks themselves can be folded by either hitting TAB
on the #+begin line, or by setting the =org-hide-block-startup=
variable.

Chris

On Wed, May 4, 2011 at 12:18 PM, Matt Lundin <m...@imapmail.org> wrote:
>
> Chris Malone <chris.m.mal...@gmail.com> writes:
>
> (Note: When using gmail, please adjust the settings to send your
> messages as plain text only instead of multipart/alternative.)
>
> > When I include the actual contents of my abstract, this preliminary material
> > section (the #+begin ... #+end block) is rather large.  I'd like to be able
> > to put this material into a headline so that I could collapse it - but I
> > don't want this headline exported as content of the main document.
> >
> > In other words, is there a property or tag that I can add to a headline that
> > causes LaTeX export to ignore the fact that it is a headline (i.e. \chapter,
> > \section, \subsection, etc.), but still export its contents?  Something
> > like:
>
> You could add a hook to remove headlines with a "prelim" tag:
>
> --8<---------------cut here---------------start------------->8---
> (defun my-org-export-remove-tagged-headlines (tag)
>  (save-excursion
>    (goto-char (point-min))
>    (while (re-search-forward (concat ":" tag ":") nil t)
>      (delete-region (point-at-bol) (point-at-eol)))))
>
> (add-hook 'org-export-preprocess-hook (lambda () 
> (my-org-export-remove-tagged-headlines "prelim")))
> --8<---------------cut here---------------end--------------->8---
>
> Best,
> Matt

Reply via email to