Feng Shu <tuma...@gmail.com> writes: > Viktor Rosenfeld <listuse...@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!
#+LATEX_ARTICLE_CLASS: ctexart ? #+LATEX_CLASS: article:ctexart ? > >> >> 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 >>> >>> >>> >>> -- >>> --