From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: how putting \begin{document} at the right place to export a specific latex class ? Date: Mon, 11 Jun 2018 14:42:23 +0200 Message-ID: <87muw1a40g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSM9U-0003vy-Uk for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 08:42:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSM9U-0007ba-65 for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 08:42:28 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:38356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSM9T-0007aB-Ui for emacs-orgmode@gnu.org; Mon, 11 Jun 2018 08:42:28 -0400 Received: by mail-wr0-x22c.google.com with SMTP id e18-v6so12001624wrs.5 for ; Mon, 11 Jun 2018 05:42:27 -0700 (PDT) Received: from debian ([2a01:e35:2ea9:9d00:d875:ed2:701f:fac2]) by smtp.gmail.com with ESMTPSA id f2-v6sm9896214wre.16.2018.06.11.05.42.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Jun 2018 05:42:24 -0700 (PDT) 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: emacs-orgmode list 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