emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Lewis <richardlewis@fastmail.co.uk>
To: emacs-orgmode@gnu.org
Subject: Problems with LaTeX export
Date: Mon, 16 May 2011 12:56:15 +0100	[thread overview]
Message-ID: <87zkmmj1uo.wl%richard.lewis@gold.ac.uk> (raw)

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

                 reply	other threads:[~2011-05-16 11:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zkmmj1uo.wl%richard.lewis@gold.ac.uk \
    --to=richardlewis@fastmail.co.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).