From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Davis Subject: Re: Exporting text Date: Mon, 27 Jan 2014 12:28:37 -0500 Message-ID: <20140127172837.GC97990@pdavismbp15.iscinternal.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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7q1B-000486-Ji for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 12:30:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7q16-0004WF-Gs for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 12:30:41 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:58005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7q16-0004VR-7H for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 12:30:36 -0500 Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 973A020B17 for ; Mon, 27 Jan 2014 12:30:35 -0500 (EST) Content-Disposition: inline In-Reply-To: <87k3dl1hrv.fsf@alphaville.bos.redhat.com> 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 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