From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43038 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Custom Section / Table of contents inside a table Date: Sat, 09 Aug 2008 10:18:07 +0200 Message-ID: <489D52BF.1060905@elvenkind.com> References: 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: ger.gmane.org 1218270026 8778 80.91.229.12 (9 Aug 2008 08:20:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2008 08:20:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 09 10:21:16 2008 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 1KRjh4-0007eY-7C for gctc-ntg-context-518@m.gmane.org; Sat, 09 Aug 2008 10:20:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 145271FD7B; Sat, 9 Aug 2008 10:20:00 +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 15158-04-7; Sat, 9 Aug 2008 10:19:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2522F1FD60; Sat, 9 Aug 2008 10:19:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9E4091FD37 for ; Sat, 9 Aug 2008 10:18:54 +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 16437-01-6 for ; Sat, 9 Aug 2008 10:18:10 +0200 (CEST) Original-Received: from smtp-vbr3.xs4all.nl (smtp-vbr3.xs4all.nl [194.109.24.23]) by ronja.ntg.nl (Postfix) with ESMTP id 1846D1FD40 for ; Sat, 9 Aug 2008 10:18:08 +0200 (CEST) Original-Received: from [192.168.178.20] (boo.demon.nl [82.161.175.147]) (authenticated bits=0) by smtp-vbr3.xs4all.nl (8.13.8/8.13.8) with ESMTP id m798I89J022613 for ; Sat, 9 Aug 2008 10:18:08 +0200 (CEST) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 1.5.0.10 (X11/20070305) In-Reply-To: X-Virus-Scanned: by XS4ALL Virus Scanner 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:43038 Archived-At: Demian Gutierrez wrote: > > So when I use the > > \fieldNameSection{*\getvalue{CrudCampo:NombreCampoGUIVAL}*} > in the previous code I get nothing but an empty entry in the table of > contents (well in fact with the "*" before and after I get just "**"). Try \expanded{\fieldNameSection{*\getvalue{CrudCampo:NombreCampoGUIVAL}*}} > The second issue is that the previous commented code: > > \doifelsenothing{\getvariable{CrudCampo}{NombreCampoGUIFLG}} > {\EMPTY}{\getvariable{CrudCampo}{NombreCampoGUIVAL}} The bib module had a similar problem, that is why I have: \unprotect \long\def\bibdoifelse#1% {\@EA\def\@EA\!!stringa\@EA{#1}% \ifx\!!stringa\empty \expandafter\secondoftwoarguments \else \expandafter\firstoftwoarguments \fi} \protect Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________