From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Amiguet Subject: Export attributes for babel blocks Date: Mon, 2 Oct 2017 08:46:49 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c19d2226ff173055a8abea3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyuVW-0006Vg-S6 for emacs-orgmode@gnu.org; Mon, 02 Oct 2017 02:47:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyuVW-0001Z3-0E for emacs-orgmode@gnu.org; Mon, 02 Oct 2017 02:47:14 -0400 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:50017) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dyuVV-0001Xe-Ng for emacs-orgmode@gnu.org; Mon, 02 Oct 2017 02:47:13 -0400 Received: by mail-lf0-x22f.google.com with SMTP id c82so1071630lfc.6 for ; Sun, 01 Oct 2017 23:47:12 -0700 (PDT) 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" To: emacs-orgmode@gnu.org --94eb2c19d2226ff173055a8abea3 Content-Type: text/plain; charset="UTF-8" Dear all, I have been having this issue for quite a while perhaps I am using the feature wrong and someone can enlighten me or perhaps someone can point me at the bit of code I can patch it myself. Here is the issue: I have a babel block such as #+begin_src dot :file test.png digraph test { A -> B } #+end_src This will create after execution a #+RESULT: [[file:./test.png]] Now if I would like have something like :width .5/.linewith as a attribute to the image the only I have found is to do the following #+begin_src dot :file test.png :exports none digraph test { A -> B } #+end_src #+attr_latex: width=.5/linewidth [[file:./test.png]] Is there a way of passing the export attributes to babel blocks in a way in which from direct rendering of the document things work and I can adjust? If now which part of the org mode codebase controls all of this? Thanking you all in advance. -- Juan Amiguet Vercher Practising theorist All-round geek Polyglot polymath +41(0)774867913 --94eb2c19d2226ff173055a8abea3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear all= ,

I have been having this issue for quite a while perhaps I am= using the feature wrong and someone can enlighten me or perhaps someone ca= n point me at the bit of code I can patch it myself.
Here is the i= ssue:

I have a babel block such as

#+begin_src d= ot :file test.png
digraph test {
A -> B
}
#+end_src

This will create after execution a =

#+RESULT:
[[file:./test.png]]

Now if I = would like have something like :width .5/.linewith as a attribute to the im= age the only I have found is to do the following

#+begin_src dot :fi= le test.png :exports none
digraph test {
A -> B
}
#+end_src

#+attr_latex: width=3D.5/linewidt= h
[[file:./test.png]]

Is there a way of passing the export = attributes to babel blocks in a way in which from direct rendering of the d= ocument things work and I can adjust?
If now which part of the or= g mode codebase controls all of this?

Thanking you= all in advance.

--
Juan Amiguet Vercher
Practising theorist
A= ll-round geek
Polyglot polymath

+41(0)774867913
--94eb2c19d2226ff173055a8abea3--