From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35993 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: noalign in tabulate Date: Mon, 13 Aug 2007 16:35:29 -0400 (EDT) Message-ID: References: <46C0AF7E.7090908@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187037363 31843 80.91.229.12 (13 Aug 2007 20:36:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2007 20:36:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 13 22:35:59 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 1IKgdj-0005fm-FX for gctc-ntg-context-518@m.gmane.org; Mon, 13 Aug 2007 22:35:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B23142011E; Mon, 13 Aug 2007 22:35:50 +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 15193-06-9; Mon, 13 Aug 2007 22:35:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 843752001B; Mon, 13 Aug 2007 22:35:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 054F42001B for ; Mon, 13 Aug 2007 22:35:40 +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 15193-06-8 for ; Mon, 13 Aug 2007 22:35:35 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with ESMTP id CD5DB1FD8C for ; Mon, 13 Aug 2007 22:35:34 +0200 (CEST) Original-Received: FROM aditya.cable.rcn.com (207-229-157-251.mart-bsr1.chi-mart.il.cable.rcn.com [207.229.157.251]) BY tombraider.mr.itd.umich.edu ID 46C0C094.2DF0B.14129 ; 13 Aug 2007 16:35:32 -0400 In-Reply-To: <46C0AF7E.7090908@wxs.nl> 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:35993 Archived-At: On Mon, 13 Aug 2007, Hans Hagen wrote: > Aditya Mahajan wrote: >> Hi, >> >> How do I insert a noalign in tabulate. It seems that noalign messes up >> the width calculations of paragraphs. This is what I tried. >> >> \starttext >> >> \starttabulate >> \NC tufte \NC \input tufte \NR >> \NC zapf \NC \input zapf \NR >> \stoptabulate >> >> \starttabulate >> \NC tufte \NC \input tufte \NR >> \noalign{Some quotes} >> \NC zapf \NC \input zapf \NR >> \stoptabulate >> >> \starttabulate >> \NC tufte \NC \input tufte \NR >> \TABLEnoalign{Some quotes} >> \NC zapf \NC \input zapf \NR >> \stoptabulate >> >> \stoptext >> >> Suggestions? > > as much trial and error for me as for you > > \starttabulate > \NC tufte \NC \input tufte \NR > \NC zapf \NC \input zapf \NR > \stoptabulate > > \starttabulate > \NC tufte \NC \input tufte \NR > \noalign{\hbox{Some quotes}} > \NC zapf \NC \input zapf \NR > \stoptabulate > > \starttabulate > \NC tufte \NC \input tufte \NR > \TABLEnoalign{\hbox{Some quotes}} > \NC zapf \NC \input zapf \NR > \stoptabulate > > otherwise you get a paragraph It seems that noalign messes up width calculation. Here is one possibility: \startbuffer \starttabulate \NC nofautotabulate \NC \the\nofautotabulate \NC \NR \NC tabulatewidth \NC \the\tabulatewidth \NC \NR \NC tufte \NC \input tufte \NC \NR \mynoalign{\vbox{some quotes that are used for generating sample text in a lot of \CONTEXT\ documents again and again}} \NC zapf \NC \input zapf \NC \NR \stoptabulate \stopbuffer \starttext \let\mynoalign\noalign \getbuffer \page \def\mynoalign {\iftrialtypesetting \expandafter\gobbleoneargument \else \expandafter\TABLEnoalign \fi} \getbuffer \stoptext Aditya ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________