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
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 -----------------------------------------------------------------
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
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
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 -----------------------------------------------------------------
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 -----------------------------------------------------------------
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
participants (2)
-
Hans Hagen
-
Johannes Graumann