From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34209 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Grid-keeping list (again) Date: Thu, 12 Apr 2007 13:46:44 +0200 Message-ID: <115224fb0704120446n380e1439n180baec31f8768bd@mail.gmail.com> References: <461DFA1D.9020706@typoma.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0839618314==" X-Trace: sea.gmane.org 1176378429 30344 80.91.229.12 (12 Apr 2007 11:47:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2007 11:47:09 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 12 13:47:05 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HbxlV-0008Et-0B for gctc-ntg-context-518@m.gmane.org; Thu, 12 Apr 2007 13:47:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 690CC1FBAA; Thu, 12 Apr 2007 13:46:59 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03795-01-3; Thu, 12 Apr 2007 13:46:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 934901FB0B; Thu, 12 Apr 2007 13:46:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AF3491FB0B for ; Thu, 12 Apr 2007 13:46:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03795-01-2 for ; Thu, 12 Apr 2007 13:46:46 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by ronja.ntg.nl (Postfix) with ESMTP id 5B3011FAE4 for ; Thu, 12 Apr 2007 13:46:45 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id d33so529842and for ; Thu, 12 Apr 2007 04:46:45 -0700 (PDT) Original-Received: by 10.100.139.9 with SMTP id m9mr1232953and.1176378404718; Thu, 12 Apr 2007 04:46:44 -0700 (PDT) Original-Received: by 10.100.106.19 with HTTP; Thu, 12 Apr 2007 04:46:44 -0700 (PDT) In-Reply-To: <461DFA1D.9020706@typoma.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:34209 Archived-At: --===============0839618314== Content-Type: multipart/alternative; boundary="----=_Part_4620_1818345.1176378404214" ------=_Part_4620_1818345.1176378404214 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/4/12, Johannes Kuester : > > Hello, > > I'm still trying to typeset a "grid-keeping" list (or table). > Wolfgang Schuster supplied me off-list with the attached module. > This works fine except for one problem: > > Only the first few lines are placed on the grid, then the grid is lost. > > After the next pass (i.e. after the next "texmfstart texexec testfile"), > some more lines are placed on the grid. > (So I need many passes to typeset the complete list correctly). > > Why? Any idea? > > (I fiddled around with \synchronizegrid, \placeongrid, \moveongrid, and > \startlinecorrection \stoplinecorrection, but none of these seems to > work.) > > You could try the effect with the following example: > > %%%%%%%%%% > > \setuplayout[grid=yes, columns=2] > \showgrid > %\showstruts > > \usemodule[gridlist] > > \starttext > > \startcolumns[n=2, balance=no] > %% (columns are not necessary to show the effect) > > \dorecurse{20}{ > \zeichen{0001}{a}{first letter}{}% > \zeichen{0002}{b}{second letter}{}% > \zeichen{0002}{c}{third letter, this one has a longer entry > which needs more than one line}{}% > } > > \stopcolumns > > \stoptext Hi Johannes, replace the current definition of \zeichenzelle with the following: \def\zeichenzelle#1% {\advance\zeichencolumn\plusone \hbox {\vtop {\hsize\zeichenparameter\c!width \normalbaselines \zeichenparameter\c!before \begstrut \dostartattributes{\????ze\number\zeichencolumn}\c!style\c!color \zeichenparameter\c!left #1 \zeichenparameter\c!right \dostopattributes \endstrut \zeichenparameter\c!after}}} \synchronizegrid in \setupzeichen is not neccessary \setupzeichen [\c!textwidth=63.8833mm, \c!before=\noindenting, %\synchronizegrid, \c!after=, %\synchronizegrid ] add the next two commands to your module \def\startzeichen{\begingroup\offinterlineskip} \def\stopzeichen{\endgroup} a alternative version %\def\startzeichen{\offinterlineskip} %\def\stopzeichen{\oninterlineskip} and put \startzeichen and \stopzeichen before and after your lines with all \zeichen commands \startzeichen \zeichen ... \zeichen \stopzeichen and everything should work as expected Wolfgang ------=_Part_4620_1818345.1176378404214 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

2007/4/12, Johannes Kuester <jk@typoma.com>:
Hello,

I'm still trying to typeset a "grid-keeping" list (or table).
Wolfgang Schuster supplied me off-list with the attached module.
This works fine except for one problem:

Only the first few lines are placed on the grid, then the grid is lost.

After the next pass (i.e. after the next "texmfstart texexec testfile"),
some more lines are placed on the grid.
(So I need many passes to typeset the complete list correctly).

Why? Any idea?

(I fiddled around with \synchronizegrid, \placeongrid, \moveongrid, and
\startlinecorrection \stoplinecorrection, but none of these seems to work.)

You could try the effect with the following example:

%%%%%%%%%%

\setuplayout[grid=yes, columns=2]
\showgrid
%\showstruts

\usemodule[gridlist]

\starttext

\startcolumns[n=2, balance=no]
%% (columns are not necessary to show the effect)

\dorecurse{20}{
  \zeichen{0001}{a}{first letter}{}%
  \zeichen{0002}{b}{second letter}{}%
  \zeichen{0002}{c}{third letter, this one has a longer entry
                    which needs more than one line}{}%
}

\stopcolumns

\stoptext

Hi Johannes,

replace the current definition of \zeichenzelle with the following:

\def\zeichenzelle#1%
  {\advance\zeichencolumn\plusone
   \hbox
     {\vtop
        {\hsize\zeichenparameter\c!width
         \normalbaselines
         \zeichenparameter\c!before
         \begstrut
           \dostartattributes{\????ze\number\zeichencolumn}\c!style\c!color
           \zeichenparameter\c!left
             #1
           \zeichenparameter\c!right
           \dostopattributes
         \endstrut
         \zeichenparameter\c!after}}}

\synchronizegrid in \setupzeichen is not neccessary

\setupzeichen
  [\c!textwidth=63.8833mm,
   \c!before=\noindenting, %\synchronizegrid,
   \c!after=, %\synchronizegrid
  ]

add the next two commands to your module

\def\startzeichen{\begingroup\offinterlineskip}
\def\stopzeichen{\endgroup}

a alternative version

%\def\startzeichen{\offinterlineskip}
%\def\stopzeichen{\oninterlineskip}

and put \startzeichen and \stopzeichen before and after your lines
with all \zeichen commands

\startzeichen
\zeichen
...
\zeichen
\stopzeichen

and everything should work as expected

Wolfgang

------=_Part_4620_1818345.1176378404214-- --===============0839618314== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0839618314==--