Re: [NTG-context] style questions

2004-01-01 Thread Janko Hauser
On Thu, 1 Jan 2004 23:23:41 +0100
Henning Hraban Ramm <[EMAIL PROTECTED]> wrote:

> 
> Am Donnerstag, 01.01.04, um 20:49 Uhr (Europe/Zurich) schrieb Janko 
> Hauser:
> > 2. In the example there is an indirection for the section
> > definitions.
> >
> >\definehead [Topic]   [chapter]
> >\definehead [Nopic]   [title]
> >
> >Later on the newly defined headers are styled. But they are
> >used as the only headers throughout the document. So why not
> >style the original ones?
> 
> I copied my styles from one of Hans', he used Topic/Nopic, and I
> just didn't change it - first I didn't understand what was going on,
> later I was too lazy...
> 
> 

Thanks for the info. I learned a lot from the examples. It is good to
have a structure for playing with the parameters.

__Janko
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] style questions

2004-01-01 Thread Henning Hraban Ramm
Am Donnerstag, 01.01.04, um 20:49 Uhr (Europe/Zurich) schrieb Janko 
Hauser:
2. In the example there is an indirection for the section definitions.

   \definehead [Topic]   [chapter]
   \definehead [Nopic]   [title]
   Later on the newly defined headers are styled. But they are used as
   the only headers throughout the document. So why not style the
   original ones?
I copied my styles from one of Hans', he used Topic/Nopic, and I just
didn't change it - first I didn't understand what was going on,
later I was too lazy...
Grüßlis vom Hraban!
--
http://www.fiee.net/texnique/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] style questions

2004-01-01 Thread Janko Hauser
Hello everybody,

Over the last days I started to write a "Requirement" document. I
started from the example documents provided at the fiee-site, which
are a big help. I use this as an exercise to see, what markup is
actually needed in the content, to transform from XML documents later
on.

First some things I already solved, but want to ask, if it was in the
right way.

1. I want to mark some words consistently and used the \definesynonyms
   command for this, although I only use the second form.

   \definesynonyms[glossar][explanation][\infull]
   \glossar [ZOPE] {\em Zope} {Web Applikationsserver}

   Is there a better way to style words consistently? I find it
   difficult to distinguish between \ZOPE\ and \ZOPE, especially for
   the possible later translation from XML.

2. In the example there is an indirection for the section definitions.

   \definehead [Topic]   [chapter]
   \definehead [Nopic]   [title]

   Later on the newly defined headers are styled. But they are used as
   the only headers throughout the document. So why not style the
   original ones?

3. I have defined colored header bars in the following ways.

\setuphead
  [subject, Subject,section]
  [command=\mysec,
   page=no,
   continue=no,
   style={\ss\bs},
   color=black]

\def\mysec#1#2{\framed[width=\textwidth,
   corner=round,
   radius=0.05em,
   background=color,
   backgroundcolor=HKS5,
   framecolor=HKS5]{\startnarrower[1*left,1*right] #2 \hfill #1
\stopnarrower}}

   They are spanning the complete textwidth. What I now want is to
   have a smaller textwidth, but the bars should remain broader, as
   broad as the header and footer lines. Any hints?

4. How to deal with metadata, like author, version, last modified and
   so. Would you recommend to use buffers for this? This information
   is probably used on the title page and the footer of each page.

Ok, now a real question. I want to style the actual requirements in
form of a papercard, whith their actual status at the top. This would
be an new definition with 2 or 3 arguments. But the requirements
should also be enumerated. How can one build such an environment?
Derive somehow from \defineenumeration?

---
|ReqNbr  | Title   | status | date|
---
| longer text  with paragraphs and pagebreaks |
---

Sorry for the ascii-art (cough :-). These cards should be able to span
more than one page. In the light of this a table with running heads
would also be an option, right?

Thanks for this great package, it is a lot of fun and full of gems.

TIA,

__Janko
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context