From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43070 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Custom Section / Table of contents inside a table Date: Mon, 11 Aug 2008 11:15:34 +0200 Message-ID: <115224fb0808110215h17ac6814vc4e7c27a000fdb1f@mail.gmail.com> References: <489D52BF.1060905@elvenkind.com> 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 1218446277 26807 80.91.229.12 (11 Aug 2008 09:17:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 09:17:57 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 11 11:18:48 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 1KSTY5-0006ef-6v for gctc-ntg-context-518@m.gmane.org; Mon, 11 Aug 2008 11:18:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 84F9D1FCDF; Mon, 11 Aug 2008 11:17:46 +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 02163-01-13; Mon, 11 Aug 2008 11:16:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 92FD91FCDB; Mon, 11 Aug 2008 11:16:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 10D041FCCE for ; Mon, 11 Aug 2008 11:16:19 +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 04055-01-2 for ; Mon, 11 Aug 2008 11:15:36 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by ronja.ntg.nl (Postfix) with ESMTP id 19E351FBCB for ; Mon, 11 Aug 2008 11:15:34 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id c8so270191ana.14 for ; Mon, 11 Aug 2008 02:15:34 -0700 (PDT) Original-Received: by 10.100.141.5 with SMTP id o5mr6402776and.127.1218446134539; Mon, 11 Aug 2008 02:15:34 -0700 (PDT) Original-Received: by 10.100.109.20 with HTTP; Mon, 11 Aug 2008 02:15:34 -0700 (PDT) In-Reply-To: <489D52BF.1060905@elvenkind.com> Content-Disposition: inline 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:43070 Archived-At: On Sat, Aug 9, 2008 at 10:18 AM, Taco Hoekwater wrote: > 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}*}} \getvariable and not \getvalue \expanded{\fieldNameSection{*\getvariable{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 I would try to use \doiftextelse first. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________