emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Charles Howard <terminalbeachbum@googlemail.com>
To: Emacs-orgmode@gnu.org
Subject: Customizing LaTeX export (Org Format Latex Header)
Date: Fri, 7 Aug 2009 22:46:59 +0100	[thread overview]
Message-ID: <771c31300908071446o2c77f4farc9a4fa83c19a9739@mail.gmail.com> (raw)

Hi. I'm still failing to understand how to customize latex export.

I've set up a new clean install of Debian 5.02 with emacs 22.2 and
org-mode 6.27a
(the version for testing). Org-mode was installed using synaptic.

With no header lines in the .org file the latex preamble is

% Created 2009-08-07 Fri 21:53
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{hyperref}

This already seems strange because when I go to org-customize in emacs
what I see
in Org Format Latex Header, in lisp is

"\\documentclass{article}\n\\usepackage{fullpage}         % do not
remove\n\\usepackage{amssymb}\n\\usepackage[usenames]{color}\n\\usepackage{amsmath}\n\\usepackage{latexsym}\n\\usepackage[mathscr]{eucal}\n\\pagestyle{empty}
            % do not remove"

which doesn't correspond to the actual preamble. Anyway I added some
lines to change a
couple of features, as follows:

"\\documentclass{article}\n\\usepackage{fullpage}         % do not
remove\n\\usepackage{amssymb}\n\\usepackage[usenames]{color}\n\\usepackage{amsmath}\n\\usepackage{latexsym}\n\\usepackage[mathscr]{eucal}\n\\pagestyle{empty}
            % do not
remove\n\\setlength{\\parindent}{0mm}\n\\setlength{\\parskip}{2mm}\n\\setlength{\\textwidth}{15cm}\n\\setlength{\\textheight}{23cm}"

and this had no effect on the exported tex file. (I do set and save.)

I don't want to write a new class file for LaTeX. I just want to be
able to add a couple
of dozen setlength and (re)newcommand lines (as well as usepackage
lines) to every LaTeX
export. I did experiment briefly with using per-file export settings,
but this didn't
work for me either.

I expect I'm missing something obvious. Pointer would be much appreciated.

Chas

             reply	other threads:[~2009-08-07 21:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07 21:46 Charles Howard [this message]
2009-08-18  9:36 ` Customizing LaTeX export (Org Format Latex Header) Bastien

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=771c31300908071446o2c77f4farc9a4fa83c19a9739@mail.gmail.com \
    --to=terminalbeachbum@googlemail.com \
    --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).