* How to influence numbers in blocks
@ 1998-11-27 10:20 Berend de Boer
0 siblings, 0 replies; 2+ messages in thread
From: Berend de Boer @ 1998-11-27 10:20 UTC (permalink / raw)
Hello All,
I've a software specification document which lists every specification of
the system. At the end of the document I want to list all specifications. I
accomplished this by doing:
\doornummeren
[Requirement]
[plaats=links,
tekst=Eis,
breedte=5em]
\definieerblok[requirement]
...
\gebruikblokken[requirement][versie2]
But: for every specification there is also a version. At the end of the
document I want to list all specifications for a given version. I did:
\beginvanrequirement[version1]
\Requirement Hello world.
\eindvanrequirement
I now say:
\gebruikblokken[requirement][version1]
However, the numbering is wrong in such a case as it seems that blocks
which are not placed are skipped entirely, so they are not numbered. Is
there anyway I can influcence this so I can number sequentially throughout
the document and also have the same numbers in the overview?
------------sample.tex----------------
\doornummeren
[Requirement]
[plaats=links,
tekst=Eis,
breedte=5em]
\definieerblok[requirement]
\starttekst
\paragraaf{Alles}
\beginvanrequirement[versie2]
\Requirement Dit is eis 1 (versie 2).
\eindvanrequirement
\beginvanrequirement[versie1]
\Requirement Dit is eis 2 (versie 1).
\eindvanrequirement
\geenblokkenmeer
\reset[Requirement]
\paragraaf{Versie 1}
\gebruikblokken[requirement][versie1]
\paragraaf{Versie 2}
\gebruikblokken[requirement][versie2]
\stoptekst
------------sample.tex----------------
Groetjes,
Berend.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to influence numbers in blocks
@ 1998-11-27 12:20 Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 1998-11-27 12:20 UTC (permalink / raw)
Cc: 'ntg-context@ntg.nl'
Berend de Boer wrote:
> I've a software specification document which lists every specification of
> the system. At the end of the document I want to list all specifications. I
> accomplished this by doing:
What you want is (of course) possible:
%I Soms is het wenselijk tijdens \gebruikblokken sommige blokken
%I wel 'uit te voeren' maar niet (nogmaals) in de tekst op te
%I nemen. Als een blok wordt definieerd met:
%I
%I \beginvannaam[-]
%I tekst
%I \eindvannaam
%I
%I dan wordt het ter plaatse al dan niet gezet en bij het later
%I oproepen wel verwerkt maar niet gezet.
%I
%I Als in de tekst een blok wel moet worden verwerkt, maar niet
%I gezet, dan kan [+] worden opgegeven.
So, \beginofwhatever[+] means execute but do not typeset now, while [-]
means do not typeset when called for later.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-11-27 12:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-27 10:20 How to influence numbers in blocks Berend de Boer
1998-11-27 12:20 Hans Hagen
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).