Re: [NTG-context] \setuplist only for bodypart
Pablo Rodriguez via ntg-context schrieb am 17.06.2022 um 16:07: On 6/16/22 22:36, Henning Hraban Ramm via ntg-context wrote: Am 16.06.22 um 21:19 schrieb Pablo Rodriguez via ntg-context: \startsectionblockenvironment[bodypart] ... \stopsectionblockenvironment This should work according to documentation. Many thanks for your reply, Hraban. Using current latest (from 2022.05.11 11:36) with current sample outputs no different setup for chapters from bodypart: \startsectionblockenvironment[bodypart] \setuplist[chapter] [alternative=d] \stopsectionblockenvironment With the above setting you change layout of the chapter entries for list which are placed in the bodymatter environment, e.g. \startbodymatter ... \placelist[chapter] ... \stopbodymatter To create separate styles for chapters within the frontmatter and bodymatter you have to create a new section command where you can apply different list settings. \starttext \completecontent You're now placing \completecontent (and the associated \title) outside of any sectionblock. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to print a random whole number between x and y?
Joel via ntg-context schrieb am 17.06.2022 um 16:10: I was using this code for a long time in my document. I have a PDF with 10 pages, and this would randomly display one of those pages: \ctxlua{math.randomseed( os.time() )} \getrandomnumber \n {1} {10} \placefigure[force, none]{}{\framed[frame=off]{\externalfigure[comic.pdf][page=\n, width=\textwidth]}} For reasons I cannot understand, after an update of ConTeXt, the code no longer works, though trying to reduce it to a minimum working example it works, so I cannot figure out what is wrong in my code. Undefined control sequence ...domseed( os.time() )} \par \getrandomnumber \n {1} {10} \par \placefigure... \doifsomething #1->\edef \m_syst_string_one {#1 }\ifx \m_syst_string_one \emp... \event ... {#6}{{\bf #6}} \par \doifsomething {#7} {#7 } \par \doifsomething ... Is there another solution for generating a random whole number between 1 and 10? Without a better example there is no way to tell what's wrong with your document. The most likely answer is that you try to expand part of your code which contains the \getrandomnumber line but since \n isn't defined yet you get the error message. What you can try is to replace \getrandomnumber and "page=\n" with "page=\randomnumber{...}{...}". \startbuffer[dummyfile] \dorecurse{10}{\centerbox{\definedfont[Sans sa 10]Page \recurselevel}} \stopbuffer \setuplayout[page] \starttext %\getrandomnumber\n{1}{10} %\typesetbuffer[dummyfile][page=\n] \typesetbuffer[dummyfile][page=\randomnumber{1}{10}] \stoptext 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Custom engine settings in AUCTEX
It worked as expected.Thank you very much for your help./Jan-Erik mvh Jan-Erik Hägglöf Originalmeddelande Från: fv leung via ntg-context Datum: 2022-06-15 00:46 (GMT+01:00) Till: mailing list for ConTeXt users Kopia: fv leung Ämne: Re: [NTG-context] Custom engine settings in AUCTEX I changed the value for ConTeXt-Mark-version from "II" to "IV" in context.el file.There are more than one such entry.In the Windows platform, I added the following to the .emacs "gmail_quote">Jan-Erik Hägglöf via ntg-context 於 2022年6月15日 週三 清晨5:36寫道:HI! I’ve been trying out Doom-Emacs and when I open a ConTeXt file i want the engine point to my LMTX installation. /Users/jan-erikhagglof/context/context-osx-64/tex/texmf-osx-64/bin/ is the path to my install on my Macos Monterey. How can this been customized? Its a bit confusing reading the AUCTEX manual so maybe someone has a working config already? Thanks in advance Jan-Erik ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] lmtx installation paths not working
Hello list, thank you all for your advices. Aditya was right. There was some mess in PATH variable. Lesson learned: start with explicit paths to executables. Still where mtxrun (Windows) was pointing to the right one, which was fooling me. I've noticed the problem with antivirus SW during the first installation of lmtx. It wasn't the case this time, but one should be aware antivirus programs don't trust mtxrun.exe. Thank you once again, Jano On Wed, Jun 15, 2022 at 11:23 PM Bruce Horrocks wrote: > > > > On 14 Jun 2022, at 12:20, Jano Kula via ntg-context > wrote: > > > > Do you have an idea how to fix problem? > > I will be thankful for an advice, it is quite urgent (everything was > working yesterday). > > Do you have an anti-virus product installed? > > In the past I've noticed that Symantec sometimes gives a false positive on > some of the ConTeXt files as they are installed and silently deletes them > thinking they contain malware. > > The result is a broken ConTeXt because files are missing but you have no > idea which files are missing. :-( > > Try temporarily disabling AV and then do a complete re-install into an > empty C:/data/context directory. > > — > Bruce Horrocks > Hampshire, UK > > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] How to print a random whole number between x and y?
I was using this code for a long time in my document. I have a PDF with 10 pages, and this would randomly display one of those pages: \ctxlua{math.randomseed( os.time() )} \getrandomnumber \n {1} {10} \placefigure[force, none]{}{\framed[frame=off]{\externalfigure[comic.pdf][page=\n, width=\textwidth]}} For reasons I cannot understand, after an update of ConTeXt, the code no longer works, though trying to reduce it to a minimum working example it works, so I cannot figure out what is wrong in my code. Undefined control sequence ...domseed( os.time() )} \par \getrandomnumber \n {1} {10} \par \placefigure... \doifsomething #1->\edef \m_syst_string_one {#1 }\ifx \m_syst_string_one \emp... \event ... {#6}{{\bf #6}} \par \doifsomething {#7} {#7 } \par \doifsomething ... Is there another solution for generating a random whole number between 1 and 10? --Joel ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuplist only for bodypart
On 6/16/22 22:36, Henning Hraban Ramm via ntg-context wrote: > Am 16.06.22 um 21:19 schrieb Pablo Rodriguez via ntg-context: > >>\startsectionblockenvironment[bodypart] >> ... >>\stopsectionblockenvironment > > This should work according to documentation. Many thanks for your reply, Hraban. Using current latest (from 2022.05.11 11:36) with current sample outputs no different setup for chapters from bodypart: \startsectionblockenvironment[bodypart] \setuplist[chapter] [alternative=d] \stopsectionblockenvironment \starttext \completecontent \startfrontmatter \dorecurse{5} {\chapter{Chapter \recurselevel}} \stopfrontmatter \startbodymatter \dorecurse{5} {\chapter{Chapter \recurselevel}} \stopbodymatter \startbackmatter \dorecurse{5} {\chapter{Chapter \recurselevel}} \stopbackmatter \stoptext Just to contribute a sample that helps to confirm the issue. 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___