From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viktor Rosenfeld Subject: Re: [suggest] We should import latex template system Date: Wed, 12 Jun 2013 08:46:43 +0200 Message-ID: <20130612064643.GA73033@kenny.local> References: <87zjuwb3w7.fsf@news.tumashu-localhost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmepX-0000z7-Ct for emacs-orgmode@gnu.org; Wed, 12 Jun 2013 02:46:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmepW-0003XZ-EY for emacs-orgmode@gnu.org; Wed, 12 Jun 2013 02:46:51 -0400 Received: from mail-bk0-x22e.google.com ([2a00:1450:4008:c01::22e]:49795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmepW-0003XM-7t for emacs-orgmode@gnu.org; Wed, 12 Jun 2013 02:46:50 -0400 Received: by mail-bk0-f46.google.com with SMTP id na10so4347251bkb.33 for ; Tue, 11 Jun 2013 23:46:49 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87zjuwb3w7.fsf@news.tumashu-localhost.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Feng Shu Cc: orgmode 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. 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 > > > > -- >