From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marvin Doyley Subject: Re: Tweaking org-laxtex-export-classes Date: Sat, 23 Oct 2010 13:09:18 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1296035334==" Return-path: Received: from [140.186.70.92] (port=44579 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9hcF-0006Ld-2h for emacs-orgmode@gnu.org; Sat, 23 Oct 2010 13:11:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9hap-0003Ig-KZ for emacs-orgmode@gnu.org; Sat, 23 Oct 2010 13:10:07 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:61393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9hap-0003IA-BI for emacs-orgmode@gnu.org; Sat, 23 Oct 2010 13:09:19 -0400 Received: by fxm2 with SMTP id 2so1737142fxm.0 for ; Sat, 23 Oct 2010 10:09:18 -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: Chris Malone Cc: emacs-orgmode@gnu.org --===============1296035334== Content-Type: multipart/alternative; boundary=0016364c43ecc9ce5604934bd17f --0016364c43ecc9ce5604934bd17f Content-Type: text/plain; charset=ISO-8859-1 Thanks Chris, This worked like a charm. Cheers M On Fri, Oct 22, 2010 at 12:51 PM, Chris Malone wrote: > 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 >> >> > --0016364c43ecc9ce5604934bd17f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Chris,

This worked like a charm.

Cheers
M

On Fri, Oct 22, 2010 at 12:51 PM, Chris Malone <chris.m.malo= ne@gmail.com> wrote:
Hi Marvin,
One hackish work around is to set the title to an empty string

#+TI= TLE:

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

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

HTH,

Chris
On Thu, O= ct 21, 2010 at 9:46 AM, Marvin Doyley <marvinpas@gmail.com> wrote:
=
Dear all,

I am planning to write an art= icle using org - most of my notes are =3D
already 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@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



--0016364c43ecc9ce5604934bd17f-- --===============1296035334== 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 --===============1296035334==--