From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Malone Subject: Re: Tweaking org-laxtex-export-classes Date: Fri, 22 Oct 2010 12:51:44 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0477114125==" Return-path: Received: from [140.186.70.92] (port=59774 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9KqJ-000629-DQ for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 12:51:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9KqI-00024A-0d for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 12:51:47 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:35847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9KqH-000241-TO for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 12:51:45 -0400 Received: by gyg13 with SMTP id 13so963610gyg.0 for ; Fri, 22 Oct 2010 09:51:45 -0700 (PDT) In-Reply-To: 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: Marvin Doyley Cc: emacs-orgmode@gnu.org --===============0477114125== Content-Type: multipart/alternative; boundary=20cf30434a5c250a440493377570 --20cf30434a5c250a440493377570 Content-Type: text/plain; charset=ISO-8859-1 Hi Marvin, One hackish work around is to set the title to an empty string #+TITLE: This sets \title{} in the preamble and omits the \maketitle command. Then after including all of your #+LATEX_HEADER's you could add the following LaTeX commands where you want to produce the title: #+LATEX: \title{foo} #+LATEX: \maketitle HTH, Chris On Thu, Oct 21, 2010 at 9:46 AM, Marvin Doyley wrote: > Dear all, > > I am planning to write an article using org - most of my notes are = > already in org so this seems logical. The journal that I plan to submit = > to provides latex class so it just a matter of customizing = > org-export-latex-classes, which I have done=20 > > (add-to-list 'org-export-latex-classes=20 > '("pmb" > "\\documentclass[t]{iopart} > \\usepackage{graphicx} > \\usepackage{graphics} > \\usepackage{amssymb,amsmath} > \\usepackage{calc} > \\usepackage{harvard} > \\usepackage{apacite} > \\bibliographystyle{apacite} > [NO-DEFAULT-PACKAGES] > \\renewcommand{\\baselinestretch}{1.5}" > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}") > ("\\paragraph{%s}" . "\\paragraph*{%s}") > ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) > > > Although this work almost perfect, I can figure out how get the exporter = > to to produce (i.e., I want the title, author, address, and \maketilte = > after the begin{document} rather than before > > \HEADERS > \begin{document} > \title{BLAH BLAH BLAY} > \author{ME} > \address{WWW} > > \begin{abstract} > Testing one to > \end{abstract} > \maketitle > > \section{Introduction} > \section{Materials and methods} > \section{Results} > \section{Discussion} > > \end{document} > > My short term fix is to simple cut and paste, but it would be nice to = > know if there is more elegant solution > > > Best Wishes, > > M > > _______________________________________________ > 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 > > --20cf30434a5c250a440493377570 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Marvin,

One hackish work around is to set the title to an empty s= tring

#+TITLE:

This sets \title{} in the preamble and omits t= he \maketitle command.=A0 Then after including all of your #+LATEX_HEADER&#= 39;s you could add the following LaTeX commands where you want to produce t= he title:

#+LATEX: \title{foo}
#+LATEX: \maketitle

HTH,

Chris
On Thu, Oct 21, 2010 at 9:46 AM, Marvin Doy= ley <marvinpas@= gmail.com> wrote:
Dear all,

= I am planning to write an article using org - most of my notes are =3D
a= lready in org so this seems logical.=A0 The journal that I plan to submit = =3D
to=A0 provides latex=A0 class so it just a matter of customizing=A0 =3D
org-export-latex-classes, which I have done=3D20

(add-to-list 'o= rg-export-latex-classes=3D20
=A0'("pmb"
"\\documen= tclass[t]{iopart}
\\usepackage{graphicx}
\\usepackage{graphics}
\\= usepackage{amssymb,amsmath}
\\usepackage{calc}
\\usepackage{harvard}
\\usepackage{apacite}
\\b= ibliographystyle{apacite}
[NO-DEFAULT-PACKAGES]
\\renewcommand{\\base= linestretch}{1.5}"
=A0=A0 ("\\section{%s}" . "\\sect= ion*{%s}")
=A0=A0 ("\\subsection{%s}" . "\\subsection*{%s}")
= =A0=A0 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")=
=A0=A0 ("\\paragraph{%s}" . "\\paragraph*{%s}")
= =A0=A0 ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))=


Although this work almost perfect, I can figure out how get the exp= orter =3D
to=A0 to produce (i.e., I want the title, author, address,=A0 = and \maketilte =3D
after the begin{document} rather than before

\= HEADERS
\begin{document}
\title{BLAH BLAH BLAY}
\author{ME}
\address{WWW}<= br>
\begin{abstract}
Testing one to
\end{abstract}
\maketitle
\section{Introduction}
\section{Materials and methods}
\section= {Results}
\section{Discussion}

\end{document}

My short term fix=A0 is t= o simple cut and paste, but it would be nice to =3D
know if there is mor= e elegant solution


Best Wishes,

M=

_______________________________________________
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


--20cf30434a5c250a440493377570-- --===============0477114125== 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 --===============0477114125==--