From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrea Crotti Subject: Re: [babel] dot in pdf directly Date: Tue, 10 Nov 2009 17:13:08 +0000 (UTC) Message-ID: References: <87fx8n72wn.fsf@gmx.de> <87pr7q4f5k.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7uHo-0002e5-Fs for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 12:13:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7uHk-0002bo-Tf for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 12:13:44 -0500 Received: from [199.232.76.173] (port=41119 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7uHk-0002be-Kj for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 12:13:40 -0500 Received: from lo.gmane.org ([80.91.229.12]:58683) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N7uHk-0004TH-8s for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 12:13:40 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N7uHh-0003If-79 for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 18:13:37 +0100 Received: from ip116-027.hgracht.RWTH-Aachen.DE ([134.130.116.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Nov 2009 18:13:37 +0100 Received: from andrea.crotti.0 by ip116-027.hgracht.RWTH-Aachen.DE with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Nov 2009 18:13:37 +0100 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: emacs-orgmode@gnu.org 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]]