From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Bug in latex export tutorial on worg ? Date: Mon, 09 May 2011 19:25:51 -1000 Message-ID: References: <4DC8A5C5.4050202@sift.info> <7319.1304996046@alphaville.dokosmarshall.org> <4DC8A9D5.5090504@sift.info> <8460.1305001352@alphaville.dokosmarshall.org> <4DC8C314.7020106@sift.info> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJfSK-0002NB-Jl for emacs-orgmode@gnu.org; Tue, 10 May 2011 01:26:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJfSJ-0000iD-6m for emacs-orgmode@gnu.org; Tue, 10 May 2011 01:26:00 -0400 Received: from oproxy7-pub.bluehost.com ([67.222.55.9]:34830) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QJfSJ-0000i1-0H for emacs-orgmode@gnu.org; Tue, 10 May 2011 01:25:59 -0400 In-Reply-To: <4DC8C314.7020106@sift.info> (Robert Goldman's message of "Mon, 09 May 2011 23:46:12 -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: rpgoldman@sift.info Cc: nicholas.dokos@hp.com, Org Mode Robert Goldman writes: > On 5/9/11 May 9 -11:22 PM, Nick Dokos wrote: >> 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 > > Ah. I get it now. But then surely the above IS a bug -- presumably > it's not usual for a person to wish their latex export configuration to > appear, in verbatim block, in their org-generated latex document! > > Best, > Robert > > > Aloha Robert, I've added :exports none to the example, which came from a document about how to export LaTeX documents from Org-mode. Thanks for pointing out that it could be used in a way that yields unexpected results. In my usual setup I put this kind of configuration in a heading of its own that is protected by a :noexport: tag. This works for me because I often have notes about why things are in there and what I think they might be doing. All the best, Tom -- Thomas S. Dye http://www.tsdye.com