ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* textblocks in tables
@ 2007-03-16  8:41 Bernhard Michael
  2007-03-16 10:06 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Bernhard Michael @ 2007-03-16  8:41 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2072 bytes --]

Hi list

After writing some documents in LaTeX I discovered ConTeX. It's a great macro package for TeX. It gives me the flexibility I missed with LaTeX.

However it isn't that easy to start with :-) Especially when some advanced functionality is needed...

I write a document where I have to describe requirements. I want to give these requirements a running number over all chapters and I also need to prioritise them.

My idea is to describe the requirements in several chapter. At the end I want to list all the requirements together with their priority.

I tried the following code but unfortunately it didn't work:

\defineenumeration[Requirement][location=left,text=Req,width=broad,after={\blank[small]}]
\defineblock[Requirement,Priority]
\setupblock[Requirement][after=]
\hideblocks[Priority]

\starttext

\chapter{Description of requirements}

\beginRequirement
\Requirement A requirement \par
\endRequirement
\beginPriority
A
\endPriority
Description of the requirement.

\beginRequirement
\Requirement An other requirement \par
\endRequirement
\beginPriority
C
\endPriority
Description of the requirement.

\chapter{Additional requirements}

\beginRequirement
\Requirement An additional requirement \par
\endRequirement
\beginPriority
B
\endPriority
Description of the requirement.

\beginRequirement
\subRequirement A sub requirement \par
\endRequirement
\beginPriority
C
\endPriority
Description of the requirement.

\chapter{Summary of requirements}
% Here I would like to list all requirements with their priorities in a table
% I tried something like this but it didn't work
\reset[Requirement]
\setupblock[Requirement][before=\HL\VL,after=]
\setupblock[Priority][before=\VL,after=\VL\MR
\starttable[|l|c|]
\useblocks[Requirement,Priority]
\stoptable

\stoptext

Is it possible to use text blocks within tables or does an other way exists to do the same thing? It doesn’t have to be a table necessarily. I need some sort of compact listing.

Thanks in advance for your help!

Michael

[-- Attachment #1.2: Type: text/html, Size: 2722 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2007-03-18  7:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16  8:41 textblocks in tables Bernhard Michael
2007-03-16 10:06 ` Wolfgang Schuster
2007-03-16 14:29   ` Bernhard Michael
2007-03-16 15:09     ` Wolfgang Schuster
2007-03-16 16:05       ` Bernhard Michael
2007-03-16 17:51         ` Wolfgang Schuster
2007-03-17 16:22           ` Bernhard Michael
2007-03-18  7:56             ` 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).