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 08:41:58 -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 1N7srD-0005ZK-3m for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 10:42:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7sr8-0005Xu-Lu for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 10:42:10 -0500 Received: from [199.232.76.173] (port=46278 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7sr8-0005Xl-AW for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 10:42:06 -0500 Received: from mail-pz0-f192.google.com ([209.85.222.192]:37224) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7sr7-0004mG-Qa for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 10:42:06 -0500 Received: by pzk30 with SMTP id 30so87942pzk.24 for ; Tue, 10 Nov 2009 07:42:02 -0800 (PST) In-Reply-To: <87pr7q4f5k.fsf@gmx.de> (Sebastian Rose's message of "Tue, 10 Nov 2009 15:40:07 +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: Sebastian Rose Cc: emacs-orgmode@gnu.org, andrea Crotti Sebastian Rose writes: > andrea Crotti writes: >> Eric Schulte gmail.com> writes: >> >>> >>> The two separate mechanisms are confusion, but for now are necessary to >>> allow org-mode users to evaluate some simple block types (like dot) on >>> export without having to load up all of org-babel. >>> >>> I hope the above isn't too confusing :) -- Eric >>> >> >> >> No no thanks a lot not it's very clear. >> Coming back to my original question, am I able to insert directly >> the eps generated in my final generated pdf?? >> >> Maybe I have to >> #+begin_dot -Tpdf -o file.pdf >> ... >> #+end_dot >> >> And then somewhere write some latex code to include it? >> #+begin_latex >> \includegraphics.. >> #+end_latex > > Yes, you can include the eps image like this at any point - not sure if > you need to run the export twice, once the dot block changes. > > > But the dot block itself will always be executed and replaced by the > resulting image. This is absolutely fine in 99% of all cases. > > Suppose you want to refer to the image several times, how about this > then: > > 1. Create a file your-org-directory/images/images.org > 2. Put all images into that file, that you need to reference more > than once, or that you need to be out of sight to avoid clutter. > 3. Include your images using the relative path to > ../your-org-directory/images/resulting-image.eps > 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 > > > > > Sebastian > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode