From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: how putting \begin{document} at the right place to export a specific latex class ? Date: Mon, 11 Jun 2018 16:16:45 +0200 Message-ID: References: <87muw1a40g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000829604056e5e6790" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSNdA-0000MI-B8 for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 10:17:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSNd5-0006HI-Py for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 10:17:12 -0400 Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]:34791) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSNd5-0006Gz-EG for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 10:17:07 -0400 Received: by mail-lf0-x232.google.com with SMTP id o9-v6so30814204lfk.1 for ; Mon, 11 Jun 2018 07:17:07 -0700 (PDT) In-Reply-To: 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: John Kitchin Cc: emacs-orgmode list --000000000000829604056e5e6790 Content-Type: text/plain; charset="UTF-8" Thank you John. Therefore I am afraid I will have to give up the export of this latex class. Too bad. Jo. 2018-06-11 16:01 GMT+02:00 John Kitchin : > 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 >> >> > --000000000000829604056e5e6790 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you John. Therefore I am afraid I wi= ll have to give up the export of this latex class. Too bad.

Jo.

2018-06-11 16:01 GMT+02:00 John Kitchin = <jkitchin@a= ndrew.cmu.edu>:
It looks like that is probably not possible.=C2=A0 By your descriptio= n, everything after=C2=A0\\page= style{myheadings}\\= markboth{Author}{Title of the paper} belongs in the document, and this vari= able is for setting the header.

= =C2=A0\\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezis= sn}
\\lab= el{p} should probably go in your org file as the first line.

John

----------------------------= -------
Professor John Kitchin=C2=A0
Doherty Hall A207F
Depar= tment of Chemical Engineering
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> wr= ote:
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



--000000000000829604056e5e6790--