From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug in latex export tutorial on worg ? Date: Tue, 10 May 2011 00:22:32 -0400 Message-ID: <8460.1305001352@alphaville.dokosmarshall.org> References: <4DC8A5C5.4050202@sift.info> <7319.1304996046@alphaville.dokosmarshall.org> <4DC8A9D5.5090504@sift.info> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:32819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJeTD-0005ND-7n for emacs-orgmode@gnu.org; Tue, 10 May 2011 00:22:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJeTC-0008AR-83 for emacs-orgmode@gnu.org; Tue, 10 May 2011 00:22:51 -0400 Received: from vms173001pub.verizon.net ([206.46.173.1]:34024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJeTC-0008AE-4u for emacs-orgmode@gnu.org; Tue, 10 May 2011 00:22:50 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LKY00LSGPHLTT80@vms173001.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 09 May 2011 23:22:38 -0500 (CDT) In-reply-to: Message from Robert Goldman of "Mon, 09 May 2011 21:58:29 CDT." <4DC8A9D5.5090504@sift.info> 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: rpgoldman@sift.info Cc: nicholas.dokos@hp.com, Org Mode Robert Goldman wrote: > On 5/9/11 May 9 -9:54 PM, Nick Dokos wrote: > > Robert Goldman wrote: > > > >> There is the following code block there: > >> > >> #+begin_src emacs-lisp :results silent > >> (add-to-list 'org-export-latex-classes > >> '("per-file-class" > >> "\\documentclass{scrartcl} > >> [NO-DEFAULT-PACKAGES] > >> [EXTRA]" > >> ("\\section{%s}" . "\\section*{%s}") > >> ("\\subsection{%s}" . "\\subsection*{%s}") > >> ("\\subsubsection{%s}" . "\\subsubsection*{%s}") > >> ("\\paragraph{%s}" . "\\paragraph*{%s}") > >> ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) > >> #+end_src > >> > >> Is this still correct? Or should this be :exports none instead of > >> :results silent? > >> > > > > ``:results silent'' works for me and keeps the result from appearing in > > the org buffer. I don't think :exports can do that - it can only affect > > what's exported. > > > > Nick > > I must be doing something wrong then --- I had the :results silent and > found the source block in verbatim in my latex export file.... Changing > to :exports none made that go away for me. Maybe that was a > coincidence. I will have to investigate further, I guess. > No, you are not doing anything wrong: the default :exports value is "code", so the code ends up in your export. ``:exports none'' keeps it (and any results) from being exported. OTOH, try evaluating (C-c C-c) the code block, with and without ``:results silent''. There is a behavior difference and *that* difference is not affected by how you set :exports. Nick