[NTG-context] How to process simple HTML files with LuaTeX

Mojca Miklavec mojca.miklavec.lists at gmail.com
Thu Sep 13 15:04:34 CEST 2007


I was trying to figure out how to process simple HTML files with the
new code, but I fail to understand the details. Here's a simple file I
would like to process:

	<title>My first HTML2ConTeXt</title>
	<h1>Main Title</h1>
	<p>Some text ...</p>
	<p>Some text again ...</p>
	<h1>Second title</h1>
	<p>... and not much more text here either ...</p>

And the failed tries here:

% engine=luatex


\startxmlsetups h1
\subject{H1: #1}

\startxmlsetups h2
\subsubject{H2: #1}

How to grab only the title out of here?



Any hints most wellcome.

Thank a lot,

More information about the ntg-context mailing list