[NTG-context] regular online meet-up
You’re invited to join on Wednesday, March 8th, 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 April 12th. (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 ___
Re: [NTG-context] [m-database] How to properly add module arguments?
On 26 Feb 2023, at 5:36, Max Chernoff via ntg-context wrote: > I'd recommend completely ignoring the interface i-*.xml files. They > don't do anything particularly useful for a third-party module. It's good to know there's no dependency there (but I do like to keep things updated :) ). > This line is your issue. Inside \unprotect...\protect, "!" is treated as > a letter, so you're trying to expand the value of the macro > "\c!skipheader". The problem is that that macro isn't defined anywhere. A ha! Many thanks; I've gotten it working, along with this hint: > skipheader=\v!no, % <-- HERE ...so I think I'm okay. (I don't mind doing the translations, but that's probably outside the scope of this project.) > Backing up a little further, the \c!... commands are all string > *C*onstants. If you see a command with a name like \c!blah, it almost > certain expands to exactly the string "blah". Why is this useful? Well, > if you run ConTeXt in another language, then the \c!... commands will > instead contain that string but in the other language. So something like > \c!left would be "left" in English, "gauche" in French, "links" in > German, "vlevo" in Czech, etc. This, too, was useful - as per the Scratch Variables page in the System Macros section of the garden (https://wiki.contextgarden.net/System_Macros/Scratch_Variables) I've updated my tree-sitter parser (https://github.com/pmazaitis/tree-sitter-context_en) to put these in the parse tree; I don't know how useful that is, but it seems to me that being able to call these out might help. > As a more general suggestion, it is usually a really bad idea to modify the > standard ConTeXt files since any changes will be overwritten on updates. > Probably the best solution is to make a new file called "t-xdatabase.mkiv" > stored in your texmf-local/, start the file with "\usemodule[database]" > then add any changes after that. Or, just copy and paste the original file > into your new file. (Maybe you were doing this already though) Oh! Indeed: my working ConTeXt environment is under version control; experimental nonsense like this gets safely tucked away in a branch (my thinking is that I want to try to change as few new variables as possible - still learning!). > Hope this helps, Absolutely; many thanks! > -- Max -Paul ___ 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 ___
Re: [NTG-context] How to print the section number of a reference in ConTeXt?
To explain more simply, I've put \pagereference[sample] somewhere in a document. Intead of just printing the page number that appeared with \at{page}[sample], I'd like to print the section or subsection title of where that appeared. --Joel On Saturday, March 4, 2023 at 09:18:19 AM MST, Joel via ntg-context wrote: I've set a \pagereference in a chapter, and want to print its chapter title and page number, ex. "You can find more information in "Fish" on p. 1" (where "Fish" is the title of the chapter or section). I've tried looking all through the wiki, thinking this was a basic feature, but couldn't get anything to work. I even tried my own custom macros, see below, but strangely, it won't give me the correct title, it tells me the title of the current chapter, instead of the title in which the reference was placed: \define[1]\dropref{% \textreference[#1]{\expanded{\currentstructuretitle}} } \starttext \startchapter[title=Fish] \dropref{hello} \input knuth \stopchapter \startchapter[title=Whales] You can more information at \at{page}[hello] in \at{chapter}[hello] or \about[hello]. \stopchapter \stoptext Strangely both at commands give the correct information, but \about doesn't. How do I place a reference somewhere in a text, then later tell which chapter title and page number that reference appeared in? --Joel ___ 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 ___ ___ 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] How to print the section number of a reference in ConTeXt?
I've set a \pagereference in a chapter, and want to print its chapter title and page number, ex. "You can find more information in "Fish" on p. 1" (where "Fish" is the title of the chapter or section). I've tried looking all through the wiki, thinking this was a basic feature, but couldn't get anything to work. I even tried my own custom macros, see below, but strangely, it won't give me the correct title, it tells me the title of the current chapter, instead of the title in which the reference was placed: \define[1]\dropref{% \textreference[#1]{\expanded{\currentstructuretitle}} } \starttext \startchapter[title=Fish] \dropref{hello} \input knuth \stopchapter \startchapter[title=Whales] You can more information at \at{page}[hello] in \at{chapter}[hello] or \about[hello]. \stopchapter \stoptext Strangely both at commands give the correct information, but \about doesn't. How do I place a reference somewhere in a text, then later tell which chapter title and page number that reference appeared in? --Joel ___ 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 ___