Re: [NTG-context] How to create an index that refers to multiple other books?
I tried adding 'pageprefixsegments' to setupregister, but cannot find any value that adds anything, ex. pageprefixsegments={WB1} pageprefixsegments=part:number How does it work? I'd be fine if the index listed pages like "WB1 3" meaning "Workbook 1, page 3", it isn't ideal but is better than not having the index showing anything. --Joel On Tuesday, January 18, 2022, 07:41:15 AM MST, Henning Hraban Ramm via ntg-context wrote: Am 18.01.22 um 14:27 schrieb Joel via ntg-context: > One possible solution I see, since the textbooks and workbooks share the > same macros, formatting, fonts, etc. is to just render them as a single > file, resetting the page number at the start of each new book, then > later use pdfjam to split the files, but I'm not sure how the index > could tell readers which of the five "page 5's" (for example) the index > is referring to. --Joel In this case, you could use \part per workbook and use pageprefixsegments in \setupregister to add the part number in front of the page number. Otherwise, I guess it would be possible to read the .tuc files of the other products to create index entries. (Some Lua programming; shouldn’t bee too hard, but still way over my head.) Hraban ___ 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] How to create an index that refers to multiple other books?
On 1/18/2022 2:16 PM, Joel via ntg-context wrote: I am writing a secondary textbook to be used in public schools. In my state, the textbooks must adhere to standards, such as the Common Core State Standards (CCSS). It is typical for a textbook to contain an index for teachers to check where in the textbook which standards are used. I've used the following code to create such an index, if I simply place `\learned{}` somewhere containing the standard's ID, it creates a custom index entry, and `\placelearned` displays that index. \defineregister[learned][compress=yes] \setupregister[learned][style=sansbold, textstyle=slanted, n=1, pagenumber=yes] \starttext \learned{CCSS+W.7.3} \input knuth \learned{CCSS+W.7.3} \input knuth \learned{CCSS+W.7.1} \startchapter[title=Standards] \placelearned \stopchapter \stoptext This prints an index like this: Standards c CSS W.7.1 1 W.7.3 1 My problem is my textbook also includes four separate workbooks. I need the index to show my publisher that I've covered all 300+ standards, so I need the index at the back of the textbook to also contain details of which pages in each workbook the standards are found. How can I combine the index so it refers to all books? Something like this: Standards c CSS W.7.1 T 1, Wk.1 3-8, 12, Wk.2 8-9, 60-61 W.7.3 T 1, Wk.1 3-8, 12, Wk.2 8-9, 60-61, Wk.3 1-2, 54, 70, 90, Wk.4 99, 102, 104 ...or possibly like this... Standards c CSS W.7.1 Textbook: 1 Workbook 1: 3-8, 12 Workbook 2: 8-9, 60-61 W.7.3 Textbook: 1 Workbook 1: 3-8, 12 Workbook 2: 8-9, 60-61 Workbook 3: 1-2, 54, 70, 90 Workbook 4: 99, 102, 104 Is there any way to print an index that covers pages across multiple books? in principle one can load an index but you want some prefixing ... i suppose that we can make some more native feature (some weekend challenge i guess) 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 / 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] Defining new float types fails in LMTX
On Sun, 16 Jan 2022 16:53:16 +0100 Marco Patzer via ntg-context wrote: > Still an issue with 2022.01.15 17:29. Fixed as of 2022.01.18 10:48. Thanks Hans. Marco ___ 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 create an index that refers to multiple other books?
Am 18.01.22 um 14:27 schrieb Joel via ntg-context: One possible solution I see, since the textbooks and workbooks share the same macros, formatting, fonts, etc. is to just render them as a single file, resetting the page number at the start of each new book, then later use pdfjam to split the files, but I'm not sure how the index could tell readers which of the five "page 5's" (for example) the index is referring to. --Joel In this case, you could use \part per workbook and use pageprefixsegments in \setupregister to add the part number in front of the page number. Otherwise, I guess it would be possible to read the .tuc files of the other products to create index entries. (Some Lua programming; shouldn’t bee too hard, but still way over my head.) Hraban ___ 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 create an index that refers to multiple other books?
One possible solution I see, since the textbooks and workbooks share the same macros, formatting, fonts, etc. is to just render them as a single file, resetting the page number at the start of each new book, then later use pdfjam to split the files, but I'm not sure how the index could tell readers which of the five "page 5's" (for example) the index is referring to. --Joel On Tuesday, January 18, 2022, 06:19:01 AM MST, Joel via ntg-context wrote: I am writing a secondary textbook to be used in public schools. In my state, the textbooks must adhere to standards, such as the Common Core State Standards (CCSS). It is typical for a textbook to contain an index for teachers to check where in the textbook which standards are used. I've used the following code to create such an index, if I simply place `\learned{}` somewhere containing the standard's ID, it creates a custom index entry, and `\placelearned` displays that index. \defineregister[learned][compress=yes] \setupregister[learned][style=sansbold, textstyle=slanted, n=1, pagenumber=yes] \starttext \learned{CCSS+W.7.3} \input knuth \learned{CCSS+W.7.3} \input knuth \learned{CCSS+W.7.1} \startchapter[title=Standards] \placelearned \stopchapter \stoptext This prints an index like this: Standards c CSS W.7.1 1 W.7.3 1 My problem is my textbook also includes four separate workbooks. I need the index to show my publisher that I've covered all 300+ standards, so I need the index at the back of the textbook to also contain details of which pages in each workbook the standards are found. How can I combine the index so it refers to all books? Something like this: Standards c CSS W.7.1 T 1, Wk.1 3-8, 12, Wk.2 8-9, 60-61 W.7.3 T 1, Wk.1 3-8, 12, Wk.2 8-9, 60-61, Wk.3 1-2, 54, 70, 90, Wk.4 99, 102, 104 ...or possibly like this... Standards c CSS W.7.1 Textbook: 1 Workbook 1: 3-8, 12 Workbook 2: 8-9, 60-61 W.7.3 Textbook: 1 Workbook 1: 3-8, 12 Workbook 2: 8-9, 60-61 Workbook 3: 1-2, 54, 70, 90 Workbook 4: 99, 102, 104 Is there any way to print an index that covers pages across multiple books? --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 ___ ___ 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 create an index that refers to multiple other books?
I am writing a secondary textbook to be used in public schools. In my state, the textbooks must adhere to standards, such as the Common Core State Standards (CCSS). It is typical for a textbook to contain an index for teachers to check where in the textbook which standards are used. I've used the following code to create such an index, if I simply place `\learned{}` somewhere containing the standard's ID, it creates a custom index entry, and `\placelearned` displays that index. \defineregister[learned][compress=yes] \setupregister[learned][style=sansbold, textstyle=slanted, n=1, pagenumber=yes] \starttext \learned{CCSS+W.7.3} \input knuth \learned{CCSS+W.7.3} \input knuth \learned{CCSS+W.7.1} \startchapter[title=Standards] \placelearned \stopchapter \stoptext This prints an index like this: Standards c CSS W.7.1 1 W.7.3 1 My problem is my textbook also includes four separate workbooks. I need the index to show my publisher that I've covered all 300+ standards, so I need the index at the back of the textbook to also contain details of which pages in each workbook the standards are found. How can I combine the index so it refers to all books? Something like this: Standards c CSS W.7.1 T 1, Wk.1 3-8, 12, Wk.2 8-9, 60-61 W.7.3 T 1, Wk.1 3-8, 12, Wk.2 8-9, 60-61, Wk.3 1-2, 54, 70, 90, Wk.4 99, 102, 104 ...or possibly like this... Standards c CSS W.7.1 Textbook: 1 Workbook 1: 3-8, 12 Workbook 2: 8-9, 60-61 W.7.3 Textbook: 1 Workbook 1: 3-8, 12 Workbook 2: 8-9, 60-61 Workbook 3: 1-2, 54, 70, 90 Workbook 4: 99, 102, 104 Is there any way to print an index that covers pages across multiple books? --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 ___
[NTG-context] definemathcommand and Lucida OT
Hi Hans, Some time ago I reported about an issue with \definemathcommand, and the issue is still present, as one can see with following example. Best regards: Otared % begin liminf-Argmin.tex \setupbodyfont[lucidaot] %\setupbodyfont[termes] \definemathcommand [Argmin] [limop] {\mfunctionlabeltext{ArgMin}} \definemathcommand [liminfbar] [limop] {\underline{\mfunctionlabeltext{lim}}} \definemathcommand [limsupbar] [limop] {\overline{\mfunctionlabeltext{lim}}} \starttext The built-in commands \type{\liminf}, yielding $\liminf$, and \type{\limsup}, yielding $\limsup$ do not work properly with LucidaOT: \startformula x_{n} := (-1)^n, \quad\mbox{then} \quad \liminf_{n \geq 0}x_{n} = -1, \quad \limsup_{n\geq 0} x_{n}= +1. \stopformula The user defined commands \type{\liminfbar} and \type{\limsupbar} behave correctly: \startformula x_{n} := (-1)^n, \quad\mbox{then} \quad \liminfbar_{n \geq 0}x_{n} = -1, \quad \limsupbar_{n\geq 0}x_{n} = +1, \stopformula but not the command \type{\Argmin} \startformula \Argmin_{x\in {\Bbb R}} (x^2 - x + 1) = {1 \over 2}. \stopformula \stoptext % end liminf-Argmin.tex liminf-Argmin.pdf Description: Adobe PDF document ___ 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] new uplaod
Hi, a new lmtx upload - crash with bottom floats probably solved: had to do with tricky interaction between engine insert handling and callback interference (as well as some assumptions in the engine dating that relate to the fact that tex was never written to be opened up this way) - crash due to math initialization: this related to a new mechanism wrt math parameters that Mikael and I are playing with .. think of this: \newmuskip\mymuskipA \mugluespecdef\mymuskipB 0mu \inherited\Umathfracfracspacing\textstyle\mymuskipA \inherited\Umathradradspacing \textstyle\mymuskipB \startTEXpage[offset=3bp] \mymuskipA 10mu \mugluespecdef\mymuskipB 10mu $\mathfrac{x}\mathfrac{x}$\par $\mathrad {x}\mathrad {x}$\par \mymuskipA 20mu \mugluespecdef\mymuskipB 20mu $\mathfrac{x}\mathfrac{x}$\par $\mathrad {x}\mathrad {x}$\par \mymuskipA 30mu \mugluespecdef\mymuskipB 30mu $\mathfrac{x}\mathfrac{x}$\par $\mathrad {x}\mathrad {x}$\par \mymuskipA 30mu plus 10mu minus 10mu \mugluespecdef\mymuskipB 30mu plus 10mu minus 10mu $\mathfrac{x}\mathfrac{x}$\par $\mathrad {x}\mathrad {x}$\par \stopTEXpage tex has a few abstractions (thinmuskip etc) than basically postpone a setting so that they can be adapted by setting these 'special - internal in luametatex speak - mu glue registers' but is is being generalized so that we can group math (integer, dimension, glue) parameters by binding them to registers and constants ... that way we can do simple and efficient switches to different spacing ... just that you know 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 / 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] Bug in alignment with LMTX version 2022.01.15 17:32
Hi Hans and Aditya, Thanks for the clarification. Since for some documents I still use mkiv, I ended up using a definition which depends on whether one is using mkiv or lmtx, as in the example below. I wonder if there is a better solution. Best regards: Otared % begin bug-aligned-solved.tex \doifmode{mkiv}{\definemathmatrix[alignedcases] [align={right,left,left}, distance=3pt, left={\left\{}, right={\right.}, style=\displaystyle]} \doifmode{mkiv}{\definemathmatrix[matrix] [align={right,left,left}]} \doifmode{lmtx}{\definemathmatrix[alignedcases] [align={1:right,2:left,3:left}, distance=3pt, left={\left\{}, right={\right.}, style=\displaystyle]} \doifmode{lmtx}{\definemathmatrix[matrix] [align={1:right,2:left,3:left}]} \starttext \doifelsemode{lmtx}{We are using LMTX}{We are using mkiv} \placeformula[eq:1] \startformula \startalignedcases \NC \partial_{t} u \NC = \Delta u + \epsilon^{-2}f(u) \NC\qquad\text{in }\, \Omega\times (0,+\infty) \NR \NC {\partial\phi(u) \over \partial{\bi n}} \NC = 0 \NC\qquad\text{on }\, \partial \Omega\times (0,+\infty)\NR \NC u(x,0) \NC = u_{0}(x)\NC\qquad\text{in }\, \Omega.\NR \stopalignedcases \stopformula \startformula \startmatrix \NC ABC\NC ABC\NC ABC\NR \NC AA \NC AA \NC AA \NR \stopmatrix \stopformula % end bug-aligned-solved.tex > On 17 Jan 2022, at 23:53, Hans Hagen via ntg-context > wrote: > > On 1/17/2022 11:35 PM, Aditya Mahajan via ntg-context wrote: >> On Mon, 17 Jan 2022, Aditya Mahajan via ntg-context wrote: >>> I confirm that this is a bug, which was not there in the version from mid >>> Dec. >> Not a bug, but new interface. You need: >> \definemathmatrix[matrix] >> [align={1:right,2:left,3:left}] >> It is also possible to say: align={all:middle}. Combination of the two don't >> seem to work. > basically we increment each element but a number sets the column so one can > go to a specific column; empty (whatever non number will start again at zero) > > 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 / 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 ___