emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [suggest] We should import latex template system


From: Feng Shu
Subject: Re: [O] [suggest] We should import latex template system
Date: Wed, 12 Jun 2013 23:11:36 +0800
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.2 (gnu/linux)

>
> (eval-after-load 'ox-latex
>   '(add-to-list 'org-latex-classes
>       '("myclass" "\\documentclass{article}
> [NO-DEFAULT-PACKAGES]
> [NO-PACKAGES]
> [EXTRA]
> \\usepackage{mychinesestylefile}"
>       ("\\section{%s}" . "\\section*{%s}")
>       ("\\subsection{%s}" . "\\subsection*{%s}")
>       ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>       ("\\paragraph{%s}" . "\\paragraph*{%s}")
>       ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
>
> And then in any given document:
>
> #+LaTeX_CLASS: myclass

At the moment, I am using the similar solution!  

If you use this way,  org-mode fragement previewing  may be broken if
you setting \pagestyle{fancy}. 


>
> If I need to layer another project-specific style file on top of that, I
> add a second line in the header:
>
> #+LaTeX_HEADER: \usepackage{someparticularpackage}
>
> Any document that might require Chinese starts as a "myclass", and then
> goes from there. I set this up a year ago, and haven't needed to mess
> with it since.

There are many, the first one is "ctex", which may be the most popular
latex solution of  chinese users.

All the university latex templates in China seem to be writen as
"class", instead of "style".

and nearly all  of them are derive from  class "article" or "book"

It is the reason that I want this feature:

#+LaTeX_CLASS: article:myclass

It will use default "article" template, and replace class name to myclass!

>
> Hope that helps,
> Eric

-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]