ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* xtable question
@ 2012-05-17  9:59 Meer, H. van der
  2012-05-17 10:11 ` xtable question backgroundcolor Meer, H. van der
  0 siblings, 1 reply; 2+ messages in thread
From: Meer, H. van der @ 2012-05-17  9:59 UTC (permalink / raw)
  To: ConTeXt NTG; +Cc: Hans Hagen

I have the following xmlsetup for a tablecell in xtable (plus other appropiate definitions):
\startxmlsetups xmlcommon:td
\startxcell[\doifnot{\xmlatt{#1}{width}}{\empty}{width={\xmlatt{#1}{width}}},]
  \xmlflush{#1}
\stopxcell
\stopxmlsetups

and the following table:
<table>
  <tr>
	  <td>
		One
	  </td>
	<td width="8cm">
		Two
	  </td>
  </tr>
  <tr>
	<td>
	  <b>Three</b>
	</td>
	<td width="8cm">
	  Four
	</td>
  </tr>
</table>

Why isn't the width setting on the cells not honoured and is the following message appearing in the log:
check  > missing or ungrouped '=' after '\doifnot {8cm}{}{width={8cm}}'

Also I tried \expanded{startxcell..} but it made no difference.
Neither does width={\xmlatt{#1}{width}} because the a broad setting results instead of a cell 8cm wide.

How can I then accomplish the following parameter scheme?
on <td width="dimension"> the \startcellx[ takes width=dimension,
on <td> the \startcellx does not take a width-paarameter.

Hans van der Meer



___________________________________________________________________________________
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] 2+ messages in thread

* xtable question backgroundcolor
  2012-05-17  9:59 xtable question Meer, H. van der
@ 2012-05-17 10:11 ` Meer, H. van der
  0 siblings, 0 replies; 2+ messages in thread
From: Meer, H. van der @ 2012-05-17 10:11 UTC (permalink / raw)
  To: ConTeXt NTG; +Cc: Hans Hagen

I have the following xmlsetup for a table and tablecell in xtable (plus other appropiate definitions):
\startxmlsetups xmlcommon:table
\startembeddedxtable[background=color,backgroundcolor=\xmlatt{#1}{bgcolor}]
..
\startxmlsetups xmlcommon:td
\startxcell[backgroundcolor=\xmlatt{#1}{bgcolor},]
..
\stopxmlsetups

and the following table:
<table bgcolor="orange">
 <tr>
	  <td>
		One
	  </td>
	<td width="8cm">
		Two
	  </td>
 </tr>
 <tr>
	<td bgcolor="yellow">
	  <b>Three</b>
	</td>
	<td width="8cm">
	  Four
	</td>
 </tr>
</table>

Then without the yellow on the cell the whole table colors its background orange. But with it only the given cell has yellow background, the others lose their orange.
Is this as should be? Or is something wrong?

Hans van der Meer


___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2012-05-17 10:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-17  9:59 xtable question Meer, H. van der
2012-05-17 10:11 ` xtable question backgroundcolor Meer, H. van der

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).