From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Malone Subject: Re: latex export settings in init files Date: Mon, 28 Mar 2011 08:32:25 -0400 Message-ID: References: <87ipv3lac1.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec51a8cdece7c8b049f8a2264 Return-path: Received: from [140.186.70.92] (port=59330 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4BoQ-0003BZ-3C for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 08:44:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4BcQ-00080y-Uv for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 08:32:28 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:64199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4BcQ-00080t-QD for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 08:32:26 -0400 Received: by iwg8 with SMTP id 8so3937527iwg.0 for ; Mon, 28 Mar 2011 05:32:25 -0700 (PDT) In-Reply-To: <87ipv3lac1.fsf@ucl.ac.uk> 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: emacs-orgmode@gnu.org --bcaec51a8cdece7c8b049f8a2264 Content-Type: text/plain; charset=ISO-8859-1 Hi Chris, I would try Eric's suggestion of making sure you have all the correct "require" statements in your .emacs file. If that doesn't work, make sure you have a recent version of =org-mode= --- I've run into this problem in the past, even with the appropriate "require"s, but with an old version of =org-mode=. Chris On Mon, Mar 28, 2011 at 8:05 AM, Eric S Fraga wrote: > 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) > > --bcaec51a8cdece7c8b049f8a2264 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Chris,

I would try Eric's suggestion of making sure you have = all the correct "require" statements in your .emacs file.=A0 If t= hat doesn't work, make sure you have a recent version of =3Dorg-mode=3D= --- I've run into this problem in the past, even with the appropriate = "require"s, but with an old version of =3Dorg-mode=3D.

Chris

On Mon, Mar 28, 2011 at 8:05 AM= , Eric S Fraga <e= .fraga@ucl.ac.uk> wrote:
Chris Beard <wcbeard10@wabash.edu> writes:

> Hello,
> I've tried to modify some default latex export settings based on i= nfo from here
> http://www.mail-archive.com/emacs-orgmode@gnu.org/m= sg07645.html
>
> I basically add to the org-mode-hook to do:
> (setq org-export-latex-classes (cons '("myarticle"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0"% BEGIN My Article Defaults
> =A0 \\documentclass[10pt,letterpaper]{article}
>
> =A0 \\usepackage[letterpaper,includeheadfoot,top=3D0.5in,bottom=3D0.5i= n,left=3D0.75in,right=3D0.75in]{geometry};;
> more settings after this...
> =A0 =A0 )
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0org-export-latex-classes))
>
> This works if I evaluate it after I've been exporting to latex, bu= t 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 n= eed to
> load first, but I'm not very familiar with how to do this. Any adv= ice?
>
> 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)


--bcaec51a8cdece7c8b049f8a2264--