* XML and table interpretation
@ 2006-04-09 23:52 Johannes Graumann
2006-04-10 0:15 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Johannes Graumann @ 2006-04-09 23:52 UTC (permalink / raw)
Why do these two things work:
1)\defineXMLnested
[td]
[rows=1,cols=1]
{\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]}
{\eTD}
(in conjunction with '<tr><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>')
2) \bTR[bottomframe=on,rulethickness=0.3pt]\bTD a \eTD\bTD b \eTD\bTD b
\eTD\bTD c \eTD\eTR%
But this doesn't?
\defineXMLnested
[tr]
[bottomframe=off,rulethickness=0.3pt]
{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}
{\eTR}
together with '<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>'
Thanks, Joh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: XML and table interpretation
2006-04-09 23:52 XML and table interpretation Johannes Graumann
@ 2006-04-10 0:15 ` Hans Hagen
2006-04-10 0:22 ` Johannes Graumann
2006-04-10 16:29 ` Johannes Graumann
0 siblings, 2 replies; 7+ messages in thread
From: Hans Hagen @ 2006-04-10 0:15 UTC (permalink / raw)
Johannes Graumann wrote:
> Why do these two things work:
>
> 1)\defineXMLnested
> [td]
> [rows=1,cols=1]
> {\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]}
> {\eTD}
> (in conjunction with '<tr><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>')
>
>
> 2) \bTR[bottomframe=on,rulethickness=0.3pt]\bTD a \eTD\bTD b \eTD\bTD b
> \eTD\bTD c \eTD\eTR%
>
> But this doesn't?
>
> \defineXMLnested
> [tr]
> [bottomframe=off,rulethickness=0.3pt]
> {\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}
> {\eTR}
>
\expanded{\bTR[....]}
has to do with the fact that TABLE collects its info and therefore you
need to freeze the settings
> together with '<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>'
>
> Thanks, 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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: XML and table interpretation
2006-04-10 0:15 ` Hans Hagen
@ 2006-04-10 0:22 ` Johannes Graumann
2006-04-10 16:29 ` Johannes Graumann
1 sibling, 0 replies; 7+ messages in thread
From: Johannes Graumann @ 2006-04-10 0:22 UTC (permalink / raw)
Thanks Hans, that did it. Do you ever sleep?
Joh
Hans Hagen wrote:
> Johannes Graumann wrote:
>> Why do these two things work:
>>
>> 1)\defineXMLnested
>> [td]
>> [rows=1,cols=1]
>> {\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]}
>> {\eTD}
>> (in conjunction with '<tr><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>')
>>
>>
>> 2) \bTR[bottomframe=on,rulethickness=0.3pt]\bTD a \eTD\bTD b \eTD\bTD b
>> \eTD\bTD c \eTD\eTR%
>>
>> But this doesn't?
>>
>> \defineXMLnested
>> [tr]
>> [bottomframe=off,rulethickness=0.3pt]
>>
{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}
>> {\eTR}
>>
> \expanded{\bTR[....]}
>
> has to do with the fact that TABLE collects its info and therefore you
> need to freeze the settings
>> together with '<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>'
>>
>> Thanks, Joh
>>
>> _______________________________________________
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: XML and table interpretation
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
2006-04-10 16:56 ` Hans Hagen
1 sibling, 2 replies; 7+ messages in thread
From: Johannes Graumann @ 2006-04-10 16:29 UTC (permalink / raw)
Hans,
With your help, I got this to work:
\defineXMLnested
[table]
{
\bgroup
\defineXMLsave[caption]
\defineXMLsave[header]
\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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: XML and table interpretation
2006-04-10 16:29 ` Johannes Graumann
@ 2006-04-10 16:48 ` Hans Hagen
2006-04-10 16:56 ` Hans Hagen
1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2006-04-10 16:48 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: XML and table interpretation
2006-04-10 16:29 ` Johannes Graumann
2006-04-10 16:48 ` Hans Hagen
@ 2006-04-10 16:56 ` Hans Hagen
2006-04-11 5:25 ` Johannes Graumann
1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2006-04-10 16:56 UTC (permalink / raw)
Johannes Graumann wrote:
> Hans,
>
> With your help, I got this to work:
>
> \defineXMLnested
> [table]
> {
> \bgroup
> \defineXMLsave[caption]
> \defineXMLsave[header]
> \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,
>
\defineXMLnested
[tr]
[bottomframe=off,rulethickness=0.3pt]
{\expanded{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}}
{\eTR}
\defineXMLnested
[td]
[rows=1,cols=1]
{\expanded{\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]}}
{\eTD}
\defineXMLnested
[table]
{\bgroup
\defineXMLsave[caption]
\defineXMLnested[header]{\bTABLEhead} {\eTABLEhead}
\defineXMLnested[body] {\bTABLEbody} {\eTABLEbody}
\placetable
[\XMLpar{table}{location}{here}]
[\XMLpar{table}{label}{unknown}]
{\XMLflush{caption}}
\bgroup
\setupTABLE[frame=off,split=repeat,splitmethod=a]
\ix\setupinterlinespace[reset,small]
\framed
[frame=off,topframe=on,bottomframe=on,offset=none,rulethickness=1pt]
\bgroup \bTABLE[distance=10pt]}
{\eTABLE
\egroup
\egroup
\egroup}
-----------------------------------------------------------------
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: XML and table interpretation
2006-04-10 16:56 ` Hans Hagen
@ 2006-04-11 5:25 ` Johannes Graumann
0 siblings, 0 replies; 7+ messages in thread
From: Johannes Graumann @ 2006-04-11 5:25 UTC (permalink / raw)
Hans Hagen wrote:
> \defineXMLnested
> [tr]
> [bottomframe=off,rulethickness=0.3pt]
>
{\expanded{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}}
> {\eTR}
>
> \defineXMLnested
> [td]
> [rows=1,cols=1]
> {\expanded{\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]}}
> {\eTD}
>
> \defineXMLnested
> [table]
> {\bgroup
> \defineXMLsave[caption]
> \defineXMLnested[header]{\bTABLEhead} {\eTABLEhead}
> \defineXMLnested[body] {\bTABLEbody} {\eTABLEbody}
> \placetable
> [\XMLpar{table}{location}{here}]
> [\XMLpar{table}{label}{unknown}]
> {\XMLflush{caption}}
> \bgroup
> \setupTABLE[frame=off,split=repeat,splitmethod=a]
> \ix\setupinterlinespace[reset,small]
> \framed
> [frame=off,topframe=on,bottomframe=on,offset=none,rulethickness=1pt]
> \bgroup \bTABLE[distance=10pt]}
> {\eTABLE
> \egroup
> \egroup
> \egroup}
Great! No more errors! But with this solution the caption disappears ...
strange. Also: breaking the table across pages doesn't work
despite 'split=repeat,splitmethod=a' - do I have to call a split explicitly
somewhere?
Joh
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-04-11 5:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-09 23:52 XML and table interpretation 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
2006-04-10 16:56 ` Hans Hagen
2006-04-11 5:25 ` Johannes Graumann
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).