From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: first #+LATEX_HEADER: in SETUPFILE not correctly exported and causes Missing \begin{document} error Date: Sat, 26 Mar 2016 12:51:15 +0000 Message-ID: <8760w9tnb0.fsf@ucl.ac.uk> References: <56F5DE32.1090107@verizon.net> <87a8lltwca.fsf@ucl.ac.uk> <56F677E8.3050009@verizon.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajnut-0001Uv-9Y for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 09:06:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajnuo-0008PI-A2 for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 09:06:11 -0400 Received: from mail-db3on0132.outbound.protection.outlook.com ([157.55.234.132]:8205 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajnuo-0008PA-0F for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 09:06:06 -0400 In-Reply-To: <56F677E8.3050009@verizon.net> (Charles Millar's message of "Sat, 26 Mar 2016 07:52:08 -0400") 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: Charles Millar Cc: emacs-orgmode@gnu.org On Saturday, 26 Mar 2016 at 07:52, Charles Millar wrote: [...] > 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 It may have "worked" but the odds are that you were simply lucky. \newcommand expects two {} arguments, the first being the name of the command and the second the actual sequence to execute. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-668-g809a83