From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88426 Path: news.gmane.org!not-for-mail From: =?utf-8?B?SWRyaXMgU2FtYXdpIEhhbWlkINin2K/YsdmK2LMg2LPZhdin2YjZiiDYrQ==?= =?utf-8?B?2KfZhdiv?= Newsgroups: gmane.comp.tex.context Subject: Using TABLE in a definition etc. Date: Sat, 16 Aug 2014 20:42:28 -0600 Organization: csu Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408243431 14989 80.91.229.3 (17 Aug 2014 02:43:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Aug 2014 02:43:51 +0000 (UTC) Cc: Wolfgang Schuster To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 17 04:43:46 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XIqRc-00054d-Je for gctc-ntg-context-518@m.gmane.org; Sun, 17 Aug 2014 04:43:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D831010255 for ; Sun, 17 Aug 2014 04:43:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oRRZjTRQ04Bv for ; Sun, 17 Aug 2014 04:43:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7945510221 for ; Sun, 17 Aug 2014 04:43:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2FAD0101E6 for ; Sun, 17 Aug 2014 04:43:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iKlW52kxnJ67 for ; Sun, 17 Aug 2014 04:43:23 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id C1B18101E2 for ; Sun, 17 Aug 2014 04:43:17 +0200 (CEST) Original-Received: from bird.colostate.edu (bird.colostate.edu [129.82.103.165]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7H2h8oN025638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 17 Aug 2014 04:43:10 +0200 Original-Received: from jansen.ColoState.EDU (jansen.colostate.edu [129.82.103.132]) by bird.colostate.edu (8.13.8/8.12.11) with ESMTP id s7H2h5c1009754 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 16 Aug 2014 20:43:06 -0600 Original-Received: from ishamid-pc (ns-2.cwx.net [64.58.13.124]) (authenticated bits=0) by jansen.ColoState.EDU (8.13.1/8.13.1) with ESMTP id s7H2gdUp024382 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Sat, 16 Aug 2014 20:43:04 -0600 User-Agent: Opera Mail/12.17 (Win32) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.27, 0.0.0000 definitions=2014-08-16_03:2014-08-15,2014-08-16,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1408170033 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=129.82.103.165; country=US; region=Colorado; city=Fort Collins; latitude=40.6736; longitude=-104.9434; http://maps.google.com/maps?q=40.6736,-104.9434&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QMDCH9Rx - 7e34df04a81c - 20140817 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88426 Archived-At: Dear gang, I'm trying to setup a definition that uses a natural table and could use some guru help. Here is what I have so far: =============== \def\Glyphbox{% \setupframed[frame=off,align=middle,offfset=none] \framed{\cbox{ \bTABLE[align=middle] \bTR \bTD \gulistan#1 \fontchar{#2} \eTD \eTR \bTR \bTD #1 \eTD \eTR \bTR \bTD #3 \eTD \eTR \eTABLE }} } ============== Some issues: 1. '#' is probably active and being used in the internals, so of course I can't directly use it as an argument parameter. How do I work around it? 2. The '#1' at the end of '\gulistan' is meant to complete the name of a defined font, then that same parameter is used as a name in the next row. Am I doing this correctly? I.e., can I use an argument parameter to finish off a command like this? [Yes, my low level TeX is really quite rusty]. 3. Once this table is defined correctly it will be used in a larger table, e.g. ========== \bTABLE \bTR \bTD \Glyphbox{}{}{} \eTD \bTD \Glyphbox{}{}{} \eTD \eTR \bTR \bTD \Glyphbox{}{}{} \eTD \bTD \Glyphbox{}{}{} \eTD \eTR \eTABLE ========== with arguments appropriately filled. Thanks in advance for any and all advice, and Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________