* Customizing LaTeX export (Org Format Latex Header)
@ 2009-08-07 21:46 Charles Howard
2009-08-18 9:36 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Charles Howard @ 2009-08-07 21:46 UTC (permalink / raw)
To: Emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Customizing LaTeX export (Org Format Latex Header)
2009-08-07 21:46 Customizing LaTeX export (Org Format Latex Header) Charles Howard
@ 2009-08-18 9:36 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2009-08-18 9:36 UTC (permalink / raw)
To: Charles Howard; +Cc: Emacs-orgmode
Charles Howard <terminalbeachbum@googlemail.com> writes:
> Hi. I'm still failing to understand how to customize latex export.
I think you are looking for `org-export-latex-classes'.
> This already seems strange because when I go to org-customize in emacs
> what I see in Org Format Latex Header, in lisp is
`org-format-latex-header' is for processing LaTeX fragments, that's why
it's in org.el rather than in org-latex.el. For LaTeX export options,
better check the Org LaTeX group in customize:
M-x customize-group RET org-latex RET
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-18 15:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-07 21:46 Customizing LaTeX export (Org Format Latex Header) Charles Howard
2009-08-18 9:36 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.