From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31383 Path: news.gmane.org!not-for-mail From: Marcus Vinicius Mesquita de So Newsgroups: gmane.comp.tex.context Subject: \showgrid question Date: Sun, 15 Oct 2006 14:22:39 -0700 (PDT) Message-ID: <20061015212239.23458.qmail@web37709.mail.mud.yahoo.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0576928633==" X-Trace: sea.gmane.org 1160947380 13279 80.91.229.2 (15 Oct 2006 21:23:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Oct 2006 21:23:00 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 15 23:22:58 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1GZDRh-00072K-9k for gctc-ntg-context-518@m.gmane.org; Sun, 15 Oct 2006 23:22:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 65F4F1FDE4; Sun, 15 Oct 2006 23:22:56 +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 19439-02; Sun, 15 Oct 2006 23:22:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7A9541FDE2; Sun, 15 Oct 2006 23:22:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B651F1FDE8 for ; Sun, 15 Oct 2006 23:22:47 +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 16132-05 for ; Sun, 15 Oct 2006 23:22:46 +0200 (CEST) Original-Received: from web37709.mail.mud.yahoo.com (web37709.mail.mud.yahoo.com [209.191.87.107]) by ronja.ntg.nl (Postfix) with SMTP id 2822A1FD6D for ; Sun, 15 Oct 2006 23:22:45 +0200 (CEST) Original-Received: (qmail 23460 invoked by uid 60001); 15 Oct 2006 21:22:39 -0000 Original-Received: from [201.44.132.7] by web37709.mail.mud.yahoo.com via HTTP; Sun, 15 Oct 2006 14:22:39 PDT Original-To: mailing list for ConTeXt users X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:31383 Archived-At: --===============0576928633== Content-Type: multipart/alternative; boundary="0-635474711-1160947359=:21694" --0-635474711-1160947359=:21694 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: quoted-printable Hi!=0A=0AIs there an option for the \showgrid command for showing only the = line numbers (no lines) ?=0A=0AMarcus Vinicius=0A=0A=0A=0A --0-635474711-1160947359=:21694 Content-Type: text/html; charset=ascii Content-Transfer-Encoding: quoted-printable
Hi!

Is there an option for the \showgrid comman= d for showing only the line numbers (no lines) ?

Marcus Vinicius
=

--0-635474711-1160947359=:21694-- --===============0576928633== 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 --===============0576928633==-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31391 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \showgrid question Date: Mon, 16 Oct 2006 20:20:46 +0200 Message-ID: <4533CD7E.6060201@wxs.nl> References: <20061015212239.23458.qmail@web37709.mail.mud.yahoo.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161022891 18847 80.91.229.2 (16 Oct 2006 18:21:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Oct 2006 18:21:31 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 16 20:21:24 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1GZX5F-0006XN-DY for gctc-ntg-context-518@m.gmane.org; Mon, 16 Oct 2006 20:21:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6C31A1FDC7; Mon, 16 Oct 2006 20:21:04 +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 26626-03-3; Mon, 16 Oct 2006 20:20:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C97E61FD51; Mon, 16 Oct 2006 20:20:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C0D281FD59 for ; Mon, 16 Oct 2006 20:20:51 +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 26626-03-2 for ; Mon, 16 Oct 2006 20:20:48 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with SMTP id C8F4B1FD40 for ; Mon, 16 Oct 2006 20:20:47 +0200 (CEST) Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 13211 for ; Mon, 16 Oct 2006 20:20:47 +0200 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) Original-To: mailing list for ConTeXt users In-Reply-To: <20061015212239.23458.qmail@web37709.mail.mud.yahoo.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:31391 Archived-At: Marcus Vinicius Mesquita de So wrote: > Hi! > > Is there an option for the \showgrid command for showing only the line > numbers (no lines) ? no, but it's easy to add that option, put this in cont-new.tex (after \unprotect) \chardef\gridboxlinenomode\plusone \chardef\gridboxlinemode \plusone % 0:nothing 1:all 2:lines 3:frame \def\gridboxvbox {\ifcase\gridboxlinemode\vbox\or\ruledvbox\or\vbox\or\ruledvbox\else\ruledvbox\fi} \def\gridboxwidth{\ifcase\gridboxlinemode0\or.5\or.5\or0\else.5\fi\testrulewidth} \def\setgridbox#1#2#3% {\setbox#1\gridboxvbox to #3 % given size {\forgetall \resetteststrut \offinterlineskip \hsize#2% \baselinerulefalse \gridboxvbox % calculated size {\getrawnoflines{#3}% \getnoflines{#3}% \vskip\topskip \vskip-\strutht \scratchdimen#2\advance\scratchdimen \lineheight \dorecurse\noflines {\strut \hskip-.5\lineheight \ifcase\gridboxlinenomode\or \rlap {\hskip.2\bodyfontsize\hskip\scratchdimen \infofont\hbox to 1em{\hss\recurselevel}}% \or \llap {\infofont\hbox to 1em{\hss\recurselevel}% \hskip.2\bodyfontsize}% \fi \vrule \!!height \gridboxwidth \!!depth \gridboxwidth \!!width \scratchdimen \par}} \vfill}} \def\doshowgrid[#1]% {\chardef\showgridstate \plusone % downward compatible default \chardef\gridboxlinemode \plusone \chardef\gridboxlinenomode\plusone \processallactionsinset [#1]% [ \v!reset=>\chardef\showgridstate \zerocount, \v!bottom=>\chardef\showgridstate \plusone, \v!top=>\chardef\showgridstate \plustwo, \v!none=>\chardef\gridboxlinemode \zerocount, \v!all=>\chardef\gridboxlinemode \plusone, \v!lines=>\chardef\gridboxlinemode \plustwo, \v!frame=>\chardef\gridboxlinemode \plusthree, \v!nonumber=>\chardef\gridboxlinenomode\zerocount, \v!right=>\chardef\gridboxlinenomode\plusone, \v!left=>\chardef\gridboxlinenomode\plustwo]} now you can use keywords, like \showgrid[lines.left] \input tufte ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------