From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66683 Path: news.gmane.org!not-for-mail From: "R. Ermers, Midden Oosten Perspectief" Newsgroups: gmane.comp.tex.context Subject: xml - handling of figures Date: Sun, 6 Mar 2011 11:34:30 +0100 Message-ID: <41204BD9-416F-41B5-B72D-25C37D3C9182@hccnet.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/mixed; boundary="===============1795748470==" X-Trace: dough.gmane.org 1299407695 20799 80.91.229.12 (6 Mar 2011 10:34:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Mar 2011 10:34:55 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 06 11:34:51 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PwBIX-0008BD-Tn for gctc-ntg-context-518@m.gmane.org; Sun, 06 Mar 2011 11:34:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4845FCAAAC; Sun, 6 Mar 2011 11:34:49 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KzvAxE1Qsf6k; Sun, 6 Mar 2011 11:34:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DCFAFCAA79; Sun, 6 Mar 2011 11:34:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 82E67CAA79 for ; Sun, 6 Mar 2011 11:34:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YJMpWWeINTcR for ; Sun, 6 Mar 2011 11:34:33 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 1B922CAA16 for ; Sun, 6 Mar 2011 11:34:33 +0100 (CET) Original-Received: from cpsmtpb-ews07.kpnxchange.com (cpsmtpb-ews07.kpnxchange.com [213.75.39.10]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p26AYWqL027416 for ; Sun, 6 Mar 2011 11:34:32 +0100 Original-Received: from cpbrm-ews04.kpnxchange.com ([10.94.84.135]) by cpsmtpb-ews07.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 6 Mar 2011 11:34:31 +0100 Original-Received: from CPSMTPM-CMT101.kpnxchange.com ([195.121.3.17]) by cpbrm-ews04.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 6 Mar 2011 11:34:32 +0100 Original-Received: from imac-van-robert.lan ([77.168.85.243]) by CPSMTPM-CMT101.kpnxchange.com with Microsoft SMTPSVC(7.0.6002.18264); Sun, 6 Mar 2011 11:34:31 +0100 X-Mailer: Apple Mail (2.1082) X-OriginalArrivalTime: 06 Mar 2011 10:34:31.0177 (UTC) FILETIME=[13D55790:01CBDBEA] X-RcptDomain: ntg.nl X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.75.39.10; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05EfKywJC - 253a191ee9ec - 20110306 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:66683 Archived-At: --===============1795748470== Content-Type: multipart/alternative; boundary=Apple-Mail-561--1022076433 --Apple-Mail-561--1022076433 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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: caption to this wonderful cow (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=3Doff]{\setlayer[graphics]{\externalfigur= e[\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? --Apple-Mail-561--1022076433 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii 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=3D"plaatje1.jpg" = scale=3D"1.2"/>
           =  </imageobject>
         =  </inlinemediaobject>

 &nbs= p;     =  <inlinemediaobject>
     =        <imageobject>
   =            <imagedata = fileref=3D"plaatje1.jpg" width=3D"30mm" = height=3D"25mm"/>
           =  </imageobject>
 <caption><para>capt= ion to this wonderful = cow<para></caption>
 </inlinemediaobject>=


 =       =  <inlinemediaobject>
       =      <imageobject>
     =          <imagedata fileref=3D"plaatje1.jpg" = width=3D"30mm" height=3D"25mm"/>
       =      </imageobject>
     =     =  </inlinemediaobject>

(see also http://www.d= ocbook.org/tdg5/en/html/imageobject.html)

I defined the setups as = follows:

\startxmlsetups = xml:inlinemediaobject:imageobject:imagedata
\placeedgefigure{}{\framed[frame=3Doff]{\setlayer[graphics]{\externalfig= ure[\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?


= --Apple-Mail-561--1022076433-- --===============1795748470== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1795748470==--