ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Peter Münster" <pmlists@free.fr>
Subject: Re: High level user macro (howto?)
Date: Tue, 10 Aug 2004 14:11:41 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0408101409200.23303@gaston.free.fr> (raw)
In-Reply-To: <Pine.LNX.4.58.0408101351380.22799@gaston.free.fr>

Pardon, I forgot the whole tex-file:

\useregime[il1]
\enableregime[il1]
\useencoding[ffr]
\definehspace[fr][:][.16667em]
\definehspace[fr][;][.16667em]
\definehspace[fr][!][.16667em]
\definehspace[fr][?][.16667em]
\mainlanguage[fr]
\newdimen\BigWidth \BigWidth=18cm
\setupscreens[screen=0.85]
\setupcolors[state=start]
\setupheadertexts[Rév.: \the\RevC]
\def\Vfil{\vskip0pt plus3fil\relax}
\def\In[#1,#2]{\ifx#1\empty\else\in[#1]\fi\if\relax#2\else, \In[#2]\fi}
\def\BigTitle{\centerline{\framed[width=\BigWidth,offset=2mm,
      background=screen]{\bfb\setupinterlinespace\cbox{Title}}}}

\def\startChanges{\hbox to \hsize\bgroup\hss\SetTableToWidth{\BigWidth}%
  \starttable[s1 | c | c | p(95mm) | p(17mm) | p(37mm) |]
  \HL\BL[5]\AR\VL Rév.\VL Date\VL Origine de la mise à jour\VL§ modifié\VL
  Auteur\VL\AR\HL}
\def\stopChanges{\stoptable\hss\egroup}\newcount\RevC
\def\Changes#1[#2]{%
  \getparameters[CH][#2]% Auteur, Modif, Labels, Date
  \ifnum\RevC=0 \BigTitle \vskip0.5ex \Vfil \startChanges \fi
  \global\advance\RevC by 1 \VL \the\RevC \VL \CHDate \VL \CHModif \VL
  XXX%\In[\CHLabels,\relax] % does not work, but not so important for now
  \VL \CHAuteur \VL\AR\HL}
\def\Destinataires#1{\stopChanges\Vfil
  \def\temp{#1}\ifx\temp\empty\else\noindenting Destinataires:\crlf#1\blank\fi
\centerline{\SetTableToWidth{\BigWidth}%
\bf\starttable[| c | c | c |]
\HL\BL[3]\AR\VL Approbateur\VL Date\VL Visa\VL\AR\HL
\VL\vbox to 2cm{}\VL\VL\VL\AR\HL
\stoptable}\par\page\completecontent}

\starttext
\Changes[Date=1/2/2004,Modif=First version,Auteur=Peter]
\Changes[Date=3/4/2004,Modif=Some modifications,Lables={sec:S1,sec:S2},
  Auteur=Peter Münster]
\Changes[Date=5/6/2004,Modif=Some other modifications,Lables={sec:S2},
  Auteur=Peter]
%
\Destinataires{Peter, Olivier}

\section[sec:S1]{A section}
some text
\subsection{Bla}
\subsection{Bla}

\section[sec:S2]{Another section}
some text
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_____________________________________
FilmSearch engine: http://f-s.sf.net/

  reply	other threads:[~2004-08-10 12:11 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-31  9:07 pdfTeX questions Peter Münster
2004-05-31  9:56 ` Patrick Gundlach
2004-05-31 10:11   ` Patrick Gundlach
2004-05-31 12:09   ` Peter Münster
2004-05-31 12:53     ` Patrick Gundlach
2004-06-01 18:08       ` Hans Hagen
     [not found]         ` <m2n032tvs8.fs f@levana.de>
2004-06-02 18:05         ` Peter Münster
2004-06-17  8:48         ` Patrick Gundlach
2004-06-18 14:29           ` ConTeXt-Wiki (Was: Re: Re: pdfTeX questions) Holger Schöner
2004-06-20 14:12             ` ConTeXt-Wiki Patrick Gundlach
2004-06-21 14:39               ` ConTeXt-Wiki Holger Schöner
2004-06-22 15:55                 ` ConTeXt-Wiki Patrick Gundlach
2004-06-22 16:13                   ` ConTeXt-Wiki Matt Gushee
2004-06-22 17:00                     ` ConTeXt-Wiki Patrick Gundlach
2004-06-22 17:13                       ` ConTeXt-Wiki jimarin
2004-06-23  5:56                         ` Maurice Diamantin
2004-06-23  7:32                           ` ConTeXt-Wiki Patrick Gundlach
2004-06-28 16:52                             ` ConTeXt-Wiki Nagy Bence
2004-06-28 17:08                               ` Tobias Burnus
2004-06-23  8:51                           ` Tobias Burnus
2004-06-23 12:24                             ` Maurice Diamantin
2004-06-23 15:09                               ` ConTeXt-Wiki Patrick Gundlach
2004-06-23 16:59                                 ` SF project and docs (was: ConTeXt-Wiki) Henning Hraban Ramm
2004-06-24 14:13                                   ` Maurice Diamantini
2004-06-24 19:12                                     ` docs Henning Hraban Ramm
2004-06-24 19:34                                       ` docs Idris Samawi Hamid
2004-06-24 21:58                                         ` docs Henning Hraban Ramm
2004-06-25  6:21                                         ` docs Taco Hoekwater
2004-06-25 15:23                                           ` docs Idris Samawi Hamid
2004-06-24 19:42                                       ` docs William D. Neumann
2004-06-25  6:42                                         ` Hans political ConTeXt orientation request! Maurice Diamantini
2004-06-25 16:03                                           ` Hans Hagen
2004-06-26  9:46                                             ` Maurice Diamantini dom
2004-06-26  9:51                                             ` High level user macro (howto?) Maurice Diamantini dom
2004-06-28  9:18                                               ` Giuseppe Bilotta
2004-06-28 11:58                                                 ` Hans Hagen
2004-06-28 13:21                                                   ` Re[2]: " Giuseppe Bilotta
2004-06-28 14:04                                                     ` Hans Hagen
2004-06-28 15:06                                                       ` Re[2]: " Giuseppe Bilotta
2004-06-28  9:32                                               ` Taco Hoekwater
2004-08-10 12:02                                                 ` Peter Münster
2004-08-10 12:11                                                   ` Peter Münster [this message]
2004-08-10 12:35                                                     ` Vit Zyka
2004-08-10 13:47                                                       ` Peter Münster
2004-06-28  9:49                                               ` Patrick Gundlach
2004-06-28 15:34                                                 ` Maurice Diamantini
2004-06-28  8:40                                             ` Extending metapost Taco Hoekwater
2004-12-27 16:03                                               ` John Culleton
2004-12-27 19:17                                                 ` Patrick Gundlach
2004-12-28 10:04                                                 ` Taco Hoekwater
2004-06-25 16:11                                         ` docs Hans Hagen
2004-06-25 16:56                                           ` docs William D. Neumann
2004-06-25 18:04                                             ` docs Hans Hagen
2004-06-26 18:18                                             ` docs Hans Hagen
2004-06-23  8:56                           ` ConTeXt-Wiki Patrick Gundlach
2004-06-23 12:42                             ` ConTeXt-Wiki Maurice Diamantini
2004-06-23 14:54                               ` ConTeXt-Wiki Patrick Gundlach
2004-06-24 13:01                                 ` ConTeXt-Wiki Maurice Diamantini
2004-06-23  7:26                         ` ConTeXt-Wiki Patrick Gundlach
2004-06-23  8:55                         ` ConTeXt-Wiki Patrick Gundlach
2004-06-23 15:29                   ` ConTeXt-Wiki Holger Schöner
2004-06-06  7:24       ` Re: pdfTeX questions Peter Münster
2004-06-07 17:40         ` Hans Hagen
2004-06-07 20:40           ` Peter Münster
2004-05-31 10:07 ` Patrick Gundlach
2004-05-31 12:20   ` Peter Münster
2004-06-01 18:10     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.58.0408101409200.23303@gaston.free.fr \
    --to=pmlists@free.fr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).