ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* caption for code listings
@ 2007-03-11 14:55 Steffen Fritzsche
  2007-03-12 10:42 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Steffen Fritzsche @ 2007-03-11 14:55 UTC (permalink / raw)
  To: ntg-context

hi,

I'm currently writing my diploma thesis with context. I already read the 
wiki and searched the manuals but I didn't find something like a common 
practice for defining new caption types.

My problem: I have a lot of code listings and I want to define a custom 
caption type (named listing) and aggregate them into a own register. I 
already set up a new register with

\defineregister [listing][Listing]

and it is also possible to place listings in this register with

\placelisting{
	\startJV
		...
	\stopJV
}

but how can I add a custom caption to this listing? I'm thinking of 
something like \placefigure. Or perhaps I must just setup placelisting. 
Any Idea? Thanks in advance!

Steffen

^ permalink raw reply	[flat|nested] 5+ messages in thread
* caption for code listings
@ 2007-03-12  7:00 Steffen Fritzsche
  0 siblings, 0 replies; 5+ messages in thread
From: Steffen Fritzsche @ 2007-03-12  7:00 UTC (permalink / raw)
  To: ntg-context

hi,

I'm currently writing my diploma thesis with context. I already read the
wiki and searched the manuals but I didn't find something like a common
practice for defining new caption types.

My problem: I have a lot of code listings and I want to define a custom
caption type (named listing) and aggregate them into a own register. I
already set up a new register with

\defineregister [listing][Listing]

and it is also possible to place listings in this register with

\placelisting{
	\startJV
		...
	\stopJV
}

but how can I add a custom caption to this listing? I'm thinking of
something like \placefigure. Or perhaps I must just setup placelisting.
Any Idea? Thanks in advance!

Steffen

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

end of thread, other threads:[~2007-03-12 12:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-11 14:55 caption for code listings Steffen Fritzsche
2007-03-12 10:42 ` Wolfgang Schuster
2007-03-12 11:22   ` Wolfgang Schuster
2007-03-12 12:14     ` Steffen Fritzsche
2007-03-12  7:00 Steffen Fritzsche

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).