[NTG-context] Generating HTML

2021-10-11 Thread Hans Åberg via ntg-context
I would want to generate HTML, but in the example below, "html-test.tex", the 
index does not show in the file "html-test-export/html-test-div.html", and the 
source file \index{…}, gets in the HTML a black triangle. The index and links 
work fine in "html-test.pdf", though.


— html-test.tex —
\definefontfamily [mainface][math][stix]
\setupbodyfont[mainface,10pt]

\setupinteraction[state=start, click=yes, focus=standard, color=darkblue]

\setupbackend[export=yes] % Exporting HTML/XML


\defineregister [index]
\setupregister  [index] [indicator=no]

\startchapter[title={Introduction}]

Foobar\index{foobar} out of working order.

\startbodymatter

Foo\index{foo} or bar\index{bar}.

\startbackmatter

\completeindex

\stopbackmatter

\stoptext
—

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] generating html

2004-06-23 Thread jimarin
is there an easy way to transform a ConTeXt document into html...?

regards

Jose
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] generating html

2004-06-23 Thread Matt Gushee
On Wed, Jun 23, 2004 at 04:04:20PM +0200, [EMAIL PROTECTED] wrote:
 is there an easy way to transform a ConTeXt document into html...?

I searched the archives of this mailing list about a year ago for info
on that subject, and found nothing. So it would appear there is no such
way ... though I didn't investigate very deeply.

What I would do--if I were working with new documents--would be to
create the documents in XML; then I could use ConTeXt for the print
version, and XSLT to generate HTML. XSLT isn't exactly easy, but it is
proven and widely used.

If you need to work with documents that are already in ConTeXt ...  you
know, now that I think about it, it probably wouldn't be very hard to
write a script to translate ConTeXt to XML. Once you've done that
translation,  you use XSLT to output HTML.

Again, not easy, but certainly feasible.

-- 
Matt Gushee When a nation follows the Way,
Englewood, Colorado, USAHorses bear manure through
[EMAIL PROTECTED]   its fields;
http://www.havenrock.com/   When a nation ignores the Way,
Horses bear soldiers through
its streets.

--Lao Tzu (Peter Merel, trans.)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] generating html

2004-06-23 Thread Hans Hagen
[EMAIL PROTECTED] wrote:
is there an easy way to transform a ConTeXt document into html...?
regards
 

Eitan has added some support for that to tex4ht so that may become a feasible way of doing it (depends on the layout and such); so, maybe you whould look into that (beta zip on tex4ht site) 

Hans 

-
 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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context