Re: [NTG-context] \jobname and \doifelse
Pablo Rodriguez via ntg-context schrieb am 05.11.2022 um 16:30: Dear list, using current latest (2022.10.22 11:23), I have the following sample: \starttext \doifelse{\jobname}{a} {yes}{no} \jobname \startluacode if tex.jobname == "a" then context("yes") else context("no") end \stopluacode \stoptext I get "no" as in TeX and "yes" with Lua, being "a.tex" the source file. The TeX conditional used to work before. Am I missing something or have I hit a bug? Are you sure the check worked in the past? The content of \jobname has catcode 12 while you "a" you check against has catcode 11, and even when \jobname result in "a" they are different because the catcodes differ. You can see the same result in the example below where the second check compares two a with different catcodes (11 and 12) while the first check has the same catcode (11) for both a's. \starttext \edef\A{a} \edef\B{a} \ifx\A\B yes \else no \fi \begingroup \catcode`a=12 \gdef\B{a} \endgroup \ifx\A\B yes \else no \fi \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] \jobname and \doifelse
Dear list, using current latest (2022.10.22 11:23), I have the following sample: \starttext \doifelse{\jobname}{a} {yes}{no} \jobname \startluacode if tex.jobname == "a" then context("yes") else context("no") end \stopluacode \stoptext I get "no" as in TeX and "yes" with Lua, being "a.tex" the source file. The TeX conditional used to work before. Am I missing something or have I hit a bug? I’m on Linux64 (if this may be relevant). Many thanks for your help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] regular online meet-up
You’re invited to join on Wednesday, November 9th, 15:00 CET (UTC+1) at https://lecture.senfcall.de/hen-rbr-rku-oke (same, but shorter: https://v34h.de/ctxmtg) ConTeXt users of all levels are welcome! Next meeting will be on December 14th. (Same blurb as every time:) [Howto] * No special software installation required; most modern browsers should work (WebRTC required). * Open the above URL, accept the privacy statement, * enter your name, * click "join" (or "start" if you’re the first), * click "with microphone", allow your browser to access it, check the audio. * Your microphone is muted if you join. Activate microphone and/or camera with the buttons at the bottom. * Minimize the default presentation with the "screen" button, bottom right. * If you’d like to share your screen or upload a file, you can make yourself the presenter: Click on your user name, change the setting, then you’ll see the "screen sharing" button beside the camera button; also there’s now "manage presentations" behind the "plus" button. Beware there is only one presenter at a time, so don’t kill someone else’s presentation. [Technical hints] * Sound is usually better if you use a headset (less noise for everyone). * Connection problems are mostly due to low bandwidth or high latency on your side, e.g. with mobile connections. * If audio/video doesn’t work for you, you can still use the text chat. * Screen sharing needs a lot of bandwidth. * BigBlueButton documentation applies: https://bigbluebutton.org/teachers/tutorials/ [Netiquette] * Please use a name that we recognize from here. Some feel uncomfortable with anonymous lurkers. * Mute your microphone while you’re not talking. * It’s nice to show your face at least when you join. * If there are connection problems, stop camera sharing. * The room is set to “everyone’s a moderator“, I trust you... See you, Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___