emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Piter_ <x.piter@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: export to latex book ?
Date: Tue, 20 Jul 2010 10:50:58 -0500	[thread overview]
Message-ID: <AANLkTilIDStW3MYDA5Tzh8IEXqYcCl-xfNK6aempdrE2@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikXX8U8fhf2JHgN3X8wOX9LWG-jh5LGjvGP2L3r@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2023 bytes --]

Hi,


Just a few thoughts/questions/suggestions:
- is this your first time exporting org to LaTeX?
- If so, have you verified your LaTeX installation before?
--- If not, go here:
http://www.electronics.oulu.fi/latex/examples/example_1/index.html
--- Copy and paste the example document into a text editor and save it as
test.tex
--- From the command line, run 'pdflatex test.tex' from within the file's
directory and report back with the results
--- If successful, change \documentclass{article} to \documentclass{book}
and see what happens

- also, check some things with your path
--- do you have book.cls and book.sty in
/usr/[local]/texmf-dist/tex/latex/base/ (maybe elsewhere if on Win/Mac)?
--- what is the output of 'which pdflatex' from the command line?
--- what is the output of 'tex --version' from the command line?

- For reference, see the attached files which worked for me
--- from bookTest.org I can do 'C-c C-e p' and obtain the attached pdf.
--- I can also generate a pdf of latexTest.tex (also attached) with
'pdflatex latexTest.tex' from the command line

Post back with your findings on this and someone should be able to help you
out. I *just* upgraded from 6.35 -> 7.01 last night and nothing has changed
for me. I'm thinking this has to do with your LaTeX install but could very
possibly be wrong...


John

On Tue, Jul 20, 2010 at 9:55 AM, Piter_ <x.piter@gmail.com> wrote:

> Hi all
> I try to export my org file into Latex book by adding:
> #+LaTeX_CLASS: book
> bu I get:
> org-export-latex-set-initial-vars: No definition for class `book ' in
> `org-export-latex-classes'
> But if I go into Org->Customize I can see it there.
> What can be wrong?
> Thanks.
> Petro.
>
> P.S. It actually does not work with #+LaTeX_CLASS:article.
> Only if I remove #+LaTeX_CLASS: from file.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

[-- Attachment #1.2: Type: text/html, Size: 2992 bytes --]

[-- Attachment #2: bookTest.org --]
[-- Type: application/octet-stream, Size: 729 bytes --]

#+AUTHOR:    John Hendy
#+TITLE: A Captain's Tale
#+LATEX_CLASS: book

* The Ship
** Dark & Stormy
It was a dark and stormy night on the boat. The crew gathered 'round
and asked the captain to tell them a story. "Alright," he
said. "Gather around and make yourselves comfortable. This is a story
of adventure and bravery and it begins like this..."

** The Plot Thickens
The captain continued, "It was a dark and stormy night on a boat long
away at sea. The crew gathered 'round and asked the captain to tell
them a story. 'Alright,' he said. 'Gather around and make yourselves
comfortable. This is a story of adventure and bravery and it begins
like this...'."

** I Won't Bore You
I'm sure you can see where this is going...



[-- Attachment #3: bookTest.pdf --]
[-- Type: application/pdf, Size: 135204 bytes --]

[-- Attachment #4: latexText.tex --]
[-- Type: application/x-tex, Size: 333 bytes --]

[-- Attachment #5: latexText.pdf --]
[-- Type: application/pdf, Size: 48224 bytes --]

[-- Attachment #6: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-07-20 15:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-20 14:55 export to latex book ? Piter_
2010-07-20 15:50 ` John Hendy [this message]
2010-07-20 16:07   ` Nick Dokos

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=AANLkTilIDStW3MYDA5Tzh8IEXqYcCl-xfNK6aempdrE2@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=x.piter@gmail.com \
    /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).