* export to latex book ?
@ 2010-07-20 14:55 Piter_
2010-07-20 15:50 ` John Hendy
0 siblings, 1 reply; 3+ messages in thread
From: Piter_ @ 2010-07-20 14:55 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 378 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 434 bytes --]
[-- Attachment #2: 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: export to latex book ?
2010-07-20 14:55 export to latex book ? Piter_
@ 2010-07-20 15:50 ` John Hendy
2010-07-20 16:07 ` Nick Dokos
0 siblings, 1 reply; 3+ messages in thread
From: John Hendy @ 2010-07-20 15:50 UTC (permalink / raw
To: Piter_; +Cc: emacs-orgmode
[-- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: export to latex book ?
2010-07-20 15:50 ` John Hendy
@ 2010-07-20 16:07 ` Nick Dokos
0 siblings, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2010-07-20 16:07 UTC (permalink / raw
To: John Hendy; +Cc: nicholas.dokos, emacs-orgmode
John Hendy <jw.hendy@gmail.com> wrote:
> 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.
> ...
> 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...
>
>
Looks like an org error, not a latex error, at this point (although
of course the latex installation may be busted as well). I presume
that when you (Piter) export to latex, there is no .tex output file
produced, correct?
In either case, probably the best way to proceed is to get a backtrace
and post that: see section 1.4, "Feedback", in the Org manual. If there
*is* a .tex output file, then post that as well.
Cheers,
Nick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-20 16:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-20 14:55 export to latex book ? Piter_
2010-07-20 15:50 ` John Hendy
2010-07-20 16:07 ` Nick Dokos
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.