emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Jason Lewis <jason@dickson.st>
Cc: org mode <emacs-orgmode@gnu.org>
Subject: Re: LaTeX export with documentclass ltugboat
Date: Thu, 28 Nov 2013 20:53:32 -1000	[thread overview]
Message-ID: <m1ob53y9zn.fsf@poto.westell.com> (raw)
In-Reply-To: <5298246A.5070207@dickson.st> (Jason Lewis's message of "Fri, 29 Nov 2013 16:21:46 +1100")

Jason Lewis <jason@dickson.st> writes:

> (require 'org-latex)
> (unless (boundp 'org-export-latex-classes)
> (add-to-list 'org-export-latex-classes
>              '("ltugboat"
>                "\\documentclass{ltugboat}"
>                ("\\section{%s}" . "\\section*{%s}")
>                ("\\subsection{%s}" . "\\subsection*{%s}")
>                ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>                ("\\paragraph{%s}" . "\\paragraph*{%s}")
>                ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

It looks like you are using < 8.0 functions.

Try something like this:

(require 'ox-latex)
(add-to-list 'org-latex-classes
              '("ltugboat"
                "\\documentclass{ltugboat}"
                ("\\section{%s}" . "\\section*{%s}")
                ("\\subsection{%s}" . "\\subsection*{%s}")
                ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                ("\\paragraph{%s}" . "\\paragraph*{%s}")
                ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

Note: org-latex -> ox-latex
      org-export-latex-classes -> org-latex-classes

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

  reply	other threads:[~2013-11-29  6:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-28 12:02 LaTeX export with documentclass ltugboat Jason Lewis
2013-11-28 12:32 ` Suvayu Ali
2013-11-28 12:37 ` Charles Millar
2013-11-29  5:21   ` Jason Lewis
2013-11-29  6:53     ` Thomas S. Dye [this message]
2013-11-29 11:59       ` Jason Lewis
2013-11-29 12:41     ` Charles Millar

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=m1ob53y9zn.fsf@poto.westell.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jason@dickson.st \
    /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).