On Sun, 08 Feb 2015 07:01:31 -0700, Hans Hagen <pra...@wxs.nl> wrote:
the only reason why highlight exists is that it can be used to tag stuff
that is otherwise untagged in the exporter to xml
Ok, so I suppose \quote and \quotation already work in the exporter. The
following iteration then:
=============
\unprotect
\definehighlight[\v!italic ] [\c!command=\v!no,\c!style=\v!italic]
\definehighlight[\v!bold ] [\c!command=\v!no,\c!style=\v!bold]
\definehighlight[\v!bolditalic] [\c!command=\v!no,\c!style=\v!bolditalic]
\definehighlight[\v!mono] [\c!command=\v!no,\c!style=\v!mono]
\definehighlight[\v!monobold] [\c!command=\v!no,\c!style=\v!monobold]
\definehighlight[\v!smallcaps] [\c!command=\v!no,\c!style=\v!smallcaps]
\definehighlight[emphasis] [\c!command=\v!no,\c!style=\v!italic] %
Does Hans prefer slanted here for default??
\definehighlight[important] [\c!command=\v!no,\c!style=\v!bold]
\definehighlight[veryimportant] [\c!command=\v!no,\c!style=\v!smallcaps]
\definehighlight[unimportant] [\c!command=\v!no,\c!color=darkgray]
\definehighlight[warning]
[\c!command=\v!no,\c!style=\v!bold,\c!color=darkblue]
\definehighlight[error]
[\c!command=\v!no,\c!style=\v!bold,\c!color=darkred]
\definehighlight[booktitle] [\c!command=\v!no,\c!style=\v!italic]
\definehighlight[abbreviation] [\c!command=\v!no,\c!style=\v!smallcaps]
\definehighlight[propername] [\c!command=\v!no,\c!style=\v!smallcaps]
\definehighlight[typing] [\c!command=\v!no,\c!style=\v!mono]
\protect
\starttext
\highlight[italic] {italic}
\highlight[bolditalic] {bolditalic}
\highlight[bold] {bold}
\highlight[mono] {mono}
\highlight[monobold] {monobold}
\highlight[smallcaps] {smallcaps}
{\sc smallcaps} % this works
\smallcaps{smallcaps} % this command doesn't work!!
{\smallcaps smallcaps} % this command doesn't work!!
\highlight[important] {important}
\highlight[veryimportant] {very important}
\highlight[extraimportant] {extra important}
\highlight[unimportant] {unimportant}
\highlight[warning] {warning}
\highlight[error] {error}
\highlight[emphasis] {emphasis}
\highlight[abbreviation] {abbreviation}
\highlight[booktitle] {Book Title}
\highlight[propername] {Proper Name}
\highlight[typing] {typing}
\stoptext
=============
There seems to be a bug with \smallcaps. Otherwise I think the above makes
a good default set to start with.
Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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
___________________________________________________________________________________