emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Exporting text


From: Nick Dokos
Subject: Re: [O] Exporting text
Date: Mon, 27 Jan 2014 13:06:53 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Peter Davis <address@hidden> writes:

> 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:
>
> (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}")))
>
>
>> 
>> 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. 
>

AFAIK, the .tex file is (or should be) self-contained. Org has nothing
further to say about it. OTOH, if the org-article class uses special
sauce you may need to install additional latex packages. But before
you do that...

> The org file starts with:
>
> #+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]
>

...what happens if you replace org-article with just plain boring old
article? 

> The org-article class is from:
>
> http://orgmode.org/worg/org-contrib/babel/examples/article-class.html
>

TL;DR

It may be that the org-article class is busted. Or it may be that it
needs additional latex packages installed.

Nick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]