Hello there,

Thanks to a hdd crash, I need to rewrite an old document of mine from
scratch (after setting up a software RAID on my machine).
Unfortunately, I let my ConTeXt faculties to rust…

I must deal with several problems (but I will apply the good old divide
and conquer rule).

So, here is a collection of unforgivable workarounds to produce what I
want to:

−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
\enableregime[utf8]

\setuppapersize[A4][A4]

\setupbodyfont[10pt]


\setuplayout[reset]
\setuplayout[
  location=singlesided,
  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=fit,
  width=fit,
  grid=yes]

\setuppagenumbering[state=stop]

\setupinmargin[style=normal,align=outer]

\define[1]\SectionCommand {
\blank % just because I always need some vertical space just before my
Section
\inleft{\bfa #1}
{\line{\leaders\hbox{\vrule width 1pt height .5\strutht depth
      -\dimexpr.5\strutht-\linewidth\relax} \hfil}}
\blank[-1*big] % Are you kidding me with that negative blank???
}

\define[4]\TopicCommand {
\inleft{{\em #1}}{\bfa #2 \hfill \tfx #3}
% \crlf % OK, give me a newline! But, the problem is that there is a big
%       % after space from inleft!
\blank[-1*big] % REALLY DUMMY WORKAROUND!!!
{\em #4}
}

\starttext

\SectionCommand{A Section}
\TopicCommand{The date}{Knuth's topic}{some text}{The detailled topic
  (more than one line)}

\input knuth

\blank % Are you kidding me???
\TopicCommand{Another date}{Zapf}{some text}{The detailled topic
  (more than one line)}

\input zapf

\SectionCommand{Section}

\TopicCommand{A date}{Tufte}{}{Some details}

\input tufte

\stoptext
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

OK, I need that… but a clean version…

Best Regards,

Renaud
___________________________________________________________________________________
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