Hi, I am new to Context (coming from Latex) and very much like it: very nice job! I would like to export my document to HTML. I am only interested by the basic formatting (like fonts, size...) and sections. I carefully read this page: http://wiki.contextgarden.net/epub As far as I understood and seen the font and style switching (like \it) are ignored. First question: is it possible to avoid that behavior? If not, it brings me to my second question: I am using the bib module to manage a bibtex bibliography. The formatting of the reference section is done internally and include some style (italic) which isn't present in the XHTML output. How can have it present somehow? Thanks Charles
Am 30.09.2011 um 14:29 schrieb Charles:
Hi,
I am new to Context (coming from Latex) and very much like it: very nice job!
I would like to export my document to HTML. I am only interested by the basic formatting (like fonts, size...) and sections. I carefully read this page: http://wiki.contextgarden.net/epub
As far as I understood and seen the font and style switching (like \it) are ignored. First question: is it possible to avoid that behavior?
\setupbackend[export=yes] \definehighlight[strong][style=bold] \definehighlight[emph] [style=italic] \starttext text \strong{text} text \emph{text} text \stoptext Wolfgang
Am 2011-09-30 um 14:29 schrieb Charles:
I would like to export my document to HTML. I am only interested by the basic formatting (like fonts, size...) and sections.
ConTeXt’s HTML export is not meant to be presentationally equivalent to the PDF, but semantically equivalent to the TeX source. Fonts, sizes etc. have nothing to do with (semantic) structure and therefore don’t belong into HTML, but in CSS. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
OK. Then how to make the journal (for example) in the bibliography to be in an element of the structure rather than only some style ? Thanks Charles Le 30/09/2011 15:42, Henning Hraban Ramm a écrit :
Am 2011-09-30 um 14:29 schrieb Charles:
I would like to export my document to HTML. I am only interested by the basic formatting (like fonts, size...) and sections.
ConTeXt’s HTML export is not meant to be presentationally equivalent to the PDF, but semantically equivalent to the TeX source.
Fonts, sizes etc. have nothing to do with (semantic) structure and therefore don’t belong into HTML, but in CSS.
Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
___________________________________________________________________________________
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 ___________________________________________________________________________________
participants (3)
-
Charles
-
Henning Hraban Ramm
-
Wolfgang Schuster