emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problems with LaTeX export
@ 2011-05-16 11:56 Richard Lewis
  0 siblings, 0 replies; only message in thread
From: Richard Lewis @ 2011-05-16 11:56 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-16 11:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-16 11:56 Problems with LaTeX export Richard Lewis

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).