From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: latex export settings in init files Date: Mon, 28 Mar 2011 11:09:24 -0400 Message-ID: <31255.1301324964@alphaville.dokosmarshall.org> References: <87ipv3lac1.fsf@ucl.ac.uk> <8039m7jqrd.fsf@somewhere.org> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=37697 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4E4e-0004my-SP for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 11:09:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4E4b-0005hD-Mn for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 11:09:42 -0400 Received: from vms173019pub.verizon.net ([206.46.173.19]:35075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4E4b-0005h2-Ag for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 11:09:41 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LIR00GDLWROCU20@vms173019.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 10:09:30 -0500 (CDT) In-reply-to: Message from =?us-ascii?Q?=3D=3Futf-8=3FQ=3FS=3DC3=3DA9bastie?= =?us-ascii?Q?n=5FVauban=3F=3D?= of "Mon\, 28 Mar 2011 15\:53\:10 +0200." <8039m7jqrd.fsf@somewhere.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?us-ascii?Q?=3D=3Futf-8=3FQ=3FS=3DC3=3DA9bastien=5FVauban=3F=3D?= Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org S=C3=A9bastien Vauban wrote: > Hi Eric, >=20 > Eric S Fraga wrote: > > By the way, for the types of customisation you are doing above (obvious= ly, I > > don't know what you have omitted), I find it easier to define an org > > template that has the appropriate #+LaTeX_CLASS_OPTIONS and #+LATEX_HEA= DER > > lines. >=20 > I guess that you mean it "if the number of custom LaTeX lines is < 5 or 1= 0", > something like that. >=20 > Even in such a case, I would opt the OP for his own document class (or st= yle > file), so that every custom is only made once, in one place. And, would he > recompile his Org doc later, he would benefit from all the updated featur= es he > put in his class -- if nothing is contradictorily changed... >=20 > Your argument is maybe about being "easier". True. And false: after all, > what's a class or style file, everything you want except for the first few > lines, and the last one, no? >=20 > (not trying to say the opposite of you=C2=A0;-) but give the OP another "= sound of > clock" -- maybe you think as well at other points I'm missing here?) >=20 It depends on the comfort level of the user with org vs LaTeX as well. If s/he wants to touch LaTeX as little as possible, Eric's solution (combined with an #+INCLUDE file perhaps) is quite general and it is perhaps more versatile: adding a class to org-export-latex-classes buries it in some emacs initialization file; IMO, that's harder to change (and find when you need to change it)[fn:1] but it may be the appropriate way to deal with a more rigid LaTeX class setup that you *always* (for some value of "always") want to follow. BTW, does #+INCLUDE incorporate a path mechanism? That would go some way into making this choice a "really doesn't matter which way you go". =20 Nick Footnotes: [fn:1] But I freely admit that my emacs init setup is rather baroque, thereby making things like that more difficult than they really need to be. I also am somewhat allergic to customize (particularly when the spec is complicated - as it is for org-export-latex-classes: I go cross-eyed when I look at the customize screen for it), so I tend to avoid it in most situations.