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 07:01:57 -0700 Message-ID: References: <87muw1a40g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006cf94b056e5e31ce" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSNOU-0008Ie-6Q for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 10:02:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSNOS-0007qG-Uu for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 10:02:02 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:39310) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSNOS-0007pm-HQ for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 10:02:00 -0400 Received: by mail-wm0-x235.google.com with SMTP id p11-v6so16749633wmc.4 for ; Mon, 11 Jun 2018 07:01:59 -0700 (PDT) In-Reply-To: <87muw1a40g.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 --0000000000006cf94b056e5e31ce Content-Type: text/plain; charset="UTF-8" It looks like that is probably not possible. By your description, everything after \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} belongs in the document, and this variable is for setting the header. \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} \\label{p} should probably go in your org file as the first line. 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 5:42 AM, Joseph Vidal-Rosset < joseph.vidal.rosset@gmail.com> wrote: > Hello, > > Here is my problem: for a specific latex class (xxllp.cls), I have > difficulties to get the \begin{document} at the right place in this > add-to-list: > > (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} > \\LaLPonline{??} \\setcounter{page}{1} > \\thispagestyle{LLPrrobezissn} \\label{p} > \\AuthorTitle{Joseph Vidal-Rosset}{\\uppercase{Title of the paper}}" > ("\\section\{%s\} . \\section*\{%s\}") > ("\\subsection\{%s\} . \\subsection*\{%s\}") > )) > > > For this class, the \begin{document} should be just after > \\pagestyle{myheadings}\\markboth{Author}{Title of the paper} > and just before > \\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn} > \\label{p} > > but because I do not understand clearly the syntax of the function, I > do not succeed and the export does not work correctly. > > Any suggestion? > > -- > Joseph > > --0000000000006cf94b056e5e31ce Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It looks like that is probably not possible.=C2=A0 By your= description, everything after=C2=A0\\pagestyle{myheadings}\\markboth{Author}{Title of the paper} belongs in the = document, and this variable is for setting the header.

=C2=A0\\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrr= obezissn}
\\labe= l{p} should probably go in your org file as the first line.

John

-----------------------------------
Professor Jo= hn Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical Engineerin= g
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803=

On Mon, Jun 11, 2018 at 5:42 AM, Joseph Vida= l-Rosset <joseph.vidal.rosset@gmail.com> wrote:<= br>
Hello,

Here=C2=A0 is my=C2=A0 problem: for=C2=A0 a specific=C2=A0 latex class=C2= =A0 (xxllp.cls), I=C2=A0 have
difficulties=C2=A0 to get=C2=A0 the \begin{document}=C2=A0 at the=C2=A0 rig= ht place=C2=A0 in this
add-to-list:

(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"\\documentclas= s\[oumk,xs]\{xxllp\}
=C2=A0[NO-DEFAULT-PACKAGES]
=C2=A0[NO-PACKAGES]
\\usepackage{amsmath}
\\usepackage{amssymb}
\\usepackage{blabla}
\\usepackage{blablabla}=C2=A0 =C2=A0
\\pagestyle{myheadings}\\markboth{Author}{Title of the paper}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\\LaLPonline{??} \\s= etcounter{page}{1} \\thispagestyle{LLPrrobezissn} \\label{p}
\\AuthorTitle{Joseph Vidal-Rosset}{\\uppercase{Title of the paper}}&qu= ot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\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))


For this class, the \begin{document} should be just after
\\pagestyle{myheadings}\\markboth{Author}{Title of the paper}
and just before
=C2=A0\\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn}=
\\label{p}

but because I do not understand=C2=A0 clearly the syntax of the function, I=
do not succeed and the export does not work correctly.

Any suggestion?

--
Joseph


--0000000000006cf94b056e5e31ce--