[NTG-context] [HELP] colored text marked by a caption and across multipages

Wei_Hu at mtk.com.tw Wei_Hu at mtk.com.tw
Fri Sep 29 11:52:16 CEST 2006

Hi all,

<< 1 >>
First, I want to put source codes into my document.
I achieve this by using 'verbatim'

blah blah

<< 2 >>
Then I decide to add colors for these source codes, so I use:

blah blah
blah blah

<< 3 >>
Finally, I want to refer to this block of source codes in the rest 
document, so I use:

\placefloat[here][listing:sample]{Hello world}
blah blah
blah blah

and refer to it by \in{}[] and \at{}[].

<< 1 >> & << 2 >> & << 3 >> work great, however, if the source codes are 
long enough, and doesn't fit into one page,
then the bottom of it will not display.

After searching this mailing list, I found some methods: \bTABLE, 
\starttextbackground ..etc...
But none of them can achieve this facility.

I can accomplish this facility though LaTeX as described in page 2 ~ page 
3 in the attached file.
(It uses listings package in LaTeX)

All I want is a colored source codes marked by a caption, and I can refe 
to that source code using \in{}[] or \at{}[] primitives.
Are there any ways in ConTeXt can achieve this?


************* Email Confidentiality Notice ********************

The information contained in this e-mail message (including any attachments) may be confidential, proprietary, privileged, or otherwise exempt from disclosure under applicable laws. It is intended to be conveyed only to the designated recipient(s).  Any use, dissemination, distribution, printing, retaining or copying of this e-mail (including its attachments) by unintended recipient(s) is strictly prohibited and may be unlawful. If you are not an intended recipient of this e-mail, or believe that you have received this e-mail in error, please notify the sender immediately (by replying to this e-mail), delete any and all copies of this e-mail (including any attachments) from your system, and do not disclose the content of this e-mail to any other person.   Thank you!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20060929/28f58730/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: listingseg.pdf
Type: application/octet-stream
Size: 100252 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-context/attachments/20060929/28f58730/attachment-0001.obj 

More information about the ntg-context mailing list