From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: first #+LATEX_HEADER: in SETUPFILE not correctly exported and causes Missing \begin{document} error Date: Sat, 02 Apr 2016 11:00:24 +0200 Message-ID: <87egaos7vb.fsf@nicolasgoaziou.fr> References: <56F5DE32.1090107@verizon.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amHNs-0006t1-BQ for emacs-orgmode@gnu.org; Sat, 02 Apr 2016 04:58:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amHNp-0006YV-2z for emacs-orgmode@gnu.org; Sat, 02 Apr 2016 04:58:20 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amHNo-0006YC-SY for emacs-orgmode@gnu.org; Sat, 02 Apr 2016 04:58:17 -0400 In-Reply-To: <56F5DE32.1090107@verizon.net> (Charles Millar's message of "Fri, 25 Mar 2016 20:56:18 -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 Hello, Charles Millar writes: > I have a #+SETUPFILE which starts as follows > > #+LATEX_HEADER: \usepackage{lastpage} [...] > "mysetup" class is > > (add-to-list 'org-latex-classes > '("mysetup" > "\\documentclass[fontsize=11pt,letterpaper,twoside=false]{scrartcl} [...] > \\newcommand\\foo{bar} > [NO-DEFAULT-PACKAGES] > [NO-PACKAGES] > [EXTRA]" [...] > \newcommand\foo{bar} > \usepackage{lastpage} Your template includes indentation before "[EXTRA]". This indentation appears in the output, in this case, before the first LATEX_HEADER directive. Regards, -- Nicolas Goaziou