From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike McLean Subject: Re: latex header lines vs latex block Date: Wed, 10 Sep 2014 06:23:32 -0400 Message-ID: References: <87tx4hyqyl.fsf@gmail.com> <86tx4h3uax.fsf@somewhere.org> <871trkzvzu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bf10ac0d141de0502b372ad Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRf4F-0005e8-D0 for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 06:24:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRf4A-0000a9-MZ for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 06:24:03 -0400 Received: from sasl.smtp.pobox.com ([208.72.237.25]:57067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRf4A-0000Z9-HC for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 06:23:58 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl0.pobox.com (Postfix) with ESMTP id A46CF35C2F for ; Wed, 10 Sep 2014 06:23:53 -0400 (EDT) Received: from pb-sasl0. (unknown [127.0.0.1]) by pb-sasl0.pobox.com (Postfix) with ESMTP id 9A91635C2B for ; Wed, 10 Sep 2014 06:23:53 -0400 (EDT) Received: from mail-wi0-f172.google.com (unknown [209.85.212.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by pb-sasl0.pobox.com (Postfix) with ESMTPSA id 2552B35C29 for ; Wed, 10 Sep 2014 06:23:53 -0400 (EDT) Received: by mail-wi0-f172.google.com with SMTP id q5so2730334wiv.17 for ; Wed, 10 Sep 2014 03:23:52 -0700 (PDT) In-Reply-To: <871trkzvzu.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thorsten Jolitz Cc: emacs-orgmode --047d7bf10ac0d141de0502b372ad Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Sep 9, 2014 at 10:52 AM, Thorsten Jolitz wrote: > Sebastien Vauban > writes: > > > See > http://lists.gnu.org/archive/html/emacs-orgmode/2014-06/msg00744.html > > for Nicolas' answer on this point: > > > > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > =E2=94=82 I suggest to use existing solutions instead: configure > > =E2=94=82 `org-latex-classes'. > > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > > a related question: is this the right format to create the preamble > string: > > #+BEGIN_SRC emacs-lisp > '(;; Name > "obb-article-full-page" > ;; Preamble > (concat > "\\documentclass{article}\n" > "[DEFAULT-PACKAGES]\n" > "[PACKAGES]\n" > "[EXTRA]\n" > "\\usepackage[cm]{fullpage}\n") > ;; Sectioning Structure > ("\\part{%s}" . "\\part*{%s}") > ("\\chapter{%s}" . "\\chapter*{%s}") ...) > #+END_SRC > > not sure if I need the line-feeds ... > I don't think you do. I build my org-latex-classes with add-to-list, so an example of mine is: (add-to-list 'org-latex-classes '("MikeMcLean" "\\documentclass{MikeMcLean} [DEFAULT-PACKAGES] [PACKAGES] [EXTRA] " ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) The MikeMcLean document class (all of my 3-4 main classes, really) are a moderate wrapper around the memoir class. A document I produce for myself looks different than one that I produce as part of my employment or volunteer effort(s), even though I produce them all from Org. - Sets some class options - Requires some packages I use a lot (minted, e.g.) - Defines some fonts and colors. - Sets page options (footers, chapter headers, sectioning, etc.) - Defines a title page > > -- > cheers, > Thorsten > > > --047d7bf10ac0d141de0502b372ad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= ue, Sep 9, 2014 at 10:52 AM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
Sebastien Vauban <sva-news@mygooglest.com>
writes:

> See http://lists.gnu.org/archive/html/emacs-o= rgmode/2014-06/msg00744.html
> for Nicolas' answer on this point:
>
>=C2=A0 =C2=A0=E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80
>=C2=A0 =C2=A0=E2=94=82 I suggest to use existing solutions instead: con= figure
>=C2=A0 =C2=A0=E2=94=82 `org-latex-classes'.
>=C2=A0 =C2=A0=E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80


a related question: is this the right format to create the preamble<= br> string:

#+BEGIN_SRC emacs-lisp
'(;; Name
=C2=A0 "obb-article-full-page"
=C2=A0 ;; Preamble
=C2=A0 (concat
=C2=A0 =C2=A0"\\documentclass{article}\n"
=C2=A0 =C2=A0"[DEFAULT-PACKAGES]\n"
=C2=A0 =C2=A0"[PACKAGES]\n"
=C2=A0 =C2=A0"[EXTRA]\n"
=C2=A0 =C2=A0"\\usepackage[cm]{fullpage}\n")
=C2=A0 ;; Sectioning Structure
=C2=A0 ("\\part{%s}" . "\\part*{%s}")
=C2=A0 ("\\chapter{%s}" . "\\chapter*{%s}") ...)
#+END_SRC

not sure if I need the line-feeds ...

I= don't think you do. I build my org-latex-classes with add-to-list, so = an example of mine is:

(add-to-list 'org-= latex-classes
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= 9;("MikeMcLean"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0"\\documentclass{MikeMcLean}
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[DEFAULT-PACKAGES]
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[PACKAGES]
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[EXTRA]
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0("\\chapter{%s}" . "\\chapter*{%s}&q= uot;)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(&qu= ot;\\section{%s}" . "\\section*{%s}")
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subsection{%s}" = . "\\subsection*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0("\\subsubsection{%s}" . "\\subsubse= ction*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0("\\paragraph{%s}" . "\\paragraph*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subpa= ragraph{%s}" . "\\subparagraph*{%s}")))

=
The MikeMcLean document class (all of my 3-4 main classes, reall= y) are a moderate wrapper around the memoir class. A document I produce for= myself looks different than one that I produce as part of my employment or= volunteer effort(s), even though I produce them all from Org.
- Sets some class options
- Requires some packages I= use a lot (minted, e.g.)
- Defines some fonts and colors.
- Sets page options (footers, chapter headers, sectioning, etc.)
- Defines a title page



=
=C2=A0

--
cheers,
Thorsten



--047d7bf10ac0d141de0502b372ad--