From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80156 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: How to use module simpleslides' SideToc Date: Tue, 08 Jan 2013 23:26:48 +0100 Message-ID: <50EC9D28.4010508@uni-bonn.de> References: <20130108105658.2762be6e@iram-hb-003386.extra.cea.fr> <20130108151028.55af3352@iram-hb-003386.extra.cea.fr> 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" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1357684019 2916 80.91.229.3 (8 Jan 2013 22:26:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jan 2013 22:26:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 08 23:27:16 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TshdX-0008OS-0x for gctc-ntg-context-518@m.gmane.org; Tue, 08 Jan 2013 23:27:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03DBA101E5; Tue, 8 Jan 2013 23:26:55 +0100 (CET) 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 8LmJdkQlHcLE; Tue, 8 Jan 2013 23:26:52 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A6835101E6; Tue, 8 Jan 2013 23:26:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0463B101E6 for ; Tue, 8 Jan 2013 23:26:51 +0100 (CET) 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 7i8m2sS7QLZK for ; Tue, 8 Jan 2013 23:26:50 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 25806101E5 for ; Tue, 8 Jan 2013 23:26:50 +0100 (CET) Original-Received: from uni-bonn.de (x23.rhrz.uni-bonn.de [131.220.15.155]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r08MeIpE008082 for ; Tue, 8 Jan 2013 23:40:18 +0100 Original-Received: from [87.178.28.66] (account tschmit1@uni-bonn.de HELO [192.168.0.37]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.4.4) with ESMTPSA id 34042840 for ntg-context@ntg.nl; Tue, 08 Jan 2013 23:26:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <20130108151028.55af3352@iram-hb-003386.extra.cea.fr> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.155; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01IJyEifx - 0e3cea6b614a - 20130108 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:80156 Archived-At: On 01/08/2013 03:10 PM, Alan BRASLAU wrote: > Yes, > > Many simpleslides styles seem to be broken. > Thomas seems to be aware of this but has not gotten to looking into it. > > (t-slidesvisualcounter.tex is part of the simpleslides module: > texmf-modules/tex/context/third/simpleslides) > > Alan I hope there aren't that many broken styles... Anyway, I'm not teaching this year, so I don't use the module too often, so this slips by me. I looked at the SideToc style, but I can't figure out the problem; something must have changed in the core. So all I can do is give a minimal example for what fails and hope that one of the real experts will have an idea. Most of the clever code in the example is actually Wolfgang's... So here comes: \setuplayout [leftmargin=4cm, backspace=5cm] \define[3]\FancyEntry {\doifelse{#1}{\MyMark}% {\color[red]{#1 = \MyMark}\blank[medium]} {\color[blue]{#1 = \MyMark}\blank[medium]} } \definelist[MyTopics][criterium=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \def\MyMark{#1}% \writetolist[MyTopics]{#1}{}% } \setuplist[MyTopics] [pagenumber=no, alternative=command, command=\FancyEntry] \setuptexttexts[margin][\vbox{\placelist[MyTopics]}][] \starttext \Topic[First] First Topic \page \Topic[Second] Second Topic \stoptext The problem is that the \doifelse always evaluates to "false," even when \MyMark is defined and equal to the topic; I hope the example clarifies this. [tested with latest beta mkiv] All best Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________