From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
Cc: emacs-orgmode list <emacs-orgmode@gnu.org>
Subject: Re: how putting \begin{document} at the right place to export a specific latex class ?
Date: Mon, 11 Jun 2018 09:51:30 -0700 [thread overview]
Message-ID: <CAJ51ETpSn=kmYjfwXO7nyGy=Y7V=-Bcigwe3HEQjKvex4HM6cA@mail.gmail.com> (raw)
In-Reply-To: <878t7lwddm.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2181 bytes --]
I mean to put this in your init file:
(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}
"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
And then in your org file:
#+latex_class: xxllp
#+options: toc:nil
#+BEGIN_EXPORT latex
\\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn}
\\label{p}
\AuthorTitle{Joseph Vidal-Rosset}{\uppercase{Title of the paper}}
#+END_EXPORT
plus rest of your document. That exports as:
% Created 2018-06-11 Mon 09:50
% Intended LaTeX compiler: pdflatex
\documentclass[oumk,xs]{xxllp}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{blabla}
\usepackage{blablabla}
\pagestyle{myheadings}\markboth{Author}{Title of the paper}
\author{John Kitchin}
\date{\today}
\title{}
\begin{document}
\\LaLPonline{??} \\setcounter{page}{1} \\thispagestyle{LLPrrobezissn}
\\label{p}
\AuthorTitle{Joseph Vidal-Rosset}{\uppercase{Title of the paper}}
the rest of your document...
\end{document}
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 8:29 AM, Joseph Vidal-Rosset <
joseph.vidal.rosset@gmail.com> wrote:
> Le lun. 11 juin 2018 à 07:23:54 , John Kitchin <jkitchin@andrew.cmu.edu>
> a envoyé ce message:
> > Why can’t you just put that last one in your org file?
>
> Dear John,
>
> I confess that I do not understand the solution you suggest. Do you
> suggest to me to put all the headers of this class in an org file?
> Sorry to be so slow.
>
> Best wishes,
>
> --
> Joseph
>
[-- Attachment #2: Type: text/html, Size: 3821 bytes --]
next prev parent reply other threads:[~2018-06-11 16:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-11 12:42 how putting \begin{document} at the right place to export a specific latex class ? Joseph Vidal-Rosset
2018-06-11 14:01 ` John Kitchin
2018-06-11 14:16 ` Joseph Vidal-Rosset
2018-06-11 14:23 ` John Kitchin
2018-06-11 15:29 ` Joseph Vidal-Rosset
2018-06-11 16:51 ` John Kitchin [this message]
2018-06-11 19:17 ` Nick Dokos
2018-06-11 22:58 ` Tim Cross
2018-06-12 7:08 ` Joseph Vidal-Rosset
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ51ETpSn=kmYjfwXO7nyGy=Y7V=-Bcigwe3HEQjKvex4HM6cA@mail.gmail.com' \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
--cc=joseph.vidal.rosset@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.