emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Peter Davis <pfd@pfdstudio.com>
To: emacs-orgmode@gnu.org
Subject: Re: Exporting text
Date: Mon, 27 Jan 2014 12:28:37 -0500	[thread overview]
Message-ID: <20140127172837.GC97990@pdavismbp15.iscinternal.com> (raw)
In-Reply-To: <87k3dl1hrv.fsf@alphaville.bos.redhat.com>

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

  reply	other threads:[~2014-01-27 17:30 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 [this message]
2014-01-27 18:06             ` Nick Dokos
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=20140127172837.GC97990@pdavismbp15.iscinternal.com \
    --to=pfd@pfdstudio.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).