Am 25.11.2010 um 21:27 schrieb Renaud AUBIN:

> Since my previous post doesn't seem inspiring at all (sniff), here is a
> simplified and more precise description of what need to be done:
> 
> [...]

\setupbodyfont[10pt]

\setuplayout
  [leftedge=0mm,
   leftmargin=45mm,
   rightedge=0mm,
   rightmargin=0mm,
   backspace=60mm,
   topspace=10mm,
   bottomspace=10mm,
   header=0mm,
   headerdistance=0mm,
   footer=0mm,
   footerdistance=0mm,
   margindistance=0mm,
   height=middle,
   width=middle,
   grid=yes]

\setuppagenumbering[state=stop]

\setuphead[section]   [style=,command=\SectionCommand]
\setuphead[subsection][style=,command=\SubsectionCommand]

\define[2]\SectionCommand
  {\inleftmargin{\leftaligned{\structuretitle}}%
   \blackrule
     [ width=\textwidth,
      height=+.3\lineheight,
       depth=-.2\lineheight]}

\define[2]\SubsectionCommand
   {\vbox\bgroup
      \inleftmargin{\leftaligned{\em\structureuservariable{date}}}%
      {\bfa\structuretitle}\wordright{\tfx\structureuservariable{topic}}
      \blank
      {\em\structureuservariable{info}}%
    \egroup}

\starttext

\startsection[title={A Section}]

\startsubsection
  [title={The detailled topic (which takes more than one line)}]
  [date={The date},topic={Knuth’s topic},info={some text}]

\input knuth

\stopsubsection

\startsubsection
  [title={The detailled topic (which takes more than one line)}]
  [date={Another date},topic={Zapf},info={some text}]

\input zapf

\stopsubsection

\stopsection

\startsection[title={Section}]

\startsubsection
  [title={Some details}]
  [date={A date},topic={Tufte}]

\input tufte

\stopsubsection

\stopsection

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to