From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Fold "preamble/options" under first header Date: Thu, 30 Sep 2010 08:18:09 -0500 Message-ID: References: <87ocbfr4s7.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1469095204==" Return-path: Received: from [140.186.70.92] (port=40995 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1J1Z-000689-08 for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 09:18:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P1J1X-0005Tn-1s for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 09:18:12 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:43273) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1J1W-0005TW-Pd for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 09:18:11 -0400 Received: by bwz10 with SMTP id 10so1829517bwz.0 for ; Thu, 30 Sep 2010 06:18:09 -0700 (PDT) In-Reply-To: <87ocbfr4s7.fsf@stats.ox.ac.uk> 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: Dan Davison Cc: emacs-orgmode --===============1469095204== Content-Type: multipart/alternative; boundary=0016e6dd8bf2cadf71049179e809 --0016e6dd8bf2cadf71049179e809 Content-Type: text/plain; charset=ISO-8859-1 Thanks Dan and Juan. So far everything has seemed to work, though a few odds and ends occurred -- I'm going to try moving to the end of the file and see if that helps. I think I had to remove the headline, C-c C-c to get a modified option to "take" and then could re-add the headline. I might be wrong about needing to do that. I'll fiddle some more. Thanks for the #+setupfile tip! John On Thu, Sep 30, 2010 at 3:53 AM, Dan Davison wrote: > John Hendy 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} > > \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 > --0016e6dd8bf2cadf71049179e809 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Dan and Juan.


So far everything ha= s seemed to work, though a few odds and ends occurred -- I'm going to t= ry moving to the end of the file and see if that helps. I think I had to re= move the headline, C-c C-c to get a modified option to "take" and= then could re-add the headline. I might be wrong about needing to do that.= I'll fiddle some more. Thanks for the #+setupfile tip!

John

On Thu, Sep 30, = 2010 at 3:53 AM, Dan Davison <davison@stats.ox.ac.uk> wrote:
John Hendy <jw.h= endy@gmail.com> writes:

> Hi,
>
>
> Is it possible to "fold" the preamble (#+latex_header, #+opt= ions, etc.)
> under a first header? Mine get rather long, especially for Beamer docu= ments.
>
> I just attempted it and it appears to work, but I wanted to know if an= yone
> 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 :noexpo= rt:. 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 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: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,positionin= g}
>
> #+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 you= r
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

--0016e6dd8bf2cadf71049179e809-- --===============1469095204== 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 --===============1469095204==--