From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: emacs-orgmode@gnu.org
Subject: Re: Add caption to babel-generated images
Date: Tue, 30 Aug 2016 13:55:01 +0200 [thread overview]
Message-ID: <8760qiii96.fsf@saiph.selenimh> (raw)
In-Reply-To: <20160830110410.GA19154@gmail.com> (Georgiy Tugai's message of "Tue, 30 Aug 2016 20:34:10 +0930")
Hello,
Georgiy Tugai <georgiy.tugai@gmail.com> writes:
> I don't know if it'll work for Python, but here's an example of what
> works for me with Ditaa:
>
>> #+BEGIN_SRC ditaa :file figs/-mininet-ovsk.png :cache yes
>> /----+ /----+ /----+ /----+
>> |host| |host| |host| |host| Containers
>> +-+--/ +-+--/ +--+-/ +--+-/
>> | | | |
>> ---------------------------------------------
>> | | | |
>> +-+------+-------+------+-+
>> | Open VSwitch | Host kernel
>> +-----+-------------+---=-+
>> | |
>> +------+-----+ +-----+------+
>> | controller | | controller | Host userspace
>> +------------+ +------------+
>> #+END_SRC
>>
>> #+ATTR_LATEX: :width "" :options [scale=0.75]
>> #+CAPTION: [[label:fig:mininet-arch]]Mininet with OpenVSwitch architecture
>> #+RESULTS[1d367d39f18523f4eb247cb13aabd6c6f633fbdf]: [[file:figs/-mininet-ovsk.png]]
>
> First, execute your Babel block in order to generate a #+RESULTS line.
> Then, add CAPTION, ATTR_LATEX etc. lines before the RESULTS line.
Exactly.
Also, there is no need for #+LABEL, which is an obsolete synonym for
#+NAME.
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2016-08-30 11:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-30 9:27 Add caption to babel-generated images Florian Lindner
2016-08-30 10:11 ` Nicolas Goaziou
2016-08-30 10:40 ` Florian Lindner
2016-08-30 11:04 ` Georgiy Tugai
2016-08-30 11:54 ` Florian Lindner
2016-08-30 12:02 ` Florian Lindner
2016-08-30 11:55 ` Nicolas Goaziou [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=8760qiii96.fsf@saiph.selenimh \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
/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).