From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34201 Path: news.gmane.org!not-for-mail From: Johannes Kuester Newsgroups: gmane.comp.tex.context Subject: Grid-keeping list (again) Date: Thu, 12 Apr 2007 11:21:33 +0200 Organization: http://www.typoma.com Message-ID: <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="------------070500070406010208060708" X-Trace: sea.gmane.org 1176369857 1435 80.91.229.12 (12 Apr 2007 09:24:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2007 09:24:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 12 11:24:14 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 1HbvXJ-0006Qz-Us for gctc-ntg-context-518@m.gmane.org; Thu, 12 Apr 2007 11:24:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3E1E61FE5A; Thu, 12 Apr 2007 11:24:13 +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 21608-05; Thu, 12 Apr 2007 11:24:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D5E8A1FE54; Thu, 12 Apr 2007 11:21:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D911E1FE54 for ; Thu, 12 Apr 2007 11:21:42 +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 21199-01-2 for ; Thu, 12 Apr 2007 11:21:39 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by ronja.ntg.nl (Postfix) with ESMTP id 679461FE53 for ; Thu, 12 Apr 2007 11:21:39 +0200 (CEST) Original-Received: from [84.150.7.96] (helo=[192.168.0.6]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis), id 0ML31I-1HbvUk44IT-0005ty; Thu, 12 Apr 2007 11:21:35 +0200 User-Agent: Thunderbird 1.5.0.10 (X11/20060911) X-Provags-ID: V01U2FsdGVkX19Eo2I8twr4OYm+2BAlK/0DhjYxbTo07A0G8jB bJNlEvi6BIEuI3NDERRcJVgApx5ZhGVbPhJBkjMipI6HuyyBLj O7sA8FzHtjbA1yz9uxSjA== 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:34201 Archived-At: This is a multi-part message in MIME format. --------------070500070406010208060708 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 %%%%%%%%%% (This should result in an annotated list of mathematical symbols, showing the Unicode number, the math symbol, and some explanation (and where the explanation could need more than one line); quite similar to the list I published in "Detailtypografie" (2nd ed. 2004), but for another -- quite pressing -- project.) Johannes -- Johannes Kuester typoma mailto:jk@typoma.com http://www.typoma.com --------------070500070406010208060708 Content-Type: text/x-tex; name="t-gridlist.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="t-gridlist.tex" \startmodule[gridlist] \unprotect \def\????ze{@@@@ze} % ZEichen \newcount\zeichencolumn \def\setupzeichen {\dodoubleempty\dosetupzeichen} \def\dosetupzeichen[#1][#2]% {\ifsecondargument \dodosetupzeichen[#1][#2] \else \dodosetupzeichen[\v!line][#1] \fi} \def\dodosetupzeichen[#1][#2]% {\def\docommand##1% {\getparameters[\????ze##1][#2]} \processcommalist[#1]\docommand} \def\zeichenparameter#1% {\csname \ifcsname\????ze\number\zeichencolumn#1\endcsname \????ze\number\zeichencolumn \else \????ze\v!line \fi #1\endcsname} \definehspace[myindent][10pt] \def\startunisym% {\bgroup% \setbox\scratchbox\hbox\bgroup} \def\stopunisym% {\egroup% \raise.3ex\hbox{\box\scratchbox} \egroup} \def\zeichen% {\ignorespaces\permitspacesbetweengroups \doquadruplegroupempty\dozeichen} \def\dozeichen#1#2#3#4% {\begingroup \zeichenparameter\c!before \zeichencolumn\zerocount \hbox\!!to\zeichenparameter\c!textwidth {\zeichenzelle{#1}% \zeichenzelle{#2}% \hfill \zeichenzelle{#3}}% \zeichenparameter\c!after \endgroup} \def\zeichenzelle#1% {\advance\zeichencolumn\plusone \hbox {\vtop {\hsize\zeichenparameter\c!width \zeichenparameter\c!before \begstrut \dostartattributes{\????ze\number\zeichencolumn}\c!style\c!color \zeichenparameter\c!left #1 \zeichenparameter\c!right \dostopattributes \endstrut \zeichenparameter\c!after}}} \setupzeichen [\c!textwidth=63.8833mm,% \c!before=\noindenting\synchronizegrid,% \c!after=\synchronizegrid,% ] \setupzeichen [1,2,3,4] [\c!before=, \c!after=, \c!left=, \c!right=] \setupzeichen [1] [\c!width=6.5mm, \c!left=\startunisym, \c!right=\stopunisym, \c!align=right, \c!before=\raggedright, \c!after=, \c!style={\switchtobodyfont[6.8pt]\tt\bf}] \setupzeichen [2] [\c!width=7.5mm, \c!left=$, \c!right=$, \c!before=\raggedcenter, \c!style={\switchtobodyfont[9.6pt]}] \setupzeichen [3] [\c!width=49.883mm, \c!style={\switchtobodyfont[8.4pt]}, \c!before=\hangindent10pt\hangafter1\raggedright] \protect \stopmodule \endinput --------------070500070406010208060708 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 --------------070500070406010208060708--