From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [babel] dot in pdf directly Date: Tue, 10 Nov 2009 12:10:54 -0700 Message-ID: References: <87fx8n72wn.fsf@gmx.de> <87pr7q4f5k.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7whV-0007w1-Ui for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 14:48:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7whQ-0007sm-Tx for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 14:48:25 -0500 Received: from [199.232.76.173] (port=52257 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7whQ-0007sd-Q2 for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 14:48:20 -0500 Received: from mail-pw0-f47.google.com ([209.85.160.47]:48321) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7whQ-0004We-CT for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 14:48:20 -0500 Received: by mail-pw0-f47.google.com with SMTP id 9so228093pwi.26 for ; Tue, 10 Nov 2009 11:48:20 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: andrea Crotti Cc: emacs-orgmode@gnu.org andrea Crotti writes: > Eric Schulte gmail.com> writes: > >> Note that the solution I'm about to propose relies on the use of >> org-babel and #+begin_src dot blocks rather than #+begin_dot blocks. >> >> When in these situations I will often set the block so that neither the >> code or the resulting image is exported, and so that the results of >> block evaluation are silent. >> >> #+begin_src dot :file file.pdf :cmdline -Tpdf :exports none :results silent >> ... >> #+end_src >> >> Then I manually add file links to the image throughout my document. >> >> [[file:file.pdf]] >> >> Whenever I change the contents of the block I manually re-evaluate the >> block with C-c C-c and the image to which all of the links point is >> updated. >> >> Best -- Eric >> > > Ok that's really perfect! > The only "problem" is that it keeps exporting the code even without > the :exports none, maybe I need some newlines? > > **** s2 > #+BEGIN_SRC dot :file s2.pdf :cmdline -Tpdf :exports none :results silent > digraph s1 { > t1; > t2; > } > #+END_SRC > > [[file:s2.pdf]] > Hi Andrea, there was a bug related to capitalization in org-exp-blocks, I've fixed this bug in the head of the org-mode git repo. Please grab the latest org-mode and see if you problem persists. Best -- Eric