From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Help understanding what's imported from a #+SETUPFILE file Date: Fri, 12 Feb 2016 20:50:49 +0000 Message-ID: <87a8n5tzyu.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUKg9-0007MI-2t for emacs-orgmode@gnu.org; Fri, 12 Feb 2016 15:51:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUKg4-0003vr-2y for emacs-orgmode@gnu.org; Fri, 12 Feb 2016 15:51:01 -0500 Received: from mail-db5eur01on0099.outbound.protection.outlook.com ([104.47.2.99]:63082 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUKg3-0003vX-Q2 for emacs-orgmode@gnu.org; Fri, 12 Feb 2016 15:50:56 -0500 In-Reply-To: (Kaushal Modi's message of "Fri, 12 Feb 2016 15:11:23 -0500") 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: Kaushal Modi Cc: emacs-org list On Friday, 12 Feb 2016 at 15:11, Kaushal Modi wrote: > Actually, I just realized that changing those 2 lines to: > > #+LaTeX_HEADER: \BeforeBeginEnvironment{minted}{\begin{mdframed}} > #+LaTeX_HEADER: \AfterEndEnvironment{minted}{\end{mdframed}} This is indeed the solution. > in the SETUPFILE works too. I don't recall the reason why I did not have > them as LaTeX_HEADER earlier. > > But the question still remains.. is SETUPFILE designed to not export lines > beginning with #+LaTeX? Or a general question would be.. what stuff doesn't > SETUPFILE export? I think you'll find that anything before the first headline (other than header lines and document settings) is ignored when exporting to LaTeX and that applies to all text, whether in the main file or from an included file. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-565-g4f499f