From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: tangling files on export not working properly Date: Sat, 10 Dec 2016 13:54:13 +0100 Message-ID: <87pol0c5ca.fsf@nicolasgoaziou.fr> References: <12c602f5-dd6a-f961-7432-a0ede7dd0e09@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFhAP-0007Wg-8g for emacs-orgmode@gnu.org; Sat, 10 Dec 2016 07:54:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFhAK-0000EH-Rt for emacs-orgmode@gnu.org; Sat, 10 Dec 2016 07:54:17 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:43691) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cFhAK-0000E1-Kv for emacs-orgmode@gnu.org; Sat, 10 Dec 2016 07:54:12 -0500 In-Reply-To: <12c602f5-dd6a-f961-7432-a0ede7dd0e09@gmail.com> (mcg's message of "Sun, 27 Nov 2016 18:27:31 +0100") 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" To: mcg Cc: emacs-orgmode@gnu.org Hello, mcg writes: > Hello, > > When exporting my document to latex I want org-mode to tangle a few code > blocks. > > #+NAME: tangle_files > #+BEGIN_SRC emacs-lisp :exports results :eval query-export > > (org-babel-tangle-file "~/thesis/chapter/NH.org") > > #+END_SRC > > When I run the code block manually it works fine > *Messages*: "Tangled 2 code blocks from NH.org" > > However, even though the is run on export, nothing gets tangled: > "Tangled 0 code blocks from 04.NH.org" > > Is there any explanation for this? Anything I'm overlooking? Doesn't you need to add :tangle yes to the block header? Actually, adding this correctly tangle the file upon exporting the document. Regards, -- Nicolas Goaziou