From: Feng Shu <tumashu@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [suggest] We should import latex template system
Date: Wed, 12 Jun 2013 17:32:37 +0800 [thread overview]
Message-ID: <87vc5jbrnu.fsf@news.tumashu-localhost.org> (raw)
In-Reply-To: <20130612064643.GA73033@kenny.local> (Viktor Rosenfeld's message of "Wed, 12 Jun 2013 08:46:43 +0200")
Viktor Rosenfeld <listuser36@gmail.com> writes:
> Hi,
>
> Feng Shu wrote:
>
>> org-mode odt exporter are using 'org-odt-styles-file, which are odt
>> templetes, I think latex exporter should do like this. for example:
>
> I would also like to have a template mechanism for my LaTeX exports.
> However, I think the way to do it in LaTeX is to write custom *.sty
> files which can then be included using #+LATEX_HEADER: \usepackage{...}
> for individual exports or more generally using org-latex-packages-alist.
.sty can be easily resolved.
The problem is that many template should be writen as "class" instead of
"style". If I want to use a custom class , I need to do:
1. (add-to-list 'org-latex-classes ...)
2. (setq org-latex-default-class ...)
I don't know other language users, for Chinese latex user, the first
thing of write a document may change the document class, for example,
change "article" to "ctexart". If I want use org-mode ,I should add all
the "class" common used to the "org-latex-classes", It will be a
nightmare.
In org-latex-class, "article" and "ctexart" elements are very similar, the
only different may be their class names.
I want such result:
1. I don't need customize 'org-latex-classes
2. #+LATEX_CLASS: ctexart can work!
>
> I've been wanting to learn how to do it but I did not find the time yet.
> (Any pointers to good tutorials would be appreciated.)
>
> Cheers,
> Viktor
>
>>
>>
>> org-latex-styles-file or org-latex-templete-file
>>
>>
>> we can include many different language's templates into org, and no need
>> touch the ox-latex.el and the user can write theirs template easily,
>>
>>
>>
>> we can use "locale" to determine which template will be used
>>
>>
>>
>> converting latex fragements can use templates too, like:
>>
>>
>> org-latex-fragment-templete-file
>>
>>
>>
>> --
>>
--
next prev parent reply other threads:[~2013-06-12 9:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-11 23:53 [suggest] We should import latex template system Feng Shu
2013-06-12 6:46 ` Viktor Rosenfeld
2013-06-12 9:32 ` Feng Shu [this message]
2013-06-12 9:57 ` Feng Shu
2013-06-12 13:28 ` Eric Abrahamsen
2013-06-12 15:11 ` Feng Shu
2013-06-12 12:41 ` Nicolas Goaziou
2013-06-12 13:29 ` Feng Shu
2013-06-12 14:38 ` Rasmus
2013-06-13 22:09 ` Marcin Borkowski
2013-06-14 5:21 ` Viktor Rosenfeld
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vc5jbrnu.fsf@news.tumashu-localhost.org \
--to=tumashu@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).