From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lewis Subject: Problems with LaTeX export Date: Mon, 16 May 2011 12:56:15 +0100 Message-ID: <87zkmmj1uo.wl%richard.lewis@gold.ac.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLwPY-0007Z0-3d for emacs-orgmode@gnu.org; Mon, 16 May 2011 07:56:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QLwPW-0004Ye-Uj for emacs-orgmode@gnu.org; Mon, 16 May 2011 07:56:32 -0400 Received: from sif.gold.ac.uk ([158.223.16.10]:53259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLwPW-0004Y0-M2 for emacs-orgmode@gnu.org; Mon, 16 May 2011 07:56:30 -0400 Received: from [158.223.51.88] (helo=fayrfax.doc.gold.ac.uk.gold.ac.uk) by sif.gold.ac.uk with esmtp id 1QLwPI-0004dV-1c for emacs-orgmode@gnu.org; Mon, 16 May 2011 12:56:16 +0100 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: emacs-orgmode@gnu.org Hi there, Last week I made a customised latex class for generating the LaTeX version of my thesis (as a displacement activity for actually writing said thesis). It all worked fine about last Wednesday, but today it's not working very well at all. Coincidentally (by which I mean not to imply causality) I updated my org-mode git repository this morning. I have an org-export-latex-class defined: (add-to-list 'org-export-latex-classes '("thesis" "\\documentclass[11pt,a4paper]{report} \\usepackage[T1]{fontenc} \\usepackage{fontspec} \\usepackage{graphicx} \\defaultfontfeatures{Mapping=tex-text} \\setromanfont{Gentium} \\setromanfont [BoldFont={Gentium Basic Bold}, ItalicFont={Gentium Basic Italic}]{Gentium Basic} \\setsansfont{Charis SIL} \\setmonofont[Scale=0.8]{DejaVu Sans Mono} \\usepackage{geometry} \\geometry{a4paper, textwidth=6.5in, textheight=10in, marginparsep=7pt, marginparwidth=.6in} \\pagestyle{empty} \\title{} [NO-DEFAULT-PACKAGES] [NO-PACKAGES]" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) (It used to be called "rjl/thesis", but then when I tried to export this morning it said it couldn't find the class "rjl" so I changed the name.) This class is mainly taken from emacsfu (http://emacs-fu.blogspot.com/2011/04/nice-looking-pdfs-with-org-mode-and.html) The problem I am experiencing now is that the TeX source that it outputs looks like this: \documentclass[11pt,a4paper]{report} \usepackage[T1]{fontenc} \usepackage{fontspec} \usepackage{graphicx} \defaultfontfeatures{Mapping=tex-text} \setromanfont{Gentium} \setromanfont [BoldFont={Gentium Basic Bold}, ItalicFont={Gentium Basic Italic}]{Gentium Basic} \setsansfont{Charis SIL} \setmonofont[Scale=0.8]{DejaVu Sans Mono} \usepackage{geometry} \geometry{a4paper, textwidth=6.5in, textheight=10in, marginparsep=7pt, marginparwidth=.6in} \pagestyle{empty} \title{} [NO-DEFAULT-PACKAGES] [NO-PACKAGES] \title{Foo Bar} \author{Richard Lewis} \date{16 May 2011} \begin{document} I'm sure it's not supposed to contain that empty \title{} environment, or the "[NO-DEFAULT-PACKAGES]" thing. Any ideas why this might be happening? Thanks, Richard