emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Exporting text
Date: Mon, 27 Jan 2014 13:06:53 -0500	[thread overview]
Message-ID: <87fvo91epu.fsf@alphaville.bos.redhat.com> (raw)
In-Reply-To: 20140127172837.GC97990@pdavismbp15.iscinternal.com

Peter Davis <pfd@pfdstudio.com> 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	other threads:[~2014-01-27 18:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-26 19:31 Exporting text Peter Davis
2014-01-26 22:14 ` Bastien
2014-01-27 15:05   ` Peter Davis
2014-01-27 16:19     ` Peter Davis
2014-01-27 16:31       ` Peter Davis
2014-01-27 17:00         ` Nick Dokos
2014-01-27 17:28           ` Peter Davis
2014-01-27 18:06             ` Nick Dokos [this message]
2014-01-27 21:33               ` Peter Davis
2014-01-27 22:09                 ` Nick Dokos
2014-01-27 23:37                   ` Peter Davis
2014-01-28  1:41                 ` Thomas S. Dye
2014-01-28  1:58                   ` Peter Davis
2014-01-28  3:06                     ` Thomas S. Dye

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=87fvo91epu.fsf@alphaville.bos.redhat.com \
    --to=ndokos@gmail.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).