[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Exporting text
From: |
Peter Davis |
Subject: |
Re: [O] Exporting text |
Date: |
Mon, 27 Jan 2014 12:28:37 -0500 |
User-agent: |
Mutt/1.5.22 (2013-10-16) |
On Mon, Jan 27, 2014 at 12:00:52PM -0500, Nick Dokos wrote:
>
> Use a minimal .emacs, something like this (adjust path to suit your
> situation):
>
> --8<---------------cut here---------------start------------->8---
> (add-to-list 'load-path "~/src/emacs/org/org-mode/lisp")
>
> (require 'org-loaddefs)
> --8<---------------cut here---------------end--------------->8---
Thanks, Nick,
I had to use this to get all the org-... stuff defined:
--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "~/src/org-mode/lisp")
(add-to-list 'load-path "~/src/org-mode/contrib/lisp")
;;(add-to-list 'load-path "~/src/emacs/org/org-mode/lisp")
(require 'org-loaddefs)
(require 'ox-latex)
(add-to-list 'org-latex-classes
'("org-article"
"\\documentclass{org-article}
[NO-DEFAULT-PACKAGES]
[PACKAGES]
[EXTRA]"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
--8<---------------cut here---------------end--------------->8---
>
> Then start emacs with
>
> emacs -q -l /path/to/minimal/.emacs
>
> Visit an org file and try latex exporting. If that works, then
> your init file is screwed up. If it doesn't, then your org-mode
> installation is screwed up.
The output is still screwed up, in what appears to be the same way.
Interestingly, the .tex file looks ok, at least from a cursory glance,
but most of its contents don't show up on the PDF. I tried compiling
it from the command line, but it didn't understand \hyperset{...} and
perhaps some other things, so I'm assuming org prepends some
definitions.
The org file starts with:
--8<---------------cut here---------------start------------->8---
#+STARTUP: showeverything logdone
#+options: num:nil
#+OPTIONS: H:5 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t
#+LaTeX_CLASS: org-article
#+LaTeX_CLASS_OPTIONS: [article,letterpaper,times,12pt,listings-bw,microtype]
--8<---------------cut here---------------end--------------->8---
The org-article class is from:
http://orgmode.org/worg/org-contrib/babel/examples/article-class.html
Thanks,
-pd
--
----
Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com
- [O] Exporting text, Peter Davis, 2014/01/26
- Re: [O] Exporting text, Bastien, 2014/01/26
- Re: [O] Exporting text, Peter Davis, 2014/01/27
- Re: [O] Exporting text, Peter Davis, 2014/01/27
- Re: [O] Exporting text, Peter Davis, 2014/01/27
- Re: [O] Exporting text, Nick Dokos, 2014/01/27
- Re: [O] Exporting text,
Peter Davis <=
- Re: [O] Exporting text, Nick Dokos, 2014/01/27
- Re: [O] Exporting text, Peter Davis, 2014/01/27
- Re: [O] Exporting text, Nick Dokos, 2014/01/27
- Re: [O] Exporting text, Peter Davis, 2014/01/27
- Re: [O] Exporting text, Thomas S. Dye, 2014/01/27
- Re: [O] Exporting text, Peter Davis, 2014/01/27
- Re: [O] Exporting text, Thomas S. Dye, 2014/01/27