emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Florian Beck <fb@miszellen.de>
To: James Harkins <jamshark70@gmail.com>
Cc: Emacs-orgmode@gnu.org
Subject: Re: New exporter documentation?
Date: Fri, 18 Jan 2013 09:11:34 +0100	[thread overview]
Message-ID: <87obgmc3m1.fsf@sophokles.streitblatt.de> (raw)
In-Reply-To: <50F8F320.70709@gmail.com> (James Harkins's message of "Fri, 18 Jan 2013 15:00:48 +0800")

James Harkins <jamshark70@gmail.com> writes:

> Specific question: Is there an easy way to use a given LaTeX template (.cls and .bib)? (I also found [2] but "easy" is not how I would describe that.)

The easiest way is probably

#+BEGIN_SRC emacs-lisp
(require 'org-export)
(require 'org-e-latex)

(setq org-e-latex-default-class "new-article")

(add-to-list
 'org-e-latex-classes
 '("new-article" "\\documentclass[10pt]{my-style}
\n\\bibliography{/path/to/bibfile.bib}"
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}")
  ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
#+END_SRC

This works just like `org-export-latex-classes' but see the docstring.

Now you are ready to go: M-x org-export-dispatch


-- 
Florian Beck

  parent reply	other threads:[~2013-01-18  8:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18  7:00 New exporter documentation? James Harkins
2013-01-18  8:02 ` Thomas S. Dye
2013-01-18  8:11 ` Florian Beck [this message]
2013-01-19  1:26   ` James Harkins

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=87obgmc3m1.fsf@sophokles.streitblatt.de \
    --to=fb@miszellen.de \
    --cc=Emacs-orgmode@gnu.org \
    --cc=jamshark70@gmail.com \
    /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).