From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: latex export settings in init files Date: Mon, 28 Mar 2011 13:05:02 +0100 Message-ID: <87ipv3lac1.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=54313 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4BC4-0006ge-Dq for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 08:05:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4BC3-0000ZE-59 for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 08:05:12 -0400 Received: from vscane-a2.ucl.ac.uk ([144.82.108.42]:64609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4BC3-0000YV-10 for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 08:05:11 -0400 In-Reply-To: (Chris Beard's message of "Mon, 28 Mar 2011 20:55:42 +0900") 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: Chris Beard Cc: emacs-orgmode@gnu.org Chris Beard writes: > Hello, > I've tried to modify some default latex export settings based on info from here > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg07645.html > > I basically add to the org-mode-hook to do: > (setq org-export-latex-classes (cons '("myarticle" > "% BEGIN My Article Defaults > \\documentclass[10pt,letterpaper]{article} > > \\usepackage[letterpaper,includeheadfoot,top=0.5in,bottom=0.5in,left=0.75in,right=0.75in]{geometry};; > more settings after this... > ) > org-export-latex-classes)) > > This works if I evaluate it after I've been exporting to latex, but I > get an error whenever I start up emacs: > > setq: Symbol's value as variable is void: org-export-latex-classes > > I'm guessing there's some org-mode latex-export thing that I need to > load first, but I'm not very familiar with how to do this. Any advice? > > Thank you > Chris I have: --8<---------------cut here---------------start------------->8--- (require 'org-install) (require 'org-exp) (require 'org-atom) (require 'org-exp-bibtex) (require 'org-latex) --8<---------------cut here---------------end--------------->8--- before any customisations. By the way, for the types of customisation you are doing above (obviously, 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_HEADER lines. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.115.g00134.dirty)