From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: how putting \begin{document} at the right place to export a specific latex class ? Date: Mon, 11 Jun 2018 09:51:30 -0700 Message-ID: References: <87muw1a40g.fsf@gmail.com> <878t7lwddm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c58896056e608fc8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSQ2Y-0008Gn-It for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 12:51:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSQ2X-0006RF-EY for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 12:51:34 -0400 Received: from mail-wr0-x233.google.com ([2a00:1450:400c:c0c::233]:37999) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSQ2X-0006QR-2T for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 12:51:33 -0400 Received: by mail-wr0-x233.google.com with SMTP id e18-v6so12886734wrs.5 for ; Mon, 11 Jun 2018 09:51:32 -0700 (PDT) In-Reply-To: <878t7lwddm.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" To: Joseph Vidal-Rosset Cc: emacs-orgmode list --000000000000c58896056e608fc8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I mean to put this in your init file: (add-to-list 'org-latex-classes '("xxllp" "\\documentclass[oumk,xs]{xxllp} [NO-DEFAULT-PACKAGES] [NO-PACKAGES] \\usepackage{amsmath} \\usepackage{amssymb} \\usepackage{blabla} \\usepackage{blablabla} \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} " ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) And then in your org file: #+latex_class: xxllp #+options: toc:nil #+BEGIN_EXPORT latex \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} \\label{p} \AuthorTitle{Joseph Vidal-Rosset}{\uppercase{Title of the paper}} #+END_EXPORT plus rest of your document. That exports as: % Created 2018-06-11 Mon 09:50 % Intended LaTeX compiler: pdflatex \documentclass[oumk,xs]{xxllp} \usepackage{amsmath} \usepackage{amssymb} \usepackage{blabla} \usepackage{blablabla} \pagestyle{myheadings}\markboth{Author}{Title of the paper} \author{John Kitchin} \date{\today} \title{} \begin{document} \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} \\label{p} \AuthorTitle{Joseph Vidal-Rosset}{\uppercase{Title of the paper}} the rest of your document... \end{document} John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Mon, Jun 11, 2018 at 8:29 AM, Joseph Vidal-Rosset < joseph.vidal.rosset@gmail.com> wrote: > Le lun. 11 juin 2018 =C3=A0 07:23:54 , John Kitchin > a envoy=C3=A9 ce message: > > Why can=E2=80=99t you just put that last one in your org file? > > Dear John, > > I confess that I do not understand the solution you suggest. Do you > suggest to me to put all the headers of this class in an org file? > Sorry to be so slow. > > Best wishes, > > -- > Joseph > --000000000000c58896056e608fc8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I mean to put this in your init file:

<= div>(add-to-list 'org-latex-classes
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0'("xxllp"
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"\\documentclass[oumk,xs]{xxllp}=
=C2=A0[NO-DEFAULT-PACKAGES]
=C2=A0[NO-PACKAGES]
<= div>\\usepackage{amsmath}
\\usepackage{amssymb}
\\usepa= ckage{blabla}
\\usepackage{blablabla}
\\pagestyle{myhea= dings}\\markboth{Author}{Title of the paper}
"
=C2=A0 =C2=A0 =C2=A0 =C2=A0("\\se= ction{%s}" . "\\section*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subsection{%s}&quo= t; . "\\subsection*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subsubsection{%s}" . &q= uot;\\subsubsection*{%s}")
= =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\paragraph{%s}" . "\\pa= ragraph*{%s}")
=C2= =A0 =C2=A0 =C2=A0 =C2=A0("\\subparagraph{%s}" . "\\subparagr= aph*{%s}")))


And then in= your org file:

#+latex_class: xxllp
#+options: toc:nil

#+BEGIN_EXPORT latex
\\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} \\l= abel{p}
\AuthorTitle{Joseph Vidal-Rosset}{\uppercase{Title of the= paper}}
#+END_EXPORT

plus rest of= your document. That exports as:

% Created 20= 18-06-11 Mon 09:50
% Intended LaTeX compiler: pdflatex
= \documentclass[oumk,xs]{xxllp}
=C2=A0\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{blabla}
\usepackage= {blablabla}
\pagestyle{myheadings}\markboth{Author}{Title of the = paper}
\author{John Kitchin}
\date{\today}
\t= itle{}
\begin{document}

\\LaLPonline{??}= \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} \\label{p}
= \AuthorTitle{Joseph Vidal-Rosset}{\uppercase{Title of the paper}}

the rest of your document...

\end{= document}




John

-----------------------------------
Professor John Kitchin= =C2=A0
Doherty Hall A207F
Department of Chemical Engineering
Carne= gie Mellon University
Pittsburgh, PA 15213
412-268-7803

On Mon, Jun 11, 2018 at 8:29 AM, Joseph Vida= l-Rosset <joseph.vidal.rosset@gmail.com> wrote:<= br>
Le lun. 11 juin 2018 =C3=A0 07:23:54 , Jo= hn Kitchin <jkitchin@andrew.c= mu.edu>
a envoy=C3=A9 ce message:
> Why can=E2=80=99t you just put that last one in your = org file?

Dear John,

I confess=C2=A0 that I=C2=A0 do not=C2=A0 understand the solution=C2=A0 you= suggest.=C2=A0 Do you
suggest to me to put all the headers of this class in an org file?
Sorry to be so slow.

Best wishes,

--
Joseph

--000000000000c58896056e608fc8--