* xml - handling of figures
@ 2011-03-06 10:34 R. Ermers, Midden Oosten Perspectief
0 siblings, 0 replies; only message in thread
From: R. Ermers, Midden Oosten Perspectief @ 2011-03-06 10:34 UTC (permalink / raw)
To: Mailing list for ConTeXt users
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-06 10:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-06 10:34 xml - handling of figures R. Ermers, Midden Oosten Perspectief
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).