ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Annotation and background color
@ 2011-05-07 10:44 Otared Kavian
  2011-05-07 12:04 ` Wolfgang Schuster
  2011-05-07 12:37 ` Wolfgang Schuster
  0 siblings, 2 replies; 11+ messages in thread
From: Otared Kavian @ 2011-05-07 10:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Wolfgang,

Following up one of the recent threads about your annotation module, I made some experiments and found it a wonderful and extremely useful module.
Out of curiosity, I wanted to know whether there is a key to set a background color for an annotation (as it is possible to use headcolor=darkred, or textcolor=darkgray, for instance).
Also I didn't get the difference between textcolor=darkgray and color=darkgray: are they the same?
The example I was testing is below.

Best regards: OK

\usemodule[annotation]

\define[2]\MyQuotationCommand
	{\textrule{#1}#2\textrule}

\defineannotation[MyQuotation]
	[alternative=command,
	command=\MyQuotationCommand,
	text=Quotation ,
	number=yes,
	headcolor=darkred,
	color=darkgray,
%	textcolor=darkgray,
	]

\starttext

\startMyQuotation{Peter D. Ward}
\input ward.tex
\stopMyQuotation

\startMyQuotation{Donald Knuth}
\input knuth
\stopMyQuotation

\MyQuotation{Wolfgang Schster}{The annotation module is wonderful!}

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-05-08 17:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-07 10:44 Annotation and background color Otared Kavian
2011-05-07 12:04 ` Wolfgang Schuster
2011-05-07 14:37   ` Otared Kavian
2011-05-07 15:24     ` Aditya Mahajan
2011-05-08 13:04       ` Otared Kavian
2011-05-07 15:29     ` Wolfgang Schuster
2011-05-08 13:10       ` Otared Kavian
2011-05-07 16:32     ` Wolfgang Schuster
2011-05-08 13:39       ` Otared Kavian
2011-05-08 17:40         ` Wolfgang Schuster
2011-05-07 12:37 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).