From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Can't export LaTeX source code blocks Date: Wed, 24 Apr 2013 23:32:12 +0200 Message-ID: <86a9onzkbn.fsf@somewhere.org> References: <86obd67427.fsf@somewhere.org> <87zjwqb9wd.fsf@gmail.com> <867gju6xyd.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello Thomas, Thomas S. Dye wrote: > "Sebastien Vauban" >>>> #+begin_src latex >>>> \DescribeMacro{\dummyMacro} >>>> This macro does nothing.\index{doing nothing|usage} It is merely an >>>> example. If this were a real macro, you would put a paragraph here >>>> describing \textbf{what} the macro is supposed to do, what its mandatory and >>>> optional arguments are, and so forth. >>>> #+end_src >>>> >>>> As you can see, the code block is NEVER exported. I don't understand >>>> why? >>> >>> I'm not sure either. >>> >> The only buggy behavior is the first one: the fact that the "code" block >> disappears, as you say. > > I took a quick look at ob-latex.el. The code there sets `:exports results' > and then, IIUC, goes on its way without checking if :exports has been set in > the buffer. Thanks for giving a look at the right place, and putting me on good tracks. > IIRC, the main uses of LaTeX code blocks were for tangling .tex documents, > and for preview snippets. This seems to be supported by the documentation, > which says "LaTeX source code blocks can be used to tangle a LaTeX source > file, or to create bitmap images or pdf snippets of arbitrary LaTeX code." > > It looks to me like ob-latex.el would need to be revised to work with your > use case (a document about LaTeX authoring?). Yes, I want to document (in the LP [1] spirit) the LaTeX classes we've written at work. Best regards, Seb [1] Literate Programming -- Sebastien Vauban