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:23:54 -0700 Message-ID: References: <87muw1a40g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008d8023056e5e80a0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSNjt-0003FP-4D for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 10:24:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSNjr-0000fd-PK for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 10:24:09 -0400 Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]:45181) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSNjr-0000fG-Dk for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 10:24:07 -0400 Received: by mail-wr0-x232.google.com with SMTP id o12-v6so20603044wrm.12 for ; Mon, 11 Jun 2018 07:24: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: Joseph Vidal-Rosset Cc: emacs-orgmode list --0000000000008d8023056e5e80a0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Why can=E2=80=99t you just put that last one in your org file? On Mon, Jun 11, 2018 at 7:17 AM Joseph Vidal-Rosset < joseph.vidal.rosset@gmail.com> wrote: > Thank you John. Therefore I am afraid I will have to give up the export o= f > 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 hea= der. >> >> \\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 hav= e >>> difficulties to get the \begin{document} at the right place in thi= s >>> 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 >>> >>> >> > -- 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 --0000000000008d8023056e5e80a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Why can=E2=80=99t you just put that last one in your= org file?

On Mon, Jun = 11, 2018 at 7:17 AM Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> wrote:
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 <jkitch= in@andrew.cmu.edu>:
It= looks like that is probably not possible.=C2=A0 By your description, every= thing after=C2=A0\\pagestyle{my= headings}\\markboth{Auth= or}{Title of the paper} belongs in the document, and this variable is for s= etting the header.

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

John

-----------------------------------
Professor John K= itchin=C2=A0
Doherty Hall A207F
Department of Chemical EngineeringCarnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Mon, Jun 11, 2018 at 5:42 AM, Joseph Vida= l-Rosset <joseph.vidal.rosset@gmail.com> wrote:
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}}" <= br> =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



--
J= ohn

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