From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: How to ensure code blocks are run during export? Date: Fri, 03 May 2013 09:59:20 -0600 Message-ID: <87ppx4xeqv.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZO8c-0008Dr-U6 for emacs-orgmode@gnu.org; Mon, 06 May 2013 12:19:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZO8b-00045y-MB for emacs-orgmode@gnu.org; Mon, 06 May 2013 12:19:42 -0400 Received: from mail-qa0-x236.google.com ([2607:f8b0:400d:c00::236]:58773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZO8b-00045l-Iv for emacs-orgmode@gnu.org; Mon, 06 May 2013 12:19:41 -0400 Received: by mail-qa0-f54.google.com with SMTP id o13so1549336qaj.20 for ; Mon, 06 May 2013 09:19:41 -0700 (PDT) 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: Alan Schmitt Cc: "emacs-orgmode@gnu.org" Alan Schmitt writes: > Hello, > > I'm writing an exam in org mode, and it's going really well. I need to > have some code in code blocks being run during export (as it's defining > some functions for later questions), but I don't want anything to be > displayed in the final document. At the moment I use the following > options in the block: > > :results silent :exports results > > Is it the correct way to do it? > > Thanks, > > Alan > Yes, this is the correct combination of header arguments for this use case. Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte