At 06:22 PM 12/12/2002 +0100, you wrote:
Hi,
I try to HTML->PDF some HTML pages using ConTeXt. Unfortunally, some of them contain tables for layout reasons. Seemingly there is no pagebreak possible within a \bTD. Any ideas what to do in this case?
An additional problem is that <td><h2>foo</h2></td> appear.
which gets translated as: \defineXMLsingular[h2] \section
\defineXMLenvironment[table] \bTABLE \eTABLE \defineXMLnested[tr] \bTR \eTR \defineXMLnested[td] \bTD \eTD \defineXMLnested[th] \bTH \eTH
How should I define "h2" in order to get a section (bookmarks, table of contents) within that bTD ... eTD, currently 'foo' is rendered in the normal textsize.
[[ beware: singular is meant for empty elements (this way you can treat 'm different) ]] \starttext \usemodule[contml] \autoXMLnamespace [context] \setupTABLE[split=yes] \defineXMLcommand[h1] {\ifinner \expandafter \bfd \else \expandafter \section \fi} \startbuffer <table> <tr> <td> <h1> misusing tags </h1> </td> </tr> <tr> <td> misusing the h1 tag for </td> </tr> <tr> <td> getting a larger font is </td> </tr> <tr> <td> a typical example of how </td> </tr> <tr> <td> html tags are misused </td> </tr> </table> \stopbuffer \dorecurse{20}{\processXMLbuffer} \stoptext ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------