From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: html-export - limit size of pic to page-size? Date: Mon, 4 Feb 2013 09:14:53 +1030 Message-ID: <8738xddnkq.fsf@ucl.ac.uk> References: <87y5f63yrk.fsf@googlemail.com> <871ucxpp0d.fsf@urmel.duenenhof-wilhelm.de> <87fw1de9yz.fsf@googlemail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U28I9-0007Cx-Id for emacs-orgmode@gnu.org; Sun, 03 Feb 2013 17:44:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U28I8-0006kw-Ew for emacs-orgmode@gnu.org; Sun, 03 Feb 2013 17:44:05 -0500 Received: from tx2ehsobe005.messaging.microsoft.com ([65.55.88.15]:33138 helo=tx2outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U28I8-0006ka-8K for emacs-orgmode@gnu.org; Sun, 03 Feb 2013 17:44:04 -0500 In-Reply-To: <87fw1de9yz.fsf@googlemail.com> (Thorsten Jolitz's message of "Sun, 3 Feb 2013 15:41:08 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thorsten Jolitz Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Thorsten Jolitz 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 --=-=-= Content-Type: text/org Content-Disposition: attachment; filename="uml.org" #+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]] --=-=-=--