From: Hans Hagen <pragma@wxs.nl>
Subject: Re: page breakes in \bTD \eTD / \chapter in \bTD
Date: Fri, 13 Dec 2002 09:21:44 +0100 [thread overview]
Message-ID: <5.1.0.14.1.20021213092038.00af8b40@server-1> (raw)
In-Reply-To: <3DF8C5EB.399D8466@gmx.de>
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
-------------------------------------------------------------------------
next prev parent reply other threads:[~2002-12-13 8:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-12 17:22 Tobias Burnus
2002-12-13 8:21 ` Hans Hagen [this message]
2002-12-13 10:18 ` Tobias Burnus
2002-12-13 10:49 ` Hans Hagen
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=5.1.0.14.1.20021213092038.00af8b40@server-1 \
--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).