ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: XML and table interpretation
Date: Mon, 10 Apr 2006 18:48:29 +0200	[thread overview]
Message-ID: <443A8C5D.4040307@wxs.nl> (raw)
In-Reply-To: <E1FSzKV-00009U-00@smtp06.web.de>

Johannes Graumann wrote:
> Hans,
>
> With your help, I got this to work:
>
> \defineXMLnested
> [table]
> {
> \bgroup
> \defineXMLsave[caption]
> \defineXMLsave[header]
>   
maybe :

\defineXMLnested[header]
  {\bTABLEhead}
 {\eTABLEhead}

> \defineXMLsave[body]
>   
> }
> {
> \placetable
> [\XMLpar{table}{location}{here}]
> [\XMLpar{table}{label}{unknown}]
> {\XMLflush{caption}}
> {
> \ix\setupinterlinespace[reset,small]
> \framed[frame=off,topframe=on,bottomframe=on,offset=none,rulethickness=1pt]
> \bgroup
> \setupTABLE[frame=off,split=repeat,splitmethod=a]
> \expanded{\bTABLE[distance=10pt]\XMLflush{header}\XMLflush{body}}\eTABLE
> \egroup
> \x}
> \egroup
> }
>
> \defineXMLnested 
> [tr]
> [bottomframe=off,rulethickness=0.3pt]
> {\expanded{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}}
> {\eTR}
>
> \defineXMLnested
> [td]
> [rows=1,cols=1]
> {\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]}
> {\eTD}
>
> But my endless quest for perfection would prefer something like
> \expanded{\bTABLE[distance=10pt]\bTABLEhead\XMLflush{header}\eTABLEhead\bTABLEbody\XMLflush{body}\eTABLEbody}\eTABLE
> , so I can read in a table like this AND have it spread over multiple pages:
> <table label="Name">
>  <caption>
>   Semething
>  </caption>
>  <header>
>   <tr bottomframe="on"><td rows="2">Gene product</td><td cols="3">HPM  
>   tag</td><td rows="2">TAP tag</td><td rows="2">mod. TAP tag</td><td  
>   rows="2">Frequ. in ref. set</td></tr>
>   <tr
> bottomframe="on"><td>Exp.&thinspace;1</td><td>Exp.&thinspace;2</td><td>Exp.&thinspace;3</td></tr>
>  </header>
>  <body>
>   <tr><td>Gcn5p</td><td>41&thinspace;(41)</td><td>25&thinspace;  
>   (25)</td><td>65&thinspace;(65)</td><td>19&thinspace;
>   (19)</td><td>21&thinspace;(21)</td><td>4.55&percent;</td></tr>
>  </body>
> </table>
>
> The error I get when trying this is:
> ! Argument of \dotripletestemptyx has an extra }.
> <inserted text>
>                 \par
> <to be read again>
>                    }
> \expanded ...long \xdef \@@expanded {\noexpand #1}
>                                                   \@@expanded
> \dogetgrouped ...ody \XMLflush {body}\eTABLEbody }
>                                                   \eTABLE \egroup \x }
> \egroup
> l.417                   </table>
>
> After searching the archives I was wondering whether the multipage aspect is
> doable at all with 'TABLE' and if yes how.
>
> Thanks for any further input,
>
> Joh
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   


-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2006-04-10 16:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-09 23:52 Johannes Graumann
2006-04-10  0:15 ` Hans Hagen
2006-04-10  0:22   ` Johannes Graumann
2006-04-10 16:29   ` Johannes Graumann
2006-04-10 16:48     ` Hans Hagen [this message]
2006-04-10 16:56     ` Hans Hagen
2006-04-11  5:25       ` Johannes Graumann

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=443A8C5D.4040307@wxs.nl \
    --to=pragma@wxs.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).