emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Thorsten Jolitz <tjolitz@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: html-export - limit size of pic to page-size?
Date: Mon, 4 Feb 2013 09:14:53 +1030	[thread overview]
Message-ID: <8738xddnkq.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87fw1de9yz.fsf@googlemail.com> (Thorsten Jolitz's message of "Sun, 3 Feb 2013 15:41:08 +0100")

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]

Thorsten Jolitz <tjolitz@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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: uml.org --]
[-- Type: text/org, Size: 421 bytes --]


#+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]]


      parent reply	other threads:[~2013-02-03 22:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-03  2:41 html-export - limit size of pic to page-size? Thorsten Jolitz
2013-02-03  5:44 ` Eric S Fraga
2013-02-03  9:25   ` Thorsten Jolitz
2013-02-03 12:20 ` Dieter Wilhelm
2013-02-03 14:41   ` Thorsten Jolitz
2013-02-03 15:42     ` Dieter Wilhelm
2013-02-03 18:16       ` Thorsten Jolitz
2013-02-03 22:44     ` Eric S Fraga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8738xddnkq.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=tjolitz@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).