[O] starting ispell process during latex export

2011-04-05 Thread Chris Beard
This looks like it may be a multidisciplinary problem, but this
mailing list has provided good solutions for these things in the past,
so I figured it would be the first place to check.

I've been exporting latex documents via org-mode, but I noticed that
the editing mode (after C-c ') was LaTeX mode without the Auctex
options that I had used on a different emacs setup. So I installed
Auctex (it now edits in pdflatex mode), but since then exporting to
Latex has been *very* slow. In fact, the whole emacs freezes up, and
the minibuffer keeps giving me these Starting new Ispell process
[default] ... messages. I turned on debug-on-error, but I don't get a
backtrace buffer (but I'm not very experienced at debugging in emacs,
so this may not mean anything). Here's a sample from the *Messages*
buffer:

org-babel-exp processing...
Starting new Ispell process [default] ...
Enabling Flyspell mode gave an error
Starting new Ispell process [default] ...
Enabling Flyspell mode gave an error
Position saved to mark ring, go back with M-x org-mark-ring-goto.
org-babel-exp processing...
Starting new Ispell process [default] ...
Enabling Flyspell mode gave an error
Starting new Ispell process [default] ...
Enabling Flyspell mode gave an error
org-babel-exp processing...
Starting new Ispell process [default] ...
Enabling Flyspell mode gave an error
Starting new Ispell process [default] ...
Enabling Flyspell mode gave an error
org-babel-exp processing...

Does anyone have advice on fixing this?

Thank you
Chris



[O] syntax highlighting for latex elements

2011-03-31 Thread Chris Beard
Hello,
After learning that I can output my Org documents (with tables,
outlined notes and all!) into LaTeX, I've started writing some notes
with the intention of exporting them to LaTeX. So I've been typing
stuff like (sorry, I'm not sure about the standard for formatting code
for emails):


This equation does such and such:
\begin{equation}
  F_2(s) = \frac{r_1}{s+2} + \frac{r_2}{s+4} + \frac{r_3}{s+6},
\end{equation}
And this equation is used to find...



This stuff outputs fine to tex files, but one thing I'd like is LaTeX
syntax highlighting for things like \begin{...}\frac{...}\end{}. I can
get highlighting in code source blocks, but that gets exported in
verbatim environments in the LaTeX output. If I want syntax
highlighting for these things, should I just be editing a standard
.tex file with the appropriate emacs mode, or is there a (hopefully
simple) way to turn on syntax highlighting for LaTeX elements in
standard org-mode?

Thank you
Chris



[O] latex export settings in init files

2011-03-28 Thread Chris Beard
Hello,
I've tried to modify some default latex export settings based on info from here
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg07645.html

I basically add to the org-mode-hook to do:
(setq org-export-latex-classes (cons '(myarticle
 % BEGIN My Article Defaults
  \\documentclass[10pt,letterpaper]{article}

  
\\usepackage[letterpaper,includeheadfoot,top=0.5in,bottom=0.5in,left=0.75in,right=0.75in]{geometry};;
more settings after this...
)
   org-export-latex-classes))

This works if I evaluate it after I've been exporting to latex, but I
get an error whenever I start up emacs:

setq: Symbol's value as variable is void: org-export-latex-classes

I'm guessing there's some org-mode latex-export thing that I need to
load first, but I'm not very familiar with how to do this. Any advice?

Thank you
Chris