Thorsten Jolitz <tjol...@googlemail.com> writes: > Is it possible to specify the html 'width=600' or 'width=auto' in the > 'begin_src' line or in the subtree-properties - or do I have to let my > program write the > > ,------------------------ > | +ATTR_HTML: width="600" > `------------------------ > > on top of the inserted link to 'class-diagram.png' when exporting to > html?
You can put that line immediately above the #+RESULTS line after the first time you evaluate the source code block. Subsequent evaluations of the source code will replace the results but will leave those lines present. See the attached example. This is easier, in my opinion, than having to change the code to generate a specific size, especially if have different export targets for the same document. HTH, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org 7.9.3e-897-g787a07
#+name: umltest #+begin_src plantuml :file uml.png :exports results skinparam monochrome true autonumber footbox off actor Somebody #white actor me #882222 Somebody -> me : ask for grant review me -> me : spend some time thinking about this Somebody <- me : review grant #+end_src #+CAPTION: UML diagram #+LABEL: fig:uml #+ATTR_LATEX: width=\linewidth #+ATTR_HTML: width="600px" #+results: umltest [[file:uml.png]]