From: Steven Arntson <steven@stevenarntson.com>
To: emacs-orgmode@gnu.org
Subject: Re: latex export beginner
Date: Wed, 21 May 2014 09:18:28 -0700 [thread overview]
Message-ID: <87mwebrtpn.fsf@stevenarntson.com> (raw)
In-Reply-To: 87k39fyd92.fsf@gmail.com
Nick Dokos <ndokos@gmail.com> writes:
> Steven Arntson <steven@stevenarntson.com> writes:
>
>> I'm taking my first baby steps at exporting an org file to LaTex. I know
>> a little about org-mode, and almost nothing about LaTex.
>>
>> I type C-c C-e l o
>>
>> A file named file.tex is produced, but the process halts with an error:
>>
>> org-latex-compile: PDF file ./plm.pdf wasn't produced: [LaTeX error]
>>
>> A program called pdfTex produces a buffer with extensive output,
>> including:
>>
>> ! LaTeX Error: Missing \begin{document}.
>>
>> This seems like some markup that should probably be included in my file
>> automatically as part of the export? Shoud I add "/begin{document}" to
>> my org doc?
>>
>
> No, the exporter should have done that. Post your org file and the
> resulting tex file.
>
> Also, the version of your org mode: C-u M-x org-version will insert
> it in the current buffer.
Thank you for your help!
I'm using Org-mode version 8.2.6 (8.2.6-22-gb11b4a-elpaplus @
/home/steven/.emacs.d/elpa/org-plus-contrib-20140519/)
I mocked up a smaller reproduction of the problem, because the original
file is too large. The same errors were produced. There's a file called
test.log, too, which I'm not pasting in here because of its length, but
I can if it would be helpful. Here's my org-mode document:
| Test org file for conversion to LaTex
|
| * My top-level header
| Some information under the top level header
| ** A secondary header
|
| * Chapter the first
| Some information from the first chapter.Some
| information from the first Some information from the first chapter.Some
| information from the first chapter.Some information from the first
| chapter.
|
| * Chapter the second
| The end of this document.
And here is the tex output file:
| % Created 2014-05-21 Wed 09:11
| \documentclass[11pt]{article}
| \usepackage[utf8]{inputenc}
| \usepackage[T1]{fontenc}
| \usepackage{fixltx2e}
| \usepackage{graphicx}
| \usepackage{longtable}
| \usepackage{float}
| \usepackage{wrapfig}
| \usepackage{rotating}
| \usepackage[normalem]{ulem}
| \usepackage{amsmath}
| \usepackage{textcomp}
| \usepackage{marvosym}
| \usepackage{wasysym}
| \usepackage{amssymb}
| \usepackage{hyperref}
| \tolerance=1000
| \author{Steven Arntson}
| \date{\today}
| \title{test}
| \hypersetup{
| pdfkeywords={},
| pdfsubject={},
| pdfcreator={Emacs 24.3.1 (Org mode 8.2.6)}}
| \begin{document}
|
| \maketitle
| \tableofcontents
|
| Test org file for conversion to LaTex
|
| \section{My top-level header}
| \label{sec-1}
| Some information under the top level header
| \subsection{A secondary header}
| \label{sec-1-1}
|
| \section{Chapter the first} \label{sec-2}
| Some information from the
| first chapter.Some information from the first Some information from the
| first chapter.Some information from the first chapter.Some information
| from the first chapter.
|
| \section{Chapter the second}
| \label{sec-3}
| The end of this document.
| % Emacs 24.3.1 (Org mode 8.2.6)
| \end{document}
next prev parent reply other threads:[~2014-05-21 16:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-21 3:30 latex export beginner Steven Arntson
2014-05-21 4:19 ` Nick Dokos
2014-05-21 16:18 ` Steven Arntson [this message]
2014-05-21 16:27 ` Igor Sosa Mayor
2014-05-21 17:24 ` Nick Dokos
2014-05-21 19:43 ` Steven Arntson
2014-05-21 19:49 ` Igor Sosa Mayor
2014-05-21 22:32 ` Steven Arntson
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=87mwebrtpn.fsf@stevenarntson.com \
--to=steven@stevenarntson.com \
--cc=emacs-orgmode@gnu.org \
/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).