From: Dan Davison <davison@stats.ox.ac.uk>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Fold "preamble/options" under first header
Date: Thu, 30 Sep 2010 09:54:35 +0100 [thread overview]
Message-ID: <87iq1nr4qc.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <AANLkTi=Ji41h5+oGLSivNVZF06wQE5ZraV5LFBRzOXF6@mail.gmail.com> (John Hendy's message of "Wed, 29 Sep 2010 17:19:14 -0500")
John Hendy <jw.hendy@gmail.com> writes:
> Hi,
>
>
> Is it possible to "fold" the preamble (#+latex_header, #+options, etc.)
> under a first header? Mine get rather long, especially for Beamer documents.
>
> I just attempted it and it appears to work, but I wanted to know if anyone
> else has tried this and succeeded or if there are any things to watch out
> for.
Hi John,
I do this rotutinely without problems. I put all my #+ lines under a
heading named something like "Org config" and tagged with :noexport:. I
put it at the end of the file, where it is out of the way.
In fact I will stick my neck out and suggest that that should be the
norm for Worg files; in my opinion it is very ugly to start off a file
with a mass of technical configuration lines starting #+. The title,
author and date should be there; not most of the other stuff. Org is
about focusing on content.
However,
>
> Currently I have:
>
> -------
> * Preamble :noexport:
> #+latex_class: beamer
> #+author: John Hendy
> #+date: \today
> #+startup: beamer
> #+options: toc:nil latex:t tex:t
> #+latex_class_options: [presentation]
> #+beamer_frame_level: 2
> #+beamer_header_extra: \usetheme{default}
>
> #+latex_header: \usepackage[usenames,dvipsnames]{xcolor}
> #+latex_header: \usepackage{tikz,ifthen}
> #+latex_header: \usetikzlibrary{decorations,arrows,automata,positioning}
>
> #+latex_header: \usepackage{setspace}
> #+latex_header: \setstretch{1.3}
>
> #+latex_header: \usepackage{MinionPro}
> #+latex_header: \renewcommand{\sfdefault{Myriad-LF}}
>
> \AtBeginSection[]{
> \begin{frame}<beamer>
> \frametitle{Outline}
> \tableofcontents[currentsection]
> \end{frame}}
I don't think that bit of LaTeX code is going to make it into your
exported output, because the heading is tagged :noexport:. The #+ lines
are fine though.
Dan
>
> #+title: Title
>
> * First actual heading...
> ----------
>
> The output looks fine... are there any foreseeable issues with this?
>
>
> John
> _______________________________________________
> 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
prev parent reply other threads:[~2010-09-30 8:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-29 22:19 Fold "preamble/options" under first header John Hendy
2010-09-30 4:45 ` Juan
2010-09-30 8:53 ` Dan Davison
2010-09-30 13:18 ` John Hendy
2010-09-30 8:53 ` Dan Davison
2010-09-30 8:54 ` Dan Davison
2010-09-30 8:54 ` Dan Davison [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iq1nr4qc.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=jw.hendy@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.