On 2/8/2015 3:40 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
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]
i don't like these as tags (you can define start-stops if needed)
\definehighlight[emphasis] [\c!command=\v!no,\c!style=\v!italic] %
Does Hans prefer slanted here for default??
depends \em would do
\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]
we have an abbreviations mechanism already
\definehighlight[typing] [\c!command=\v!no,\c!style=\v!mono]
we have a typing environment already
\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
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________