[NTG-context] Log entries about confusing level change
Hello all, The following example produces two log entries that seem a bit odd. The log entries are: backend > bookmarks > confusing level change at level 3 around '1 body1' backend > bookmarks > confusing level change at level 3 around 'back1' and they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks [chapter] \starttext \startfrontmatter \startchapter [title=front1] \samplefile {knuth-gpt} \stopchapter \stopfrontmatter \startbodymatter \startchapter [title=body1] \samplefile {knuth-gpt} \stopchapter \stopbodymatter \startbackmatter \startchapter [title=back1] \samplefile {knuth-gpt} \stopchapter \stopbackmatter \stoptext Does the level change message suggest that something is missing in the document? -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Font version parse question
On 3/7/2024 7:36 PM, Rik Kabel wrote: Hello all, The font tweak file libertinus_math.lfg tests for a font version of *7.040*, but the result of the version parse is *7.040;RELEASE*, resulting in an error message. I do not know if this is the fault of the parser or of the font metadata. Changing the test in the .lfg file fixes the error, but that is not a long-term solution. The exact message I get in the log is: mathematics > tweak > 'LibertinusMath-Regular', size 10, math size 0, version 'Version, 7.040;RELEASE' found, version 'Version 7.040' expected This is not a high-priority issue for me -- I have nothing in this document that would benefit -- but others may appreciate a fix. Unless we have a crash it's just a warning, more for Mikael and me so that we know when to check. One cannot rely on a version being a number, so who knows what to test. Consistency, also within a font family is often an issue. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Font version parse question
Hello all, The font tweak file libertinus_math.lfg tests for a font version of *7.040*, but the result of the version parse is *7.040;RELEASE*, resulting in an error message. I do not know if this is the fault of the parser or of the font metadata. Changing the test in the .lfg file fixes the error, but that is not a long-term solution. The exact message I get in the log is: mathematics > tweak > 'LibertinusMath-Regular', size 10, math size 0, version 'Version, 7.040;RELEASE' found, version 'Version 7.040' expected This is not a high-priority issue for me -- I have nothing in this document that would benefit -- but others may appreciate a fix. -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: imposition: getting to the last page of a booklet
Pablo Rodriguez via ntg-context schrieb am 06.03.2024 um 20:17: On 3/6/24 19:50, Wolfgang Schuster wrote: [...] Could you write the first line in plain language? Look at the second example of the Lua code in the example below for each command (the first example is your version), the third example is just a condensed version of example 2. Many thanks for your extended explanation, Wolfgang. Here is another solution which uses \ifcase the select a different case dependent on the value of the remainder. \def\beforequadruplenumber#1% {\ifcase\numexpr#1;4\relax \the\numexpr#1+3\relax % remainder = 0 \or \the\numexpr#1+2\relax % remainder = 1 \or \the\numexpr#1+1\relax % remainder = 2 \or \the\numexpr#1+4\relax % remainder = 3 \fi} \def\afterquadruplenumber#1% {\ifcase\numexpr#1;4\relax \the\numexpr#1+1\relax % remainder = 0 \or \the\numexpr#1+4\relax % remainder = 1 \or \the\numexpr#1+3\relax % remainder = 2 \or \the\numexpr#1+2\relax % remainder = 3 \fi} Now it is clearer to me (although I need some time to learn from it). When you use \numexpr to perform arithmetic in TeX it is recommended to add a final \relax to stop the command from scanning to additional values, e.g. in the example below \testone takes value beyond the argument because \numexpr hasn't ended yet. \starttext \def\testone#1{\the\numexpr #1 + 1 } \testone{1} + 1 \def\testtwo#1{\the\numexpr #1 + 1 \relax} \testtwo{1} + 1 \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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] multicolumn title and abstact (bachotex) using tugboat.mkxl
Hello, I am currently writing my paper for last year's BachoTeX proceedings. I am using tugboat.mkxl module to design the layout. In bachotex proceedings, the author's data and abstract are on a single column and the article is usually typeset on two columns. Comments in tugboat.mkxl states: %D We have several column mechanisms and they all serve a different purpose. Here we %D use pagecolumns. They support much of what we can do in single columns, but of %D course there are exceptions. Floats can go into columns of aremoved to the top or %D bottom when there is no room. We don't span mid column. Notes can go in columns %D or at the end. We can start with a single column (for titles and such). I can't figure out which part of the file should be used/adapted to start with a single column. What I did is to put datas and abstract in a frame and use \placefigure. As stated in pagecolumns manual, everything is put on the top of next page. (BTW, there is a typo: «of aremoved») I don't know, whether this MWE helps is relevant, but just in case, here is what I did: * copy tugboat.mkxl to a new file p-bachotex.mkxl * changed p-bachotex.mkxl like this: \startsetups bachotex:naglowek:columns \defineframedtext [Dane] \setupframedtext [Dane] [width=18cm , align=normal, frame=no] \definenarrower [Streszczenia] [2*middle] \startplacefigure [location={here,none}] {\startDane {\tfa\getvariable{tugboat}{author}}\par \getvariable{tugboat}{address}\par {\tt\getvariable{tugboat}{email}}\par \startStreszczenia \doifelsebufferempty {abstract} { % no abstract } { \blank[line] \enforced\let\\\endgraf \setups[tugboat:abstract:setup] \startAbstracts[title={Abstract}] \stopAbstracts } \stopStreszczenia \stopDane} \stopplacefigure \stopsetups \startsetups tugboat:article:start \starttext \setups{tugboat:columns:presets} \setups{tugboat:banner:setup:\getvariable{tugboat}{type}} \setupheadertexts [\setups{tugboat:banner:text:article}] [pagenumber] \setuppagenumber [number=\getvariable{tugboat}{page}] \startmode[columns] \startpagecolumns \stopmode \setups[tugboat:introduction:article] \doifmodeelse{columns}{ \setups{bachotex:naglowek:columns} } { \setups{bachotex:naglowek:nocolumns} } \stopsetups My article begins so: \enablemode [columns] \usemodule [bachotex] % skipped tugboat variables for this MWE \StartAbstract \input tufte \StopAbstract \StartArticle \input knuth \StopArticle Thank you for your help Damien T ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___