From: "R. Ermers, Midden Oosten Perspectief" <r.ermers@hccnet.nl>
To: Mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: xml - handling of figures
Date: Sun, 6 Mar 2011 11:34:30 +0100 [thread overview]
Message-ID: <41204BD9-416F-41B5-B72D-25C37D3C9182@hccnet.nl> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1623 bytes --]
Dear all,
I converted a latex file to xml docbook by means of pandoc. In intend to process the file with context. The first results are very promising.
I have some questions on processing graphics.
The source file looks like this:
<inlinemediaobject>
<imageobject>
<imagedata fileref="plaatje1.jpg" scale="1.2"/>
</imageobject>
</inlinemediaobject>
<inlinemediaobject>
<imageobject>
<imagedata fileref="plaatje1.jpg" width="30mm" height="25mm"/>
</imageobject>
<caption><para>caption to this wonderful cow<para></caption>
</inlinemediaobject>
<inlinemediaobject>
<imageobject>
<imagedata fileref="plaatje1.jpg" width="30mm" height="25mm"/>
</imageobject>
</inlinemediaobject>
(see also http://www.docbook.org/tdg5/en/html/imageobject.html)
I defined the setups as follows:
\startxmlsetups xml:inlinemediaobject:imageobject:imagedata
\placeedgefigure{}{\framed[frame=off]{\setlayer[graphics]{\externalfigure[\xmlatt{#1}{fileref}]}}}
\stopxmlsetups
Context places the figures nicely in the file. So far so good!
Now I would like to use:
1. the scaling information in the scale attribute
2. in some instances the image is not scaled, but needs to be enlarged according to a fixed height and width.
3. I would like to print the caption.
I looked into Hans' documents on xml, but the examples are different from those that I have. At least, I seem not to understand them.
Does anyone have an advice?
[-- Attachment #1.2: Type: text/html, Size: 7486 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
reply other threads:[~2011-03-06 10:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41204BD9-416F-41B5-B72D-25C37D3C9182@hccnet.nl \
--to=r.ermers@hccnet.nl \
--cc=ntg-context@ntg.nl \
/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.
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 NNTP newsgroup(s).