From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Arntson Subject: Re: latex export beginner Date: Wed, 21 May 2014 09:18:28 -0700 Message-ID: <87mwebrtpn.fsf@stevenarntson.com> References: <87zjibsta6.fsf@stevenarntson.com> <87k39fyd92.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn9E8-00056e-Ao for emacs-orgmode@gnu.org; Wed, 21 May 2014 12:18:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wn9E2-00075z-24 for emacs-orgmode@gnu.org; Wed, 21 May 2014 12:18:48 -0400 Received: from plane.gmane.org ([80.91.229.3]:60989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn9E1-00075s-RL for emacs-orgmode@gnu.org; Wed, 21 May 2014 12:18:41 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wn9E0-0000kh-Un for emacs-orgmode@gnu.org; Wed, 21 May 2014 18:18:40 +0200 Received: from 97-126-85-177.tukw.qwest.net ([97.126.85.177]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 May 2014 18:18:40 +0200 Received: from steven by 97-126-85-177.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 May 2014 18:18:40 +0200 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 Nick Dokos writes: > Steven Arntson 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}