From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Bremner Subject: excluding noweb references completely from exports Date: Sat, 04 Jan 2020 14:15:34 -0400 Message-ID: <87pnfz6qbd.fsf@tethera.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51831) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1innxa-0001Mx-QG for emacs-orgmode@gnu.org; Sat, 04 Jan 2020 13:15:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1innxZ-0002nf-Lk for emacs-orgmode@gnu.org; Sat, 04 Jan 2020 13:15:38 -0500 Received: from fethera.tethera.net ([2607:5300:60:c5::1]:40598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1innxZ-0002l7-I0 for emacs-orgmode@gnu.org; Sat, 04 Jan 2020 13:15:37 -0500 Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1innxY-0006iw-2m for emacs-orgmode@gnu.org; Sat, 04 Jan 2020 13:15:36 -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" To: emacs-orgmode@gnu.org At the end you can find a cut down version of an org-mode file I am using to generate some beamer slides. This works as written, but it feels clumsy to use two src blocks for every snippet. I have tried putting the <> in the main src block, but this either generates a blank line or if I delete the newline after >>, the export looks fine but the source is ugly to edit. Any better ideas for how to do this? In case it's not clear, I want include files in my tangled output that don't show in the beamer export. Please CC me with any replies, I'm not on the list. #+STARTUP: beamer #+OPTIONS: toc:nil #+PROPERTY: header-args :noweb strip-export :shebang "#lang plait" :tangle-mode (identity #o644) #+BEGIN_SRC plait :tangle tangled.rkt :export none <> #+END_SRC #+BEGIN_SRC plait :tangle tangled.rkt #;(Snake 10 'Slimey 5) ; => compile error: 10 is not a Symbol (Snake? (Snake 'Slimey 10 'rats)) ; => #t (Snake? (Tiger 'Tony 12)) ; => #t ;(Snake? 10) ; => compile error #+END_SRC #+NAME: include/animal-type.rkt #+BEGIN_SRC plait :export none (define-type Animal [Snake (name : Symbol) (weight : Number) (food : Symbol)] [Tiger (name : Symbol) (weight : Number)]) #+END_SRC