[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] how putting \begin{document} at the right place to export a spec
From: |
Nick Dokos |
Subject: |
Re: [O] how putting \begin{document} at the right place to export a specific latex class ? |
Date: |
Mon, 11 Jun 2018 15:17:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Joseph Vidal-Rosset <address@hidden> writes:
> 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}
>
I don't think you can do that with org-latex-classes: you can define
the header part (i.e. some of what goes before the \begin{document}_
and you can define how to map headers at different depths to the latex
sectioning structure, but you cannot do precise placement the way that
you are trying to.
There may be a better way now, but in the old days I used to redefine
the org-latex-title-command variable. It gets emitted after the
\begin{document} so you can do something like this
(setq org-latex-title-command "\\foo\\maketitle")
to insert additional stuff.
--
Nick
"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler
Re: [O] how putting \begin{document} at the right place to export a specific latex class ?,
Nick Dokos <=
Re: [O] how putting \begin{document} at the right place to export a specific latex class ?, Tim Cross, 2018/06/11