From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Better way to specify the latex documentclass of an exported file without changing my configuration? Date: Wed, 26 Mar 2014 13:47:02 +0100 Message-ID: References: <87ob0tjorv.fsf@news.tumashu-localhost.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSnFR-0000Q7-8d for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 08:48:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSnFL-0001JA-7o for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 08:48:01 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:51616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSnFL-0001Iu-1L for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 08:47:55 -0400 In-Reply-To: <87ob0tjorv.fsf@news.tumashu-localhost.org> (Feng Shu's message of "Wed, 26 Mar 2014 17:24:36 +0800") 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: emacs-orgmode@gnu.org Feng Shu writes: > Alan Schmitt writes: > >> Hello, >> >> I'm collaborating on a paper with some colleagues, and I convinced them >> to use org-mode. I'm trying to make sure the paper is as self-contained >> as possible (I don't want them to have to change their emacs >> configuration file).To change the documentclass name of the exported > > Maybe you can write a Makefile to change their emacs configure... I don't want to push my luck ;-) >> My questions are: >> - is there a way to do this without an emacs-lisp block? >> - is there a nicer way to make sure that an emacs-lisp block is >> evaluated upon export than ":exports results :results silent"? (If >> I don't put it there, the block is not evaluated.) >> - is there a way to just say the name of the documentclass without all >> the boilerplate code below? In other words, can I say "this is a llncs >> documentclass with the same sectioning as an article"? > > You should defun a classe for llncs.sty before use it. maybe > you can rename llncs.sty to article.sty, and put it to directory which contain > your org file. Yes, this could be a way to do it. The current approach works, I find it a little bit too verbose, though. Thank you for the suggestion, Alan