From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar Subject: Re: first #+LATEX_HEADER: in SETUPFILE not correctly exported and causes Missing \begin{document} error Date: Sat, 26 Mar 2016 07:52:08 -0400 Message-ID: <56F677E8.3050009@verizon.net> References: <56F5DE32.1090107@verizon.net> <87a8lltwca.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajmlc-0005q3-MK for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 07:52:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajmlX-0002y8-O6 for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 07:52:32 -0400 Received: from vms173009pub.verizon.net ([206.46.173.9]:39874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajmlX-0002xz-JK for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 07:52:27 -0400 Received: from vz-proxy-m005.mx.aol.com ([64.236.83.9]) by vms173009.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0O4N0090VAAY4E70@vms173009.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 06:52:10 -0500 (CDT) In-reply-to: <87a8lltwca.fsf@ucl.ac.uk> 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 Hi Eric On 03/26/2016 05:36 AM, Eric S Fraga wrote: > On Friday, 25 Mar 2016 at 20:56, Charles Millar wrote: > > [...] >> \newcommand\foo{bar} > The problem is this line. The proper syntax is > > \newcommand{\foo}{bar} > > Thanks for the correction. I escaped the \foo otherwise I had a spurious "oobar" at the beginning of the exported document so that my latex class has \newcommand{\\foo}{bar} I suspect that this problem may be file specific. I exported another file, using the same SETUPFILE and had no problems Charlie