From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Exporting text Date: Mon, 27 Jan 2014 13:06:53 -0500 Message-ID: <87fvo91epu.fsf@alphaville.bos.redhat.com> References: <20140126193122.GA14688@pfdstudio-air.home> <8738kajsqj.fsf@bzg.ath.cx> <20140127150529.GF47919@pdavismbp15.iscinternal.com> <20140127155930.GA97990@pdavismbp15.iscinternal.com> <20140127163103.GB97990@pdavismbp15.iscinternal.com> <87k3dl1hrv.fsf@alphaville.bos.redhat.com> <20140127172837.GC97990@pdavismbp15.iscinternal.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7qaW-0000bx-Ad for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 13:07:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7qaQ-000877-TG for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 13:07:12 -0500 Received: from plane.gmane.org ([80.91.229.3]:59395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7qaQ-000872-MV for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 13:07:06 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W7qaP-0005Eb-Np for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 19:07:05 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jan 2014 19:07:05 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jan 2014 19:07:05 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Peter Davis 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