[NTG-context] Re: last page number for a list
Hi, Bruce— This does not quite work—the page numbers are those of the first page of the chapter, not the last. But thanks for the tip about \writetolist. Perhaps I can get that to work. What I need are ToC entries like AuthorName ShortTitle 1–6 I need this pagination because one of the requirements of continuous publication on the OJS is that once an item is published changes are not permitted. So I cannot go with normal continuous publication since, for us anyway, items are not processed in strict sequential order (e,g., we may have, paper+paper+ review+paper...) If it helps: I currently have \startFMTitle[reference=\Reference, title={}][itemAuthor=AuthorName, itemTitle=ShortTitle,...] \setuplist[FMTitle][state=start, alternative=startendfmpages, criterium=all,] (\Reference is defined at the in the preamble to input of the file/component.) \definelistalternative[startendfmpages][renderingsetup=list:startendfmpages] \startsetups[list:startendfmpages] \structurelistuservariable{itemAuthor}\crlf \structurelistuservariable{itemTitle}\hfill% \at[\currentlistentrypagenumber]–\at[\lastpagenumber] \vglue1pc \stopsetups where I have \reference[\lastpagenumber]{} at the end of the file. But this gives me ??–viii (the viii is correct and interactive) for the FMTitle. Sadly the entries for all my other Titles (SourceTitle, StudyTitle...) is ??–viii. (Each title is a modified chapter.) Curiously, \at[\Reference]–\convertnumber{r}{\lastpagenumber} and \at[\Reference]–\at[\lastpagenumber] work properly in the body text. The overall structure is project-product sort with many components in the product. This is probably TMI. The bottom line is that I am truly stumped. All best, Alan On Wed, Apr 3, 2024 at 6:56 AM Bruce Horrocks wrote: > > > > On 30 Mar 2024, at 19:59, Alan Bowen wrote: > > > > How can I get the last page number of a chapter for a list (ToC)? > > > > Outside of a list, I use \lastpagenumber. > > But that does not work in a list such as the ToC. > > > > Any tips or pointers will be gladly received. > > > I'm not quite sure what you want to do with these numbers: something like > printing out a contents page but instead of the start page of a chapter it > shows the last page of the chapter? > > If so then try creating a custom list and use \writetolist immediately > before each \stopchapter command? > > \definelist[LastPages][criterium=all] > \starttext > \completecontent > \page > \completelist[LastPages] > \page > \dorecurse{10}{ > \startchapter[title={This is my chapter}] > This is a chapter\par \dorecurse{6}{\input knuth } \input > math-kontinuitet-sv > > \writetolist[LastPages]{3.}{\namedstructurevariable{chapter}{title}} > \stopchapter > } > \stoptext > > But I can't get the number option of \writetolist to work - the "3." above > is ignored. :-( > > — > 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 / > 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 > > ___ > ___ 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] last page number for a list
How can I get the last page number of a chapter for a list (ToC)? Outside of a list, I use \lastpagenumber. But that does not work in a list such as the ToC. Any tips or pointers will be gladly received. Alan ___ 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] start/end pages in ToC
Our journal is currently in the process of moving to continuous publication of items in a given volume as they are ready. This entails re-jigging the ToC so that it now includes the start and end page numbers of each item. So far, I have everything pretty much in the right place, but for the page numbers I am getting only “??”. I am not sure why this is happening and would be grateful if someone could tell me why or point me to documentation that explains the problem and how to solve it. Many thanks in advance. My minimalish working example: \definehead[SourceTitle][chapter] \setuphead[SourceTitle][page=yes, footer={ItemData}] \definehead[StudyTitle][chapter] \setuphead[StudyTitle][page=yes, footer={ItemData}] \definetext[ItemData][footer][ {\at[\Reference]– \at[\namedstructureuservariable{}{authorInitials}endPage]} ] \setuplist[SourceTitle][ state=start, textcolor=black, alternative=startendpages, criterium=all, headnumber=no, interaction=page, numberalign=flushright, before={\blank[2.2ex, fixed]}, inbetween=\endgraf, ] \setuplist[StudyTitle][ state=start, textcolor=black, alternative=startendpages, criterium=all, headnumber=no, interaction=all, numberalign=flushright, before={\blank[2.2ex, fixed]}, inbetween=\endgraf, ] \define\ToCEntry{% \structurelistuservariable{author}\crlf \structurelistuservariable{title}\hfill% \at[\structurelistuservariable{reference}]–% \at[\structurelistuservariable{authorInitials}endPage] } \definelistalternative[startendpages] [renderingsetup=list:startendpages] \startsetups[list:startendpages] {\ToCEntry} \vglue1pc \stopsetups \starttext {\tfa\bf Contents} \blank[line, fixed] \WORD{Sources} \blank[halfline, fixed] \placelist[SourceTitle][criterium=all] \blank[line, fixed] \WORD{Studies} \blank[halfline, fixed] \placelist[StudyTitle][criterium=all] \page[makeup] \setnumber[userpage][1] \def\Reference{RefSo01} \startSourceTitle[reference={\Reference}, bookmark=Source01, title={}][ title=Source01, author=Author01, authorInitials=ABC, reference={\Reference}, ] \input knuth \page \dorecurse{25}{\input ward\par} \reference[ABCendPage]{} \stopSourceTitle \page[makeup] \setnumber[userpage][1] \def\Reference{RefSo02} \startSourceTitle[reference={\Reference}, bookmark=Source02, title={}][ author=Author02, title=Source02, authorInitials=PQR, reference={\Reference}, ] \input knuth \page \dorecurse{10}{\input ward\par} \reference[PQRendPage]{} \stopSourceTitle \page[makeup] \setnumber[userpage][1] \def\Reference{RefSt01} \startStudyTitle[reference={\Reference}, bookmark=Study01, title={}][ author=Author03, title=Study01, authorInitials=XYZ, reference={\Reference}, ] \input knuth \blank[big] \page \dorecurse{15}{\input ward\par} \reference[XYZendPage]{} \stopStudyTitle \page[makeup] \stoptext Alan ___ 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] text over text
Alan Bowen schrieb am 11.12.2023 um 19:14: ... <https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/thread/UGT4DKIJ7OJKDVBHFDBKH6XUZVQV6BNC/#> I am typesetting some transliterated medieval German and need to place one letter, e.g., an “e” in scriptsize over another letter, e.g., a “u” in text size. I have managed to get this in italics using \mathstackers and \definemathmatrix, but I need both letters in roman face and at text size. Is there a way to do this or would another approach be better? \ruby{e}{u} Wolfgang Thank you, Wolfgang. That’s got it nicely! Alan ___ 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] text over text
I am typesetting some transliterated medieval German and need to place one letter, e.g., an “e” in scriptsize over another letter, e.g., a “u” in text size. I have managed to get this in italics using \mathstackers and \definemathmatrix, but I need both letters in roman face and at text size. Is there a way to do this or would another approach be better? Alan ___ 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: \placeinitial problem
Hans— The latest version fixes the \placeinitial issue. Many thanks! Alan On Sun, Jul 16, 2023 at 5:09 PM Alan Bowen wrote: > Hi— > \placeinitial seems to fail when there is a footnote in the paragraph. At > least > > \startparagraph > \placeinitial \input ward \footnote{A footnote.} > \stopparagraph > > > only works when the footnote is commented out. > > I am running lmtx [ConTeXt ver: 2023.06.22 LMTX fmt: 2023.6.26] > > Alan > > > ___ 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] \placeinitial problem
Hi— \placeinitial seems to fail when there is a footnote in the paragraph. At least \startparagraph \placeinitial \input ward \footnote{A footnote.} \stopparagraph only works when the footnote is commented out. I am running lmtx [ConTeXt ver: 2023.06.22 LMTX fmt: 2023.6.26] Alan ___ 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] \setupmathematics oddity
The following \setupmathematics[autopunctuation={all,semicolon}] %\setupmathematics[autopunctuation={all, semicolon}] %\setupmathematics[autopunctuation={all,semicolon,colon}] \starttext \startformula 0,0;2,0,35,17,40,41\textdegree{} \cdot 365;15 \cdot 40 = 2,9;23,14\textdegree{}. \stopformula \stoptext works as it should (no space after the “;” or the “,”). With the second and third versions of \setupmathematics there is an unwanted space after each punctuation mark. Alan ___ 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] synctex problem
At the top of a single source file, I have the lines: % !TEX root = prd_Aestimatio-0301.tex % the root file % !TEX TS-program = ConTeXt2021 % !TEX useAlternatePath % !TEX useConTeXtSyncParser \setupsynctex[state=start, method=max] Syncing works well enough—though I can see no difference between method =min and method=max, both highlight only a few words and not the entire text to be synced, but perhaps my expectations are out of line. When I have these lines at the top of a component file and typeset the product file, I get a rootfile.synctex file, but syncing itself goes awry. Nothing happens when I sync from the PDf file to the component file, and when I sync from the component file to the product PDF, I get the correct page but no highlighting. I am using TeXShop ver. 5.03— sync method: Both Pdf Sync and Search Alternative Path: /Users/bowen1/Applications/LuaMetaTeX/tex/texmf-osx-arm64/bin and also the latest ConteXt (ver. 2022.10.15 10:37 LMTX) under macOS 12.6 (Apple M1 Pro chip) Note: the product file has only one component file for now. I suspect that I am missing something but am not sure where to look or what to do now. Any guidance will be much appreciated. Alan ___ 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] numbering sections/subsections
Thanks, again, Hraban. This is very helpful. Best, Alan On Mon, Jul 11, 2022 at 5:53 AM Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote: > Am 10.07.22 um 22:25 schrieb Alan Bowen via ntg-context: > > Thank you, Hraban, for the solution and the link! > > You’re welcome! > > > > > \definestructureconversionset[mySet][A,n,A,n][n] % starts at part! > > \setuphead[section,subsection][sectionconversionset=mySet] > > \setuphead[subsection][sectionsegments=section:subsection, > stopper={.}] > > > > % found in https://wiki.contextgarden.net/Titles > > <https://wiki.contextgarden.net/Titles> > > Afterwards I recognized, if you use "default" instead of a custom name, > you don’t need the setting in \setuphead. > > 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 > > ___ > ___ 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] numbering sections/subsections
Thank you, Hraban, for the solution and the link! All best, Alan On Sat, Jul 9, 2022 at 6:59 PM Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote: > Am 10.07.22 um 00:35 schrieb Alan Bowen via ntg-context: > > I’m trying to get my sections numbered with capital letters and my > > subsections with Arabic numbers. So far, no joy. What am I missing? > > > > Alan > > > > Mwe: with ConText ver: 2022.01.21 20:13 LMTX fmt: 2022.2.1. (The > > problem persists when I run ConTeXt online) > > > > \setuphead[section][conversion=A] > > > \setuphead[subsection][conversion=n, sectionsegements=section:subsection, > stopper={.}] > > \definestructureconversionset[mySet][A,n,A,n][n] % starts at part! > \setuphead[section,subsection][sectionconversionset=mySet] > \setuphead[subsection][sectionsegments=section:subsection, stopper={.}] > > % found in https://wiki.contextgarden.net/Titles > > > \starttext > > > > \startsection[title=New section] > > \input knuth > > \startsubsection[title=New subsection] > > \input ward > > \stopsubsection > > \stopsection > > > > \stoptext > > 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 > > ___ > ___ 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] numbering sections/subsections
I’m trying to get my sections numbered with capital letters and my subsections with Arabic numbers. So far, no joy. What am I missing? Alan Mwe: with ConText ver: 2022.01.21 20:13 LMTX fmt: 2022.2.1. (The problem persists when I run ConTeXt online) \setuphead[section][conversion=A] \setuphead[subsection][conversion=n, sectionsegements=section:subsection, stopper={.}] \starttext \startsection[title=New section] \input knuth \startsubsection[title=New subsection] \input ward \stopsubsection \stopsection \stoptext ___ 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] rtl fontfallback family issue?
With the latest LMTX standalone (ConTeXt ver: 2021.06.18) the Syriac text is not printed. \setupdirections[bidi=global, method=unicode] \definefontfeature [syriac] [syriac] [language=dflt, script=syrc] \definefallbackfamily[mainface][rm][Estrangelo Edessa] [range={syriac}, features=syriac] \definefontfamily[mainface][STIX Two Text] \setupbodyfont[mainface, 18pt] \starttext Syriac { ܐܝܟ ܟܝܢܐ ܕܐܐܪܣ ܡܲܥܕܢܘܬܗܘܢ ܘܡܲܥܒܿܕܝܢ ܩܪ̈ܒܐ ܘܚܣܡܐ ܠܗܠܝܢ } \stoptext The same is true if I use \def\Syr{\definedfont[name:estrangeloedessa*syriac]} and insert \Syr before the Syriac text. I have the same issue with my Arabic font fallback but not with my Greek font fallback. Alan ___ 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] oldstyle math
Thanks, Wolfgang. That’s good to know, I guess. I had hoped to stay with the older version in order to complete a project. But now I see that I must update. Sadly this brings me to the unresolved problem that updating with sh install.sh stopped working in early May. So, I will resume the thread in which I first mentioned this problem and see if there is any way forward. Alan On Wed, Jun 2, 2021 at 4:56 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Alan Bowen schrieb am 02.06.2021 um 22:07: > > I no longer get oldstyle numerals in the math environment (ConTeXt ver: > 2021.04.29 ) with > \definefontfamily[mainface][rm][STIX Two Text] > [protrusion=quality, > expansion=quality, > mode=node, > force=yes, > features={default, f:oldstyle}, > ] > \definefallbackfamily[mainface] [mm] [STIX Two Text] > [range=digitsnormal, > force=yes, > features=f:oldstyle, > ] > \definefontfamily[mainface][mm][STIX Two Math] > \setupbodyfont[mainface, 10pt] > > \starttext > 123456789 > > \m{123456789} > \stoptext > > What have I missed? > > > Works fine with the latest version. > > mtx-context | current version: 2021.06.01 17:04 > > 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 > > ___ > ___ 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] oldstyle math
I no longer get oldstyle numerals in the math environment (ConTeXt ver: 2021.04.29 ) with \definefontfamily[mainface][rm][STIX Two Text] [protrusion=quality, expansion=quality, mode=node, force=yes, features={default, f:oldstyle}, ] \definefallbackfamily[mainface] [mm] [STIX Two Text] [range=digitsnormal, force=yes, features=f:oldstyle, ] \definefontfamily[mainface][mm][STIX Two Math] \setupbodyfont[mainface, 10pt] \starttext 123456789 \m{123456789} \stoptext What have I missed? Alan ___ 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] updating luametatex
I seem to be stuck at ver. 209.08 (context ver. 2021.04.29). I downloaded context-osx-64.zip and made a clean install following the instructions for macOS on the wiki. context—version showed v. 2021.04.29 So I removed texmf cache and ran mtxrun —generate context —make context —version still showed ver. 2021.04.29 when I ran sh install.sh again, the result was the same. The version installed was still 2021.04.29 But this time the log showed an error mtx-install | running: /Users/bowen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun --generate lua error : startup file: ...owen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun.lua:13845: ')' expected near mtx-install | running: /Users/bowen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun --script cache --erase lua error : startup file: ...owen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun.lua:13845: ')' expected near mtx-install | running: /Users/bowen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun --generate lua error : startup file: ...owen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun.lua:13845: ')' expected near mtx-install | running: /Users/bowen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/context --make en lua error : function call: ...owen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun.lua:13845: ')' expected near There is a problem with ver 04.21.29 that I am hoping will be fixed in a later version. So staying at ver 2021.04.29 is not ideal. Any suggestion to fix this? Alan ___ 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] \setcharacterspacing
Hi, Wolgang— The mwe files in a product/component structure are attached. Everything works as desired with the current env file. If one comments out the startsetups...\stopsetups, the guillemets are not properly spaced in the body text, while those in the footnote are fine. If one comments out the \setup line, the guillemets are not properly placed anywhere. Please let me know if this is expected behavior— and I will try troubleshooting my own files to see why my env file has to have the \startsetups...\stopsetups line and the component file, the \setup line if I am to get what I need. Alan On Mon, May 17, 2021 at 4:00 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Alan Bowen schrieb am 17.05.2021 um 21:50: > > That is very good to know and it works in simple cases. But I am finding > that in a product/component structure, I get the proper spacing only when > • the environment file has the \startsetups...\stopsetups > • either \setup[test] or \setuplanguage[fr][setups=test] is in the > component file. > > Is this expected behavior? > > (Before I just \setcharacterspacing[test] in the env file but now it only > works when in the component file) > > > Can you make a simple example, it's possible there is a reset somewhere > which disables the feature at the end of the environment or the start of > the component file. > > 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 > > ___ > c_CharSpTest.tex Description: TeX document prd_CharSpTest.tex Description: TeX document env_CharSpTest.tex Description: TeX 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 ___
Re: [NTG-context] \setcharacterspacing
That is very good to know and it works in simple cases. But I am finding that in a product/component structure, I get the proper spacing only when • the environment file has the \startsetups...\stopsetups • either \setup[test] or \setuplanguage[fr][setups=test] is in the component file. Is this expected behavior? (Before I just \setcharacterspacing[test] in the env file but now it only works when in the component file) Alan On Mon, May 17, 2021 at 3:11 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Alan Bowen schrieb am 17.05.2021 um 20:57: > > Wolfgang—Thank you. That works very nicely! > > You can also remove the \startsetups and \stopsetups commands to enable > the spacing. > > When you want the spacing only for certain languages you can use > \setuplanguage to load the setups-block for them: > > \setuplanguage >[fr] >[setups=test] > > \starttext > > «anyword» > > {\fr «anyword»} > > \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 > > ___ > ___ 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] \setcharacterspacing
Wolfgang—Thank you. That works very nicely! Alan On Mon, May 17, 2021 at 2:44 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Alan Bowen schrieb am 17.05.2021 um 20:38: > > With > > \definecharacterspacing [test] > > \setupcharacterspacing [test] ["00AB] [right=.1, alternative=1] > > \setupcharacterspacing [test] ["00BB] [left=.1, alternative=1] > > > > \startsetups[test] > > \setcharacterspacing[test] > > \stopsetups > > > > \starttext > > «anyword» > > \stoptext > > there is no additional space after and before the guillemets. > > \starttext > \setup[test] > «anyword» > \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 > > ___ > ___ 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] \setcharacterspacing
With \definecharacterspacing [test] \setupcharacterspacing [test] ["00AB] [right=.1, alternative=1] \setupcharacterspacing [test] ["00BB] [left=.1, alternative=1] \startsetups[test] \setcharacterspacing[test] \stopsetups \starttext «anyword» \stoptext there is no additional space after and before the guillemets. I am using lmtx in the ConTeXt ver: 2021.04.29 23:09 standalone Alan ___ 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] Syriac (Estrangelo Edessa) query
I am trying to set text in the Syriac font Estrangelo Edessa. Right now, I have the following (taken for the wiki): \definefontfeature[semitic-complete] [mode=node,analyze=yes,language=dflt,ccmp=yes, autoscript=position,autolanguage=position, init=yes,medi=yes,fina=yes,isol=yes, mark=yes,mkmk=yes,kern=yes,curs=yes, liga=yes,dlig=yes,rlig=yes,clig=yes,calt=yes] \definefontfeature[arabic] [semitic-complete] [script=arab] \definefontfeature[syriac] [arabic] [fin2=yes, fin3=yes, med2=yes] \definefallbackfamily[mainface][rm][estrangeloedessa] [range={syriac}, features=syriac] \definefontfamily[mainface][rm][STIX Two Text] [protrusion=quality, expansion=quality, mode=node, force=yes, features={default, f:oldstyle}] \setupbodyfont[mainface, 20pt] \starttext Hello world! { \setupalign[r2l] ܐܝܟ ܟܝܢܐ ܕܐܐܪܣ ܡܲܥܕܢܘܬܗܘܢ ܘܡܲܥܒܿܕܝܢ ܩܪܒ̈ܐ ܘܚܣܡܐ ܠܗܠܝܢ } \stoptext Though the file compiles, the Syriac text does not look the same as the source text (Estrangelo Edessa unicode). See attachment. Any guidance in fixing this will be gladly received. Alan Disclaimer: I do not know Syriac. FontTest.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] installing luametatex query
I have re-installed the latest luametatex (macOS) following the directions on the wiki ( https://wiki.contextgarden.net/Installing_ConTeXt_LMTX_on_MacOS) Though luametatex --version mtxrun --generate are successful, context --version context --make --all gets mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' and luatools --generate gets zsh: command not found: luatools Any suggestions will be gladly received. Alan ___ 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] latest standalone—lua error
I removed and then reinstalled luametex: the problem persists. A. On Fri, Apr 30, 2021 at 11:21 AM Alan Bowen wrote: > Hi, Wolfgang— > > The mwe is: > \definefontfamily[mainface][rm][STIX Two Text] > [protrusion=quality, > expansion=quality, > mode=node, > force=yes, > features={default, f:oldstyle}, > ] > ] > \definefallbackfamily[mainface] [mm] [STIX Two Text] > [range=digitsnormal, > force=yes, > features=f:oldstyle] > > \definefontfamily[mainface][mm][STIX Two Math] > > \setupbodyfont[mainface, 20pt] > > \starttext > > Hello world! > > 123456789 > > \m{123456789} > > \oldstyle{123456789} > > \stoptext > > The problem disappears if I remove either > \definefallbackfamily[mainface] [mm] [STIX Two Text] > [range=digitsnormal, > force=yes, > features=f:oldstyle] > or > \definefontfamily[mainface][mm][STIX Two Math] > > But in neither case do I get oldstyle numerals. > > Note too that, when I remove \definefontfamily[mainface][mm][STIX Two > Math], my log file has > mkiv lua stats > loaded fonts: 2 files: lmmono10-regular.otf, > lmroman10-regular.otf > with no mention of STIX Two Text. > > Yet ConTeXt is aware of the STIX Two Math and STIX Two Text fonts. > > WE had a power failure very recently. I wonder if that has screwed things > up. > > Alan > > On Fri, Apr 30, 2021 at 9:45 AM Wolfgang Schuster < > wolfgang.schuster.li...@gmail.com> wrote: > >> Alan Bowen schrieb am 30.04.2021 um 13:19: >> >> Hi, Wolfgang— >> >> I copied all the fonts to a new document (file attached) and ran ConTeXt. >> The problem persists. The cause, I think, comes in the lines: >> >> \definefallbackfamily[mainface] [mm] [STIX Two Text] >> [range=digitsnormal, >> force=yes, >> features=f:oldstyle] >> which used to give me oldstyle numerals. >> >> >> I'm unable to reproduce the error with your example and most of the >> fallbacks are ignored because I don't have the fonts. >> >> To ensure there is no problem with the format and font database delete >> the cache and rebuild it: >> >> mtxrun --script cache --erase >> mtxrun --generate >> >> When this doesn't help you simplify your example. First remove one >> \definefallbackfamily at a time and afterwards remove \definefontfamily >> until the error disappears. >> >> 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 >> >> ___ >> > ___ 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] latest standalone—lua error
Hi, Wolfgang— The mwe is: \definefontfamily[mainface][rm][STIX Two Text] [protrusion=quality, expansion=quality, mode=node, force=yes, features={default, f:oldstyle}, ] ] \definefallbackfamily[mainface] [mm] [STIX Two Text] [range=digitsnormal, force=yes, features=f:oldstyle] \definefontfamily[mainface][mm][STIX Two Math] \setupbodyfont[mainface, 20pt] \starttext Hello world! 123456789 \m{123456789} \oldstyle{123456789} \stoptext The problem disappears if I remove either \definefallbackfamily[mainface] [mm] [STIX Two Text] [range=digitsnormal, force=yes, features=f:oldstyle] or \definefontfamily[mainface][mm][STIX Two Math] But in neither case do I get oldstyle numerals. Note too that, when I remove \definefontfamily[mainface][mm][STIX Two Math], my log file has mkiv lua stats > loaded fonts: 2 files: lmmono10-regular.otf, lmroman10-regular.otf with no mention of STIX Two Text. Yet ConTeXt is aware of the STIX Two Math and STIX Two Text fonts. WE had a power failure very recently. I wonder if that has screwed things up. Alan On Fri, Apr 30, 2021 at 9:45 AM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Alan Bowen schrieb am 30.04.2021 um 13:19: > > Hi, Wolfgang— > > I copied all the fonts to a new document (file attached) and ran ConTeXt. > The problem persists. The cause, I think, comes in the lines: > > \definefallbackfamily[mainface] [mm] [STIX Two Text] > [range=digitsnormal, > force=yes, > features=f:oldstyle] > which used to give me oldstyle numerals. > > > I'm unable to reproduce the error with your example and most of the > fallbacks are ignored because I don't have the fonts. > > To ensure there is no problem with the format and font database delete the > cache and rebuild it: > > mtxrun --script cache --erase > mtxrun --generate > > When this doesn't help you simplify your example. First remove one > \definefallbackfamily at a time and afterwards remove \definefontfamily > until the error disappears. > > 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 > > ___ > ___ 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] latest standalone—lua error
Hi, Wolfgang— I copied all the fonts to a new document (file attached) and ran ConTeXt. The problem persists. The cause, I think, comes in the lines: \definefallbackfamily[mainface] [mm] [STIX Two Text] [range=digitsnormal, force=yes, features=f:oldstyle] which used to give me oldstyle numerals. bowen1@acbs-mbp ~ % mtxrun --script fonts --list --all stixtwotext yields identifier familynamefontnamefilename subfont instances stixtwotext stixtwotext stixtwotext /Users/bowen1/Library/Fonts/STIX2Text-Regular.otf stixtwotextnormalstixtwotext stixtwotextitalic STIXTwoText-Italic.otf stixtwotextregular stixtwotext stixtwotextmedium STIXTwoText-Medium.otf On Thu, Apr 29, 2021 at 2:25 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Alan Bowen schrieb am 29.04.2021 um 18:29: > > With ConTeXt ver: 2021.04.28 18:39 LMTX fmt: 2021.4.29 int, I am now > getting the following error on compiling with files that were OK > previously. Is there something that I need to change? > > > The error is caused by the fallback font for math but you have create a > minimal example because I'm unable to reproduce it (copy all font settings > to a new document and run ConTeXt). > > Can you also check if the font files are found by ConTeXt: > > mtxrun --script fonts --list --all stixtwotext* > > 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 > > ___ > FontTest.tex Description: TeX 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] latest standalone—lua error
With ConTeXt ver: 2021.04.28 18:39 LMTX fmt: 2021.4.29 int, I am now getting the following error on compiling with files that were OK previously. Is there something that I need to change? Alan lua error > lua error on line 232 in file ../../env_Aestimatio-00.tex: registered function call [1151]: ...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:648: attempt to index a nil value (field 'tf') stack traceback: ...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:648: in field 'filefallback' ...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:666: in field 'mathfallback' ...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:692: in field 'fallback' ...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:782: in function <...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:777> (...tail calls...) 222 expansion=quality, 223 mode=node, 224 force=yes, 225 ] 226 \definefallbackfamily[mainface] [mm] [STIX Two Text] 227 [range=digitsnormal, 228 force=yes, 229 features=f:oldstyle] 230 231 \definefontfamily[mainface][mm][STIX Two Math] 232 >> 233 \setupbodyfont[mainface, 10pt] 234 235 \setupalign[hanging, stretch, hz] 236 237 %% French 238 %At beginning insert: 239 % \mainlanguage[fr] 240 % \setcharacterspacing[frenchpunctuation] 241 % \startsetups[footnote:french] 242 %\setcharacterspacing[frenchpunctuation] mtx-context | fatal error: return code: 256 ___ 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] PDF custom properties
Many thanks, Pablo. That does indeed help. I now have the metadata that I want. And, as I have discovered, I will need to get PDFPen Pro to access more than just the Document info panel. Until then, I will rely on Acrobat Reader to ensure that it is available. Very best, Alan On Wed, Mar 24, 2021 at 2:57 PM Pablo Rodriguez wrote: > On 3/23/21 10:12 PM, Alan Bowen wrote: > > Hi, Pablo— > > > > My inquiry concerns the possibility of getting *custom* properties that > > I could specify using \setupinteraction in a way that would output in > > the PDF file (under Document Info or Document Properties) as: > > > > Editor (not Author) editors names > > > > Title title of work > > Subtitle (not Subject)the subtitle of the work > > Subject the subject of the work > > Keywordkeywords > > > > See https://wiki.contextgarden.net/Interaction PDF Header and Custom > > Properties. > > Hi Alan, > > it seems that the key field cannot contain spaces. So it should read: > > \pdfbackendsetinfo{key}{ Text } > > Otherwise, Acrobat Reader (both latest DC in Windows and version 9.5 in > Linux) cannot open the document. > > And the information is displayed in the custom tab from document > properties, not in the description tab. > > Here is an image of the dialog: > > > https://community.adobe.com/legacyfs/online/1160244_PDF%20Document%20Properties%20Example.JPG > > Acrobat Reader version 9.5 doesn’t contain that tab and it cannot > display the field. > > I hope it helps now, > > Pablo > -- > http://www.ousia.tk > > ___ > 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] PDF custom properties
Hi, Pablo— My inquiry concerns the possibility of getting *custom* properties that I could specify using \setupinteraction in a way that would output in the PDF file (under Document Info or Document Properties) as: Editor (not Author) editors names Title title of work Subtitle (not Subject)the subtitle of the work Subject the subject of the work Keywordkeywords See https://wiki.contextgarden.net/Interaction PDF Header and Custom Properties. Thanks for the PDF spec file. I will check it out for any hints about non-standard metadata. Alan On Tue, Mar 23, 2021 at 4:33 PM Pablo Rodriguez wrote: > On 3/23/21 8:25 PM, Alan Bowen wrote: > > I should like to set the PDf properties so that the Document Info panel > has > > Editor ... > > Title ... > > Subtitle ... > > Subject ... > > Keyword > > > > The problem is that currently > > \setupinteraction[subtitle=text,] goes to Subject and that there are no > > keys to get output labelled Subject or Editor. > > Sorry, Alan, I’m afraid I don’t get your point. > > \setupinteraction > [state=start, > title=Title, > author=Author, > subtitle=Subject, > keyword=Keyword] > \starttext > \null > \stoptext > > According to the PDF spec > ( > https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#nameddest=G13.2348400 > ), > there is no editor field in standard metadata (unless you mean creator > or producer). > > Just in case it might help, > > Pablo > -- > http://www.ousia.tk > > ___ > 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] PDF custom properties
I should like to set the PDf properties so that the Document Info panel has Editor ... Title ... Subtitle ... Subject ... Keyword The problem is that currently \setupinteraction[subtitle=text,] goes to Subject and that there are no keys to get output labelled Subject or Editor. I have experimented with \pdfbackendsetinfo{ key }{ Text } but, so far, unsuccessfully. If this is possible,any suggestions about how to do it will be most welcome. Alan ___ 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] error with recent standalone (luametatex)
Files that ran well with ver ConTeXt ver: 2021.02.20 16:50 LMTX and earlier now fail with the following message: tex error > tex error on line 74 in file c_Review-0201-01_Bojowald.tex: lua error: run callback [36]: [string "/Applications/LuaMetaTeX/tex/texmf-context/te..."]:1343: attempt to concatenate a boolean value (local 'v') stack traceback: [string "/Applications/LuaMetaTeX/tex/texmf-context/te..."]:1343: in local 'w' [string "/Applications/LuaMetaTeX/tex/texmf-context/te..."]:1358: in function <[string "/Applications/LuaMetaTeX/tex/texmf-context/te..."]:1353> 64 \startparagraph 65 Some facts are compiled in the synthesis. The representations and inscriptions in the stairwells and kiosk show parallels to other cult buildings [702]. In several cases there are allusions to the ritual Opening of the Mouth [702]. 66 \stopparagraph 67 68 \startparagraph 69 In the synopsis, selected texts are compared [711–725]. The parallels are clearly arranged. 70 \stopparagraph 71 72 \startparagraph 73 The book contains bibliography [737–765], indices [767–809], tables [1a–41b], and color tables [1–7]. 74 >> \stopparagraph Is this a bug or has something changed that I am uns=aware of yet? Alan ___ 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] outputting components in their own PDFs
Denis— Many thanks for your explanation. It works very well in my separating components (chapters) and is going to save me a lot of time. Thanks too to Hans. And my apologies for missing the earlier discussion: my internet access and email has been very flakey of late and I know that I have lost messages. In fact, I found Denis’s reply and the earlier exchange by going to the list Archive. All best, Alan ___ 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] outputting components in their own PDFs
I have a project-component setup and need to produce a single PDF file containing all the components as well as a PDF file for each component. The single file is easy. Is there a way to automate the generation of the PDF files for the individual components? Alan ___ 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] yesterday’s version of luametatex needed
I need to reinstall luametatex version 2.08.13. Is there a page somewhere describing how to do this? Alan ___ 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] \setupcolors and \underbar bug?
The mwe \starttext \setupcolors[state=stop] {\darkred Test} \underbar{Here} \stoptext fails: “Here” does not appear above the underbar (which has the correct length). When \setupcolors[state=stop] is commented out, the file runs as it should. Alan ___ 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] \startblockquote…\stopblockquote issue
In the latest standalone ( ConTeXt ver: 2020.12.30 16:45 LMTX fmt: 2020.12.30), \startblockquote and \stopblockquote do not work when I use the key, method=font, or include \setupquotation[method=font]. MWE %\setupquotation[method=font] \setupdelimitedtext[blockquote][ % method=font, before={\blank[small,fixed] \setupnarrower[left=1.5pc,right=0pc] \startnarrower[left,right] \noindentation\switchtobodyfont[9pt]}, after={\par\stopnarrower \blank[small,fixed] \noindentation},] \starttext \input ward \startblockquote \input ward \stopblockquote \stoptext I am attempting to get protrusion of the left double quotation mark into the left margin when possible at the start of a line and do not understand why my block quotations are not appearing as expected. Alan ___ 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] text alignment issue
Fixed in today’s standalone. Many thanks—and best wishes for 2021!! Alan On Wed, Dec 30, 2020 at 10:51 AM Alan Bowen wrote: > In the last few versions of luametatex standalone, paragraphs that were > once justified now appear ragged right. My insertions of > \setupparagraphs[align=wide/normal/yes] and \setupalign[wide/normal/yes] > have had no effect. Is there some new coding that is needed to get > justified text? > > Alan > ___ 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] text alignment issue
In the last few versions of luametatex standalone, paragraphs that were once justified now appear ragged right. My insertions of \setupparagraphs[align=wide/normal/yes] and \setupalign[wide/normal/yes] have had no effect. Is there some new coding that is needed to get justified text? Alan ___ 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] issue with \cite in ConTeXt ver: 2020.12.22 22:14 LMTX fmt: 2020.12.22
\cite no longer works as expected MWE: \startsetups[tightspace] \spaceskip 0.5\interwordspace plus.5\interwordstretch minus \interwordshrink \stopsetups \def\dostartbibitem[#1][#2]% {\doifsomethingelse{#2}% {\startBibItem[reference={#1},title={#2}]}% {\startBibItem[reference={#1},title={#1}]}% } \def\startbibitem{\dodoubleempty\dostartbibitem} \def\stopbibitem{\stopBibItem} \definedescription[BibItem][ width=broad, margin=1.5pc, indenting={no}, indentnext=no, alternative=hanging, hang=1, headcommand=\gobbleoneargument, align=right, before={\directsetup{tightspace}\bgroup\language[packed]}, after={\egroup}, ] \definereferenceformat [cite] [type=title,left={},right={}] \definereferenceformat [bibpage] [type=page] starttext Now \cite[test 2020] on page \page \startbibitem[test 2020] \input ward \stopbibitem \stoptext Instead of “Now test 2020 on page”, I get “Now 248>BibItem:referencetext on page” and no sign of an internal link. Alan ___ 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] Scheherazade New loading issue
Thanks, Pablo. I ran the script but it made no difference. Scheherazade New was loaded with ver: 2020.11.07 12:47 but not with ver: 2020.09.20 23:02 The console file for the latter shows: selectfont > the requested fallback font 'Scheherazade New' for typeface 'mainface' style 'rm' was ignored because no files where found. And yet Scheherazade New sits beside Scheherazade (which 2020.09.20 finds) in ~/Fonts. I fixed my definition of \definefallbackfamily—thanks for catching that. Alan On Sat, Nov 7, 2020 at 1:25 PM Pablo Rodriguez wrote: > On 11/7/20 6:58 PM, Alan Bowen wrote: > > Though Scheherazade New font loads properly with the today’s LMTX, I > > cannot get it to load with LMTX from 2020.09.20 (which I must stay with > > for now because the latest one has its own complaints about my files). > > > > \definefallbackfamily[mainface][][Scheherazade New] > > [range=arabic] > > \definefontfamily[mainface][rm][STIX Two Text] > > \setupbodyfont [mainface, 24pt] > > > > \starttext > > Arabic—ؼ > > > > {\bf ؼ} > > \stoptext > > Hi Alan, > > I have just downloaded and compiled your sample: > > system > ConTeXt ver: 2020.09.20 23:02 LMTX fmt: 2020.11.7 > int: english/english > [...] > mkiv lua stats > loaded fonts: 4 files: scheherazadenew-bold.ttf, > scheherazadenew-regular.ttf, stix2text-bold.otf, stix2text-regular.otf > > Please, run "mtxrun --script cache --erase && mtxrun --generate" and I > think the new compilation will be fine. It seems to be that your > previous ConTeXt version cannot find fonts installed later. > > BTW, "\definefallbackfamily[mainface][][Scheherazade New]" should read > "\definefallbackfamily[mainface][rm][Scheherazade New]". But it doesn’t > affect your issue. > > Just in case it helps, > > Pablo > -- > http://www.ousia.tk > > ___ > 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] Scheherazade New loading issue
Though Scheherazade New font loads properly with the today’s LMTX, I cannot get it to load with LMTX from 2020.09.20 (which I must stay with for now because the latest one has its own complaints about my files). \definefallbackfamily[mainface][][Scheherazade New] [range=arabic] \definefontfamily[mainface][rm][STIX Two Text] \setupbodyfont [mainface, 24pt] \starttext Arabic—ؼ {\bf ؼ} \stoptext with ConTeXt ver: 2020.09.20 23:02 mkiv lua stats > loaded fonts: 2 files: stix2text-bold.otf, stix2text-regular.otf with ConTeXt ver: 2020.11.07 mkiv lua stats > loaded fonts: 4 files: stix2text-bold.otf, stix2text-regular.otf, scheherazadenew-bold.ttf, scheherazadenew-regular.ttf I should add that the old Sheherazade font works well with v. 2020.09.20. Alan ___ 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] issue with LMTX and itemize
and on mine with today’s standalone. A. On Sat, Nov 7, 2020 at 10:27 AM Pablo Rodriguez wrote: > On 11/7/20 4:11 PM, Alan Bowen wrote: > > Hi, Pablo— > > > > Shouldn’t it be either > > \item a > > or > > \startitem a\stopitem > > ? > Hi Alan, > > of course, the sample reads: > > \starttext > \startitemize > \startitem a\stopitem > \stopitemize > \stoptext > > But the issue still happens on my LMTX installation. > > Many thanks for your help, > > Pablo > -- > http://www.ousia.tk > > ___ > 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] issue with LMTX and itemize
Hi, Pablo— Shouldn’t it be either \item a or \startitem a\stopitem ? Alan On Sat, Nov 7, 2020 at 9:52 AM Pablo Rodriguez wrote: > Dear list, > > I have the following sample: > > \starttext > \startitemize > \item a\stopitem > \stopitemize > \stoptext > > With latest LMTX from today, I don’t get any item marker. > > Could you confirm the issue? > > Many thanks for your help, > > Pablo > -- > http://www.ousia.tk > > ___ > 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] oldstyle numerals in STIX Two Math
Thanks, Hraban.That’s a helpful start I guess the challenge now is to get STIX Two Math to use the oldstyle numerals in STIX Two Text (by adapting code that Wolgang gave me for using oldstyle numerals with TexGyre Math). When I ran mtxrun --script fonts --list --info stixtwotext, I got mtx-fonts | onum cyrl dflt mtx-fonts |dflt dflt mtx-fonts |grek dflt mtx-fonts |latn dflt rom trk Sadly, I have no idea what this means or how it might help in identifying the Unicode range of the oldstyle numerals in STIX Two Text. And that is something I need to take advantage of Wolfgang’s code. Alan On Wed, Oct 21, 2020 at 10:31 AM Henning Hraban Ramm wrote: > > > > Am 21.10.2020 um 15:59 schrieb Alan Bowen : > > > > I am trying to get the STIX Two fonts to display oldstyle numerals. > > > > I have the oldstyle numerals in STIX Two Text, the problem is the math > font. > > > > So far, my mwe is: > > \definefontfamily[mainface][rm][STIX Two Text][] %onum=yes does not seem > to work > > \definefontfamily[mainface][mm][STIX Two Math][] > > \definefontfeature[f:oldstyle][onum=yes] > > > > \setupbodyfont[mainface, 18pt] > > \addfeature{f:oldstyle} > > > > \starttext > > 123456789 > > \blank[big] > > $\sqrt{2} + 1234$ > > \stoptext > > > > Any pointers will be greatly appreciated. > > mtxrun --script fonts --list --info stixtwomath > > shows that STIX Two Math doesn’t provide the onum feature. > > 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 ___
[NTG-context] oldstyle numerals in STIX Two Math
I am trying to get the STIX Two fonts to display oldstyle numerals. I have the oldstyle numerals in STIX Two Text, the problem is the math font. So far, my mwe is: \definefontfamily[mainface][rm][STIX Two Text][] %onum=yes does not seem to work \definefontfamily[mainface][mm][STIX Two Math][] \definefontfeature[f:oldstyle][onum=yes] \setupbodyfont[mainface, 18pt] \addfeature{f:oldstyle} \starttext 123456789 \blank[big] $\sqrt{2} + 1234$ \stoptext Any pointers will be greatly appreciated. Alan ___ 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] page counter problem
Thank you, Taco, for the fix *and* the helpful explanation. The file now works (and I can now put this project to bed!) Alan On Wed, Sep 30, 2020 at 7:38 AM Taco Hoekwater wrote: > Hi Alan, > > > On 30 Sep 2020, at 12:50, Alan Bowen wrote: > > > > he page counter does not increase in the first iteration an PDf > inclusion but seems to work properly after that. Have attached a sample > file (69K) that will serve to show the problem—at least, on my machine. > > It is not the iteration itself. Try with another pdf with more than 2 > pages and you > will see that it happens in the first page(s). > > The problem is that you are not giving ConTeXt a fair chance to update the > page number, > because a series of \vbox to \paperheight {}’s cannot cleanly be broken > into separate > pages. The solution is to use > > \dorecurse{\noffigurepages} >{\vbox to \paperheight > > {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax > \hbox to \hsize > {\hskip-\backspace > \layeredtext[] > [boffset=3pc] > {\red\userpagenumber} > {\externalfigure[HannahBW.pdf][page=#1]}% > \hss}% > \vss}\page > } > > where the extra \page command allows ConTeXt to properly process the page > breaks. > > Best wishes, > Taco > > > ___ > 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] no frontmatter head on recto page
My apologies for the mixed message. A. On Wed, Sep 30, 2020 at 8:56 AM Alan Bowen wrote: > Thank you, Taco, for the fix *and* the helpful explanation. > > The file now works (and I can now put this project to bed!) > > Alan > > On Wed, Sep 30, 2020 at 7:44 AM Taco Hoekwater wrote: > >> >> >> > On 30 Sep 2020, at 11:46, jbf wrote: >> > >> > For some reason that I cannot work out, the recto page header is not >> appearing in frontmatter sections like Foreword. It is important to note >> that for this item I am using: >> > >> > \definehead >> > [foreword] [chapter]… >> >> ‘chapter' suppresses the header by default on the first page. >> >> at a guess: >> >> \setuphead[foreword][header=start] >> >> Best wishes, >> Taco >> >> >> ___ >> 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] no frontmatter head on recto page
Thank you, Taco, for the fix *and* the helpful explanation. The file now works (and I can now put this project to bed!) Alan On Wed, Sep 30, 2020 at 7:44 AM Taco Hoekwater wrote: > > > > On 30 Sep 2020, at 11:46, jbf wrote: > > > > For some reason that I cannot work out, the recto page header is not > appearing in frontmatter sections like Foreword. It is important to note > that for this item I am using: > > > > \definehead > > [foreword] [chapter]… > > ‘chapter' suppresses the header by default on the first page. > > at a guess: > > \setuphead[foreword][header=start] > > Best wishes, > Taco > > > ___ > 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] page counter problem
he page counter does not increase in the first iteration an PDf inclusion but seems to work properly after that. Have attached a sample file (69K) that will serve to show the problem—at least, on my machine. \starttext \setupexternalfigures[location=default] \setuplayer[preset=middlebottom, method=overlay]{} \setcounter[userpage][101] \noheaderandfooterlines \getfiguredimensions[HannahBW.pdf] \dorecurse{\noffigurepages} {\vbox to \paperheight {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax \hbox to \hsize {\hskip-\backspace \layeredtext[] [boffset=3pc] {\red\userpagenumber} {\externalfigure[HannahBW.pdf][page=#1]}% \hss}% \vss} } \dorecurse{\noffigurepages} {\vbox to \paperheight {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax \hbox to \hsize {\hskip-\backspace \layeredtext[] [boffset=3pc] {\red\userpagenumber} {\externalfigure[HannahBW.pdf][page=#1]}% \hss}% \vss} } \stoptext HannahBW.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 ___
Re: [NTG-context] numbering pages included by \copypages
After further testing guided by Hans’ suggestion, I now have \setupexternalfigures[location=default] \setuplayer[preset=rightbottom, method=overlay]{} \setuppagenumbering[color=darkmagenta] \starttext \getfiguredimensions[HannahBW.pdf] \dorecurse{\noffigurepages}{ \startTEXpage[pagestate=start] \layeredtext[] [boffset=3pc, roffset=3pc] {\darkmagenta\subpagenumber} {\externalfigure[HannahBW.pdf][page=#1]} \stopTEXpage } \stoptext which works, though it would arguably be better if there is a way to prevent the subpage number on the first page of every included file. Alan On Fri, Sep 25, 2020 at 6:12 AM Hans Hagen wrote: > On 9/25/2020 5:53 AM, Aditya Mahajan wrote: > > On Fri, 25 Sep 2020, Wolfgang Schuster wrote: > > > >> Aditya Mahajan schrieb am 24.09.2020 um 23:48: > >>> On Thu, 24 Sep 2020, Alan Bowen wrote: > >>>> Any suggestions or pointers will be most welcome. > >>> > >>> See if this gives you any ideas > >>> > >>> https://adityam.github.io/context-blog/post/include-multi-page-pdf/ > >> > >> When both document have the same size you can replace TeXpage with a > "page" > >> layout. > >> > >> \startlayout[page] > >> \dorecurse{\noffigurepages}{\externalfigure[...][page=\recurselevel]} > >> \stoplayout > > > > Thanks for the comment (also I didn't know about \startlayout .. > \stoplayout). Unfortunately, in my use case, the paper sizes may not be the > same.. I am typically attaching published journal articles and some are > published on letter paper and some on A4. > > \setupexternalfigures[location=default] > > \starttext > > \dorecurse {5} {Before #1\page} > > \getfiguredimensions[oeps.pdf] > > \startsetups SomeNumber > \vbox to \overlayheight \bgroup > \vss > \hbox to \overlaywidth \bgroup > \hss > \bfd \red You can figure it out: \pagenumber > \hss > \egroup > \vss > \egroup > \stopsetups > > \defineoverlay[SomeNumber][\setups{SomeNumber}] > > \dorecurse {\noffigurepages} { > \startTEXpage[pagestate=start] > \externalfigure[oeps.pdf][page=#1,background=SomeNumber]% > \stopTEXpage > } > > \dorecurse {5} {After #1\page} > > \stoptext > > - >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 ___
[NTG-context] numbering pages included by \copypages
I need to include several documents in a single paginated file. Treating the source file (.tex) of each document as a component file in a .prd file is one way to go. But I was wondering if it might be possible to do get the same result using the .pdf files of each document instead. \copypages is promising: it includes the. pdf files and the counter in the resultant .prd file is correct. But what I still have to get is the page number on all pages of the included .pdf files except the first page in each. I looked at \startpagefigure but that would be a very cumbersome way to go since there over 350 pages to include, given that it handles only one page at a time. I hope that this makes sense. Any suggestions or pointers will be most welcome. Alan ___ 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] latest lmtx
Hi, Otared— I had #!/bin/zsh #set path= ($path /usr/texbin /Applications/LuaMetaTeX/tex/texmf-osx-64/bin) export PATH=~/context-osx-64/tex/texmf-osx-64/bin:~/context-osx-64/bin:~/context-osx-64/tex/texmf-osx-64/bin ~/context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script context --directives="system.showerror" --autopdf "$1" --purgeall but on reading your response and checking my LuaMetaTeX directory, I changed the 2nd line to export PATH=~/tex/texmf-osx-64/bin:~/context-osx-64/bin:~/context-osx-64/tex/texmf-osx-64/bin and the files now process as they should. It is odd that it worked before with the mistaken entry. Many thanks to you and Hraban for your help! Alan On Sat, Sep 5, 2020 at 11:46 AM Otared Kavian wrote: > Hi Alan, > > Where did you install LuaMetaTeX? > For instance my LuaMetaTeX.engine contains the following three lines: > > #!/bin/bash > > export > PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin > > /context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script > context --directives="system.showerror" --autopdf "$1" --purgeall > > where I am invoking the file > /context-osx-64/tex/texmf-osx-64/bin/mtxrun > which is in the folder context-osx-64 where I installed LuaMetaTeX by > running > sh install.sh > > Therefore your LuaMetaTeX.engine file should contain the correct path. > > Best regards: Otared > > > On 5 Sep 2020, at 17:19, Alan Bowen wrote: > > > > No, Hraban, and I have never had a directory > /Users/bowen1/context-osx-64. Does Luametatex 2.10 (Context 2020.09.03) now > require one? > > > > Alan > > > > On Sat, Sep 5, 2020 at 10:26 AM Henning Hraban Ramm > wrote: > > > > > > > Am 05.09.2020 um 16:08 schrieb Alan Bowen : > > > > > > When I process > > > \starttext > > > Hello, world! > > > \stoptext > > > I get the following error message: > > > > > > /Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine:9: no such > file or directory: /Users/bowen1/context-osx-64/tex/texmf-osx-64/bin/mtxrun > > > > > > resolvers | formats | executing runner 'run luametatex format': > /Applications/LuaMetaTeX/tex/texmf-osx-64/bin/luametatex > --jobname="Version" > --fmt=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt > --lua=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui > cont-yes.mkiv --c:autogenerate --c:currentrun=1 --c:file-line-error > --c:fulljobname="./Version.tex" --c:input="./Version.tex" --c:kindofrun=1 > --c:maxnofruns=9 --c:synctex="1" > --c:texmfbinpath="/Applications/LuaMetaTeX/tex/texmf-osx-64/bin" > > > mtx-context | fatal error: return code: 11 > > > > > > There is definitely a file > > > /Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine. > > > Previous versions of lmtx process without any problem. > > > > The message doesn’t ask for the engine file, but for the mtxrun script > mentioned in line 9 of the engine. > > > > Is /Users/bowen1/context-osx-64/tex/texmf-osx-64/bin/mtxrun still valid > in your installation? > > > > 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 > > > ___ > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki!
Re: [NTG-context] latest lmtx
No, Hraban, and I have never had a directory /Users/bowen1/context-osx-64. Does Luametatex 2.10 (Context 2020.09.03) now require one? Alan On Sat, Sep 5, 2020 at 10:26 AM Henning Hraban Ramm wrote: > > > > Am 05.09.2020 um 16:08 schrieb Alan Bowen : > > > > When I process > > \starttext > > Hello, world! > > \stoptext > > I get the following error message: > > > > /Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine:9: no such file > or directory: /Users/bowen1/context-osx-64/tex/texmf-osx-64/bin/mtxrun > > > > resolvers | formats | executing runner 'run luametatex format': > /Applications/LuaMetaTeX/tex/texmf-osx-64/bin/luametatex > --jobname="Version" > --fmt=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt > --lua=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui > cont-yes.mkiv --c:autogenerate --c:currentrun=1 --c:file-line-error > --c:fulljobname="./Version.tex" --c:input="./Version.tex" --c:kindofrun=1 > --c:maxnofruns=9 --c:synctex="1" > --c:texmfbinpath="/Applications/LuaMetaTeX/tex/texmf-osx-64/bin" > > mtx-context | fatal error: return code: 11 > > > > There is definitely a file > > /Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine. > > Previous versions of lmtx process without any problem. > > The message doesn’t ask for the engine file, but for the mtxrun script > mentioned in line 9 of the engine. > > Is /Users/bowen1/context-osx-64/tex/texmf-osx-64/bin/mtxrun still valid in > your installation? > > 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 ___
[NTG-context] latest lmtx
When I process \starttext Hello, world! \stoptext I get the following error message: /Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine:9: no such file or directory: /Users/bowen1/context-osx-64/tex/texmf-osx-64/bin/mtxrun resolvers | formats | executing runner 'run luametatex format': /Applications/LuaMetaTeX/tex/texmf-osx-64/bin/luametatex --jobname="Version" --fmt=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui cont-yes.mkiv --c:autogenerate --c:currentrun=1 --c:file-line-error --c:fulljobname="./Version.tex" --c:input="./Version.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="1" --c:texmfbinpath="/Applications/LuaMetaTeX/tex/texmf-osx-64/bin" mtx-context | fatal error: return code: 11 There is definitely a file /Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine. Previous versions of lmtx process without any problem. Alan ___ 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] fatal error with latest lmtx
Hi— I have just installed (clean) the latest lmtx. Processing \starttext Hello world! \stoptext fails with this error message: Fatal Error > Your format does not match the base files! Format Version > 2020.08.14 18:28 LMTX Files Version > 2020.08.14 18:27 Alan ___ 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] new version
The problem with vertical spacing in \frac and \over is fixed. Many thanks, Hans! Alan On Wed, Jun 10, 2020 at 4:03 AM Hans Hagen wrote: > Hi, > > I uploaded a new version. There have been no changes to the typesetting > machinery although we're still in the process of finetuning some updated > low level macros. There was a fix in the font machinery (thanks to Kai) > but that will probably go unnoticed as the issue has been there for years. > > Now, that doesn't mean that nothing has been changed. First of all there > is a new data related mechanism. After Wolfgang had updated the > definition files it became official. It was on the agenda for a while > but finally a nice solution surfaced. > > The new thing is luatables that obey grouping. Normally what you do at > the lua end is kind of global, but there can be cases where you really > want it to behave like tex: obeying \bgroup/\egroup, { } etc. The > examples given below show that you can create them at the tex end and > access them in tex as well as lua. > > \starttext > > \dorecurse {100} { > \setdatavalue{#1}{#1} > } > > \start \tttf \darkred \raggedright \dorecurse {100} { > #1=\scratchcounter\getdatavalue{#1}\the\scratchcounter > } \par \stop \blank > > \start \tttf \darkgreen \raggedright \dorecurse {100} { > #1=\thedatavalue{#1}% > } \par \stop \blank > > \bgroup \tttf > \newluatable\testtable > \setluatable\testtable{ foo = 123, bar = "456", oof = "rab" } >% \inspectluatable\testtable > \darkblue > foo = \getfromluatable\testtable{foo}\par > bar = \getfromluatable\testtable{bar}\par > oof = \getfromluatable\testtable{oof}\blank > \bgroup > \useluatable\testtable > \setluatable\testtable{ foo = 123123, bar = "456456" } >% \inspectluatable\testtable > \darkmagenta > foo = \getfromluatable\testtable{foo}\par > bar = \getfromluatable\testtable{bar}\par > oof = \getfromluatable\testtable{oof}\blank > \startluacode > local t = context.luatables.get("testtable") > print(t.foo,t.bar,t.oof) > \stopluacode > \egroup > \darkyellow > foo = \getfromluatable\testtable{foo}\par > bar = \getfromluatable\testtable{bar}\par > oof = \getfromluatable\testtable{oof}\blank > \startluacode > local t = context.luatables.get("testtable") > print(t.foo,t.bar,t.oof) > \stopluacode >% \inspectluatable\testtable > \egroup > > \bgroup \tttf > \newluatable\moretable > \setluatable\moretable{ 1, "foo" } > \darkblue > [1] = \getfromluatable\moretable{1}\par > [2] = \idxfromluatable\moretable 2 \blank > \bgroup > \useluatable\moretable > \setluatable\moretable{ foo = 123123, bar = "456456" } > \darkmagenta > [1] = \getfromluatable\moretable{1}\par > [2] = \idxfromluatable\moretable 2 \blank > \startluacode > local t = context.luatables.get("moretable") > print(t[1],t[2]) > \stopluacode > \egroup > \darkyellow > [1] = \getfromluatable\moretable{1}\par > [2] = \idxfromluatable\moretable 2 \blank > \startluacode > local t = context.luatables.get("moretable") > print(t[1],t[2]) > \stopluacode > \egroup > > \stoptext > > This is only available in lmtx (until i see a real reason to cook up an > alternative for mkiv, which is unlikely as no context code depends on > this being available, at least not now). The datavalue macro you see > there can be used to create massive amounts of numeric variable > independent of counters, not that we really need it, but it was very > cheap to implement. > > At the engine level there also have been some changes but these should > not be visible for users. We just mention: > > - extensions to the macro definition and expansion mechanisms (for > instance optional arguments, optional delimiters, and silent error > recovery; there will be some explanation in the evenmore document and at > some point - when stable - in the manual) .. this permits some cleaner > low level code; only things were done that had no impact on performance > (as macro definition and expansion is used a lot) and didn't make the > code messy (it actually became cleaner) > > - some additional substring (ok, tex has no string, just tokens) parsing > capabilities with optional tokens, which again permits a bit cleaner low > level code > > - a slightly reorganized handling of tokens (one of tex's basic data > structures) in the lua token interface so that we get a more meaningful > and robust subsystem (basically getting rid of funny numbers) ... this > also will be discussed in an evenmore chapter .. not that users need it > (i think) > > - as a side effect (or necessity) some low level recoding (and > abstraction) had to happen but as far as we can see it works ok (i admit > it was a slow, tedious job
Re: [NTG-context] problem with counters (page)
Thanks, Taco! That works in my mwe. I added way=bytext in my env file and the output is just what I need. Best, Alan On Wed, Jun 10, 2020 at 9:44 AM Taco Hoekwater wrote: > Hi Alan, > > Sorry, I should have actually tried your MWE. You do *not* want > way=bypage here, as that resets the counter to one at the start > of the next page (it is useful for footnotes that are numbered > per-page, but not for actual page counters). > > > \definecounter[volpage][type=page] > \starttext > \setcounter[volpage][5] > \dorecurse{3}{\startTEXpage[offset=2pc] > \input ward > \blank[medium] > > \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} > \stopTEXpage} > \stoptext > > > > On 10 Jun 2020, at 15:05, Alan Bowen wrote: > > > > Hi, Taco— > > > > Thanks for the suggestion. I have tried it with \incrementcounter before > and after the TEXpage. Sadly, neither worked. > > > > This mwe is an attempt to capture the failure of the following in > processing a product with numerous components: > > > > \definecounter[volpage][type=page, way=bypage] > > \setupfootertexts[text] > > [] > > [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} > > \incrementcounter[volpage]}] > > [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} > > \incrementcounter[volpage]}] > > [] > > > > If your suggestion had worked, I would have had difficulty in applying > it. > > > > Alan > > > > On Wed, Jun 10, 2020 at 3:14 AM Taco Hoekwater > wrote: > > Hi, > > > > Incrementing the counter outside of the TEXpage should work. > > > > Best wishes, > > Taco > > > > > On 9 Jun 2020, at 23:34, Alan Bowen wrote: > > > > > > My efforts to set up a new page counter in the footertexts of a book > are not proving successful. The following code shows the nature of the > problem. > > > > > > \definecounter[volpage][type=page, way=bypage] > > > \starttext > > > \setcounter[volpage][5] > > > \dorecurse{3}{\startTEXpage[offset=2pc] > > > \input ward > > > \blank[medium] > > > > \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} > > > \stopTEXpage} > > > \stoptext > > > > > > As you will see, the counter is not incremented on pages 2 and 3. > > > > > > I expect that I have missed something important. But what? > > > > > > Alan > > > > ___ > > > 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 > > > > ___ > > > > Taco Hoekwater > > Elvenkind BV > > > > > > > > > > > ___ > > 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 > > > ___ > > Taco Hoekwater > Elvenkind BV > > > > > > ___ > If your question is of interest to others as well, please add an entry to > the
Re: [NTG-context] problem with counters (page)
Hi, Taco— Thanks for the suggestion. I have tried it with \incrementcounter before and after the TEXpage. Sadly, neither worked. This mwe is an attempt to capture the failure of the following in processing a product with numerous components: \definecounter[volpage][type=page, way=bypage] \setupfootertexts[text] [] [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} \incrementcounter[volpage]}] [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}} \incrementcounter[volpage]}] [] If your suggestion had worked, I would have had difficulty in applying it. Alan On Wed, Jun 10, 2020 at 3:14 AM Taco Hoekwater wrote: > Hi, > > Incrementing the counter outside of the TEXpage should work. > > Best wishes, > Taco > > > On 9 Jun 2020, at 23:34, Alan Bowen wrote: > > > > My efforts to set up a new page counter in the footertexts of a book are > not proving successful. The following code shows the nature of the problem. > > > > \definecounter[volpage][type=page, way=bypage] > > \starttext > > \setcounter[volpage][5] > > \dorecurse{3}{\startTEXpage[offset=2pc] > > \input ward > > \blank[medium] > > > \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} > > \stopTEXpage} > > \stoptext > > > > As you will see, the counter is not incremented on pages 2 and 3. > > > > I expect that I have missed something important. But what? > > > > Alan > > > ___ > > 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 > > > ___ > > Taco Hoekwater > Elvenkind BV > > > > > > ___ > 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] problem with counters (page)
My efforts to set up a new page counter in the footertexts of a book are not proving successful. The following code shows the nature of the problem. \definecounter[volpage][type=page, way=bypage] \starttext \setcounter[volpage][5] \dorecurse{3}{\startTEXpage[offset=2pc] \input ward \blank[medium] \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} \stopTEXpage} \stoptext As you will see, the counter is not incremented on pages 2 and 3. I expect that I have missed something important. But what? Alan ___ 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] \frac and vertical spacing issue in mathfractions
In the current beta ( LuaMetaTeX, Version 2.06.05), \m{\frac{28}{8\times29}} puts the numerator and denominator too close to the dividing line. Similarly for the variants of \frac and \over. \m{{28}\over{8\times29}} Alan ___ 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] referencing both real and user pagenumbers
I have a collection of papers printed previously that are to go into a single volume so that, while the papers retain their original pagination and internal cross-referencing, they are also paginated continuously. I have managed to do this using userpagenumbers for the individual papers and realpagenumbers for the volume as a whole. Re cross-referencing: \at and \in etc. return userpagenumbers (which I need). But I also need them (or something like them) to return realpagenumbers as well. Is there a way to do this? Alan ___ 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] output file name query
In my project, I process a single product file by enabling various modes. What I would like to do is to vary the name of the output PDF file in each instance. So, in processing a file, how does one go directly from prd_filename.tex to myfilename.pdf rather than to prd_filename.pdf—assuming that it is possible? Any tips or pointers to what I should be reading will be greatly appreciated. Alan ___ 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] Project setup query
This is a minor issue—to which I expect the answer will be simple, something I should know by now but do not. I am just trying to see if I can streamline a working directory. In Directory01, I have a number of prd_NameXX.tex files as well as a Directory02 which contains .tex files that are to be called on by each one of the prd_Name.tex files. Is there a way to identify the TEX root for each of the common files (in Directory02) so that the file will be processed when I process any one of the prd files in Directory01? I have tried % !TEX root=../prd_\mystring.tex with, e.g., \def\mystring{Name01} in the prd_Name01.tex file, but that does not seem to work—the various .tex files re not found. What puzzles me is that the environment files in Directory02 are found. (That they are identified in a prj file in Directory01 does not seem to be the reason why.) There is no problem if I move the contents of Directory02 into Directory01. Alan ___ 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] accessing prd file from component file
When my component files were in the same directory as my component files, the line %! TeX root = prd_whatever allowed processing the component file from the component file. (I use TeXShop for this.) The project structure has been changed: the component files are in a subdirectory of the directory that has the prd file. Now, %! TeX root = prd_whatever no longer works. (E.g., it cannot find the environment files called in the prd file.) Is there a way to restore processing from the component file. My experiments are near to wearing out the “error” message/page. Alan ___ 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] developer not verified error
This seems to be a problem peculiar to Catalina (macOS 10.15.1). There is a fix, as Otared and Glen have indicated. go to Apple menu -> Preferences -> Security & Privacy on the Security & Privacy, login, choose the tab General there choose, towards the bottom of that pane, under « Allow apps downloaded from: » choose the radio button App Store and identified developers click the button «allow anyway» The macOS still chokes when you first try to update lmtx , but this time it presents the option «Open». Select that and you are good to go. So, thanks, guys. And Mojca, yes, it is very confusing. Still, that seems to be all that one has to do make the download. So perhaps there is no need for changes at your end. Cheers, Alan On Sun, Nov 17, 2019 at 11:30 AM Keith McKay wrote: > This is the standard way to install "apps" on a mac, which have an unknown > developer, to Apple anyway. It is a bit annoying when it happens especially > when one has forgotten that you have to go through the Preferences dialog > to get it to run. In my case it's an age thing.[image: ] > > Best Wishes > > Keith McKay > On 16/11/2019 22:27, Glen Helman wrote: > > There seems to be a way around this built into Catalina, however awkward > it may be. > > I tried to install lmtx on a computer running Catalina that didn’t have an > installation and received a similar error. (There seems to be a quarantine > applying to the text of the script and not merely the file because I tried > creating a new document with the same text and received the same response, > and that response referred to the download of the original file.) > > I did find that the “general” tab under “security & privacy” in the system > preferences had, in addition to the usual two choices, a reference to the > downloaded script with a button reading “allow anyway” (or something to > that effect). When I tried to run the script again after clicking that > button, the “developer cannot be verified” dialogue included “open” as a > choice; and, when I clicked that, the script ran successfully and the > installation was usable. > > I then tried the install script on another computer running Cataline where > I had installed lmtx last spring. I ran into the “developer cannot be > verified” response again, but the same workaround allowed the script to > run, and the installation was updated. > > Glen Helman > > On Nov 15, 2019, at 4:36 PM, Alan Bowen wrote: > > Though I was able to download the latest ConTeXt beta without any > problems, my attempt to update my ConText-LMTX installation was blocked. > The error message was > > *“mtxrun” cannot be opened because the developer cannot be verified* > macOS cannot verify that this app is free from malware. > Safari downloaded this file on April 29, 2019. > > I am not sure why this is happening and wonder if it would OK to copy > mxtrun from my ConTeXt installation and replace the version in my > ConTeXt-LMTX installation with it. > > Alan > > ___ > 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 > ___ > > > ___ > 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] developer not verified error
Though I was able to download the latest ConTeXt beta without any problems, my attempt to update my ConText-LMTX installation was blocked. The error message was *“mtxrun” cannot be opened because the developer cannot be verified* macOS cannot verify that this app is free from malware. Safari downloaded this file on April 29, 2019. I am not sure why this is happening and wonder if it would OK to copy mxtrun from my ConTeXt installation and replace the version in my ConTeXt-LMTX installation with it. Alan ___ 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] beta
Hi, Hans— The latest lmtx now processes my docs as it should when texmf-cache was deleted before installation. So, where is this zip that has the revised install.sh script? Alan On Wed, Oct 2, 2019 at 7:06 AM Hans Hagen wrote: > On 9/30/2019 2:11 PM, Thomas A. Schmitz wrote: > > On 29.09.19 16:31, Hans Hagen wrote: > >> Hi, > >> > >> A week ago we had the (nice and pleasant) annual context meeting and > >> as usual some new stuff has been presented there which was not yet in > >> the distribution at that moment. Some pending code is now being moved > >> into the distribution. Part is font related (lmtx only, not relevant > >> for most users), most is metafun (luametafun or metafun xl or whatever > >> name suits) related (including a new preliminary manual) which uses > >> some new interfaces and therefore (currently) is lmtx only. > > > > Hi Hans, > > > > I just updated. I had to delete the cache for context to work again, got > > weird errors compiling a file that works normally. So my question: since > > creating a new cache and format takes only a few seconds, wouldn't it > > make sense to include it in install.sh ? > I've added that feature but one needs the new install.sh script then > (from the zip). > > (We also added openbsd installers.) > > 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 ___
Re: [NTG-context] odd processing error with latest standalone
Hi, OK— I removed texmf-cache/luatex-cache and reinstalled LMTX. The problem persists, sad to say. It also fails when I run LuaTeX, Version 1.10.1 (TeX Live 2019), ConTeXt ver: 2019.09.10., even after removing texmf-cache and reinstalling. Thanks for the tip, though. All best, Alan On Thu, Sep 19, 2019 at 12:54 AM Otared Kavian wrote: > Hi Alan, > > I had an analogous issue and after cleaning the luatex-cache and > re-installing it was solved (working under MacOS 10.14). > > Maybe you can try that too? > > Best regards: OK > > On 18 Sep 2019, at 21:41, Alan Bowen wrote: > > In processing a book that I have edited, there is no problem using > LuaMetaTeX, Version 2.00.0, 2019.07.31 > > But with LuaMetaTeX, Version 2.00.0, ConTeXt ver: 2019.09.10, > the process stops in a specific chapter and quits with a fatal error: > > tex error > tex error on line 26 in file c_12-01_Greenbaum.tex: ! > Undefined control sequence > > \referencerealpage ->\clf_referencerealpage > > > \scrn_button_make_yes ...unter \referencerealpage > \relax \ifcase > \scratchcou... > \scrn_button_make ...ke_yes \scrn_button_make_nop > #1#2#3#4 {#5}\endgroup > \scrn_button_direct_indeed ...onparameter {#2}{#3} > \egroup \endgroup > l.26 ] > > > l.37 ] > > > ... > l.249 ...BHA_12-01_Plate01.pdf][width=.5\textwidth]{ > } > 16 > 17 \def\ChapterSubTitle{The Hellenistic Horoscope} > 18 \def\SubChapterNo{12.1} > 19 \relax > 20 \startBrillChapter[reference=Ch12, > 21 title={\vglue6pc{\ChapterNo}~\\ > 22 \ChapterTitle}, > 23 bookmark={12 Astral Divination and Natal Astrology}] > 24 > 25 \startBrillSubChapter[reference=DGG12-01, > 26 >> title={{\SubChapterNo}~\\ > 27 \ChapterSubTitle}, > 28 bookmark={12.1 The Hellenistic Horoscope}] > 29 \byline > 30 \startLevelBnHead[reference=12.1.1, > 31 title=Introduction] > > What puzzles me is that the relevant coding for this chapter is the same > as for several other chapters that process with no problems. It would be > good to know if this is a problem in the chapter itself that I can fix or > if there is a problem in the latest standalone. > > The error-log reads: > > return { > ["filename"]="c_12-01_Greenbaum.tex", > ["lastcontext"]="\n\\referencerealpage ->\\clf_referencerealpage \n > \n\\scrn_button_make_yes ->\\scratchcounter > \\referencerealpage \n\\relax > \\ifcase \\scratchcounter \\expa...\n\\scrn_button_make > ...\\scrn_button_make_yes \\scrn_button_make_nop \n > #1#2#3#4 {#5}\\endgroup > \n\\scrn_button_direct_indeed ...buttonparameter \\setbuttonparameter > {#2}{#3}\n \\egroup > \\endgroup \nl.26 ]\n \nl.37 ]\n \n...\nl.249 > ...HA_12-01_Plate01.pdf][width=.5\\textwidth]{\n >} ", > ["lastluaerror"]="?", > ["lasttexerror"]="! Undefined control sequence", > ["lasttexhelp"]="The control sequence at the end of the top line of your > error message was never\n\\def'ed. You can just continue as I'll forget > about whatever was undefined.", > ["linenumber"]=26, > ["offset"]=10, > } > > Alan > > ___ > 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 > > ___ > ___ 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] odd processing error with latest standalone
In processing a book that I have edited, there is no problem using LuaMetaTeX, Version 2.00.0, 2019.07.31 But with LuaMetaTeX, Version 2.00.0, ConTeXt ver: 2019.09.10, the process stops in a specific chapter and quits with a fatal error: tex error > tex error on line 26 in file c_12-01_Greenbaum.tex: ! Undefined control sequence \referencerealpage ->\clf_referencerealpage \scrn_button_make_yes ...unter \referencerealpage \relax \ifcase \scratchcou... \scrn_button_make ...ke_yes \scrn_button_make_nop #1#2#3#4 {#5}\endgroup \scrn_button_direct_indeed ...onparameter {#2}{#3} \egroup \endgroup l.26 ] l.37 ] ... l.249 ...BHA_12-01_Plate01.pdf][width=.5\textwidth]{ } 16 17 \def\ChapterSubTitle{The Hellenistic Horoscope} 18 \def\SubChapterNo{12.1} 19 \relax 20 \startBrillChapter[reference=Ch12, 21 title={\vglue6pc{\ChapterNo}~\\ 22 \ChapterTitle}, 23 bookmark={12 Astral Divination and Natal Astrology}] 24 25 \startBrillSubChapter[reference=DGG12-01, 26 >> title={{\SubChapterNo}~\\ 27 \ChapterSubTitle}, 28 bookmark={12.1 The Hellenistic Horoscope}] 29 \byline 30 \startLevelBnHead[reference=12.1.1, 31 title=Introduction] What puzzles me is that the relevant coding for this chapter is the same as for several other chapters that process with no problems. It would be good to know if this is a problem in the chapter itself that I can fix or if there is a problem in the latest standalone. The error-log reads: return { ["filename"]="c_12-01_Greenbaum.tex", ["lastcontext"]="\n\\referencerealpage ->\\clf_referencerealpage \n \n\\scrn_button_make_yes ->\\scratchcounter \\referencerealpage \n\\relax \\ifcase \\scratchcounter \\expa...\n\\scrn_button_make ...\\scrn_button_make_yes \\scrn_button_make_nop \n #1#2#3#4 {#5}\\endgroup \n\\scrn_button_direct_indeed ...buttonparameter \\setbuttonparameter {#2}{#3}\n \\egroup \\endgroup \nl.26 ]\n \nl.37 ]\n \n...\nl.249 ...HA_12-01_Plate01.pdf][width=.5\\textwidth]{\n } ", ["lastluaerror"]="?", ["lasttexerror"]="! Undefined control sequence", ["lasttexhelp"]="The control sequence at the end of the top line of your error message was never\n\\def'ed. You can just continue as I'll forget about whatever was undefined.", ["linenumber"]=26, ["offset"]=10, } Alan ___ 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] inline fractions
The following mwe \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}] \starttext a fraction \m{\frac{1}{n}}, \textfraction{1/n}, \vulgarfraction{1}{n} in the text \stoptext works for all but \textfraction in the latest beta (luatex, luametatex). Has something changed or have I missed something? Alan ___ 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] fatal error with latest beta
The following: \setupdirections[bidi=global] \definefallbackfamily[mainface][serif][SBL Hebrew][range={0591-05F4,FB1D-FB4F}] \definefontfamily[mainface][serif][TeX Gyre Termes] \setupbodyfont[mainface, 10pt] \starttext \setupalign[rtl]{ ﬡﬡﬢ } \setupalign[ltr] \stoptext sets as it should with ConTeXt ver: 2018.09.13, LuaTeX, Version 1.09.0 (and several betas later). But with ConTeXt ver: 2019.05.12, LuaTeX, Version 1.10.1 it complains with: lua error > lua error on line 8 in file ...test-03.tex: ...eXt/tex/texmf-context/tex/context/base/mkiv/font-oup.lua:1317: bad argument #1 to 'concat' (table expected, got number) 1 \setupdirections[bidi=global] 2 3 \definefallbackfamily[mainface][serif][SBL Hebrew][range={0591-05F4,FB1D-FB4F}] 4 5 \definefontfamily[mainface][serif][TeX Gyre Termes] 6 7 \setupbodyfont[mainface, 10pt] 8 >> 9 \starttext 10 \setupalign[rtl]{ 11 ﬡﬡﬢ 12 } 13 \setupalign[ltr] 14 15 \stoptext 16 mtx-context | fatal error: return code: 256 Has something changed in how such l2r fonts should be invoked? Alan ___ 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] Lua error in latest beta?
When I process files using the latest standalone ConTeXt ver: 2019.04.29 08:52 MKIV beta fmt: LuaTeX, Version 1.10.0 (TeX Live 2019)), I now get the following error message: lua error > lua error on line 8 in file env_Brill-01.tex: ...eXt/tex/texmf-context/tex/context/base/mkiv/font-oup.lua:1317: bad argument #1 to 'concat' (table expected, got number) The error log is as follows: return { ["filename"]="env_Brill-01.tex", ["lastcontext"]="\ \\font_helpers_low_level_define ...nsize }{\\m_font_designsize }\\scaledfontmode \ \\relax \\ifcase \\scaledfont...\ \\font_fallbacks_clone_unique ...w_level_define {#1}\\v_font_identifier_basic \ \\csname \\v_font_identifier...\ l.8 }\ \ \\font_fallbacks_prepare #1->\\clf_fontcollectionprepare {#1}\ \ \\font_fallbacks_prepare_indeed ... \\lastrawfontcall \\font_fallbacks_prepare #1\ \\endgroup \ ...nt_fallbacks_prepare_indeed \\m_font_fallbacks \ \\fi \\fi \ ...\ l.215 \\setupbodyfont[mainface, 10pt]\ ", ["lastluaerror"]="...eXt/tex/texmf-context/tex/context/base/mkiv/font-oup.lua:1317: bad argument #1 to 'concat' (table expected, got number)", ["lasttexerror"]="?", ["linenumber"]=8, ["luaerrorline"]="1317", ["offset"]=10, } This files process as they should with earlier versions. I will try to produce an mwe if needed but hope that it is not. Alan ___ 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] TeXShop Preview and fatal error bug
Using latest TeXShop, latest ConTeXt beta, and latest Moajve, run the file \starttext \quotation{tufte} \page \quotation[tufte} \stoptext The PDF preview is grey. Fix the error: \quotation[tufte} —> \quotation{tufte} Re-run the file. The PDF preview remains gray. Print the PDF file or view it in full screen mode, the output is correct. \page is essential for some reason. Alan ___ 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] \setupdirections, methods one, two, and three
The latest beta complains and stops when I try to process a book that has \setupdirections[bidi=global, method=one] for several, scattered phrases in Arabic and Hebrew (which I do not read). It works, however, when I set method=two or method=three. What is the difference between these methods and, am I right that the output will be the same if I switch to method two or three? Alan ___ 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] problem with \sym?
Processing a table of contents with the latest standalone (ConTeXt ver: 2019.01.28 16:58 MKIV beta fmt: 2019.2.3) fails with the following message: luatex warning > hpack filter: error: ...eXt/tex/texmf-context/tex/context/base/mkiv/typo-dua.lua:422: attempt to compare number with nil tex error > tex error on line 18 in file c_Contents.tex: ? \strc_itemgroups_make_symbol_box ...mbol \fi \fi } \let \strc_itemgroups_extr... \strc_itemgroups_insert_item ...s_make_symbol_box \strc_itemgroups_make_dest... \strc_itemgroups_start_item ...groups_insert_item \dostoptagged \ifcondition... \dotagsetitem \sym ..._symbol \startitemgroupitem \dotagsetitem \s!symbol l.18 \sym{0.} Prolegomena to the Study of Hellenistic Astronomy This worked with the previous standalone. Alan ___ 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] linking to an external PDF file
A how-to question that has come up: Is there a way to establish to hyperlink to a specific page or footnote in an external PDF document? Alan ___ 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] latest beta (2018.110.14)
When I run the latest standalone beta, the following \starttext Hello, world! \stoptext fails with the error message: lua error > lua error on line 5 in file /Users/bowen1/Desktop/TestTeX/test-01.tex: ...eXt/tex/texmf-context/tex/context/base/mkiv/cldf-ini.lua:1120: no string to print stack traceback: [C]: in function 'tex.sprint' ...eXt/tex/texmf-context/tex/context/base/mkiv/cldf-ini.lua:1120: in upvalue 'sprint' ...eXt/tex/texmf-context/tex/context/base/mkiv/cldf-bas.lua:180: in upvalue 'ctx_latelua' ...eXt/tex/texmf-context/tex/context/base/mkiv/anch-pos.lua:643: in function <...eXt/tex/texmf-context/tex/context/base/mkiv/anch-pos.lua:601> (...tail calls…) 1 2 3 \starttext 4 5 >> Hello, world! 6 7 \stoptext 8 Alan ___ 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] \startregister…\stopregister bug?
In the latest beta (2018.08.10), \defineregister[TesT] \starttext \startregister[TesT]{samples} \input knuth \page \input ward \stopregister[TesT] \blank[3*big] \placeregister[TesT] \stoptext produces on page 2 the index entry *samples 1* when one expects *samples 1–2* Alan ___ 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] latest beta and \seeindex
I should add too that in this particular volume our contributors sometimes mention different terms for the same thing as in “This is called p or q”. Indexing both terms (p and q) separately and the adding x-ref is one way to go but indexing the more commonly used term and adding a mere x-ref for the other is more efficient. Alan On Sun, Jun 24, 2018 at 4:08 PM Henning Hraban Ramm wrote: > Am 2018-06-24 um 21:57 schrieb Hans Hagen : > > > On 6/23/2018 5:10 PM, Alan Bowen wrote: > >> The latest beta (ConTeXtver: 2018.06.23 12:12 MKIV betafmt: 2018.6.23) > processes without a hitch but \seeindex is still not working as expected. > >> In > >> \starttext > >> \index{sample} > >> \index{fun+games}\index{fun+stuff} > >> %\index{fun} > >> \seeindex{fun}{sample}% now with heading (as it should be) > >> \seeindex{fun}{blah}% not shown > >> \seeindex{fun}{humbug}% not shown > >> \seeindex{fun}{bug}% not shown > >> \seeindex{fun+games}{entertainment}% not shown > >> \placeindex[n=1] > >> \stoptext > >> When I generate the indices for my book, \seeindex{A}{B} works only if > it is a unique x-ref and A is a heading. Multiple x-refs to the same > heading fail as do x-refs to subheadings. > > sure, > > > > \seeindex{fun}{blah}% not shown > > \seeindex{fun}{humbug} % not shown > > \seeindex{fun}{bug} % not shown > > > > as there is no index entry blah, humbug or bug ... so you would be > fooling your reader > > I understand the rationale, and it could be a nice feature, but we need to > refer to entries in a different register, e.g. from an index of topics to > an index of persons, e.g. \seeindex{Pragma}{Hagen, Hans} or to subentries > like \seeindex{fun+games}{bah+humbug}. Since the latter doesn’t work (or > does it now?), we use \seeindex{fun+games}{bah/humbug}. > > > Greetlings, Hraban > --- > https://www.fiee.net > http://wiki.contextgarden.net > https://www.dreiviertelhaus.de > GPG Key ID 1C9B22FD > > > ___ > 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] latest beta and \seeindex
The latest beta (ConTeXt ver: 2018.06.23 12:12 MKIV beta fmt: 2018.6.23) processes without a hitch but \seeindex is still not working as expected. In \starttext \index{sample} \index{fun+games}\index{fun+stuff} %\index{fun} \seeindex{fun}{sample} % now with heading (as it should be) \seeindex{fun}{blah} % not shown \seeindex{fun}{humbug} % not shown \seeindex{fun}{bug} % not shown \seeindex{fun+games}{entertainment} % not shown \placeindex[n=1] \stoptext When I generate the indices for my book, \seeindex{A}{B} works only if it is a unique x-ref and A is a heading. Multiple x-refs to the same heading fail as do x-refs to subheadings. Alan ___ 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] error in seeindex sorting
The MWE \index{sample} \index{fun+games}\index{fun+stuff} \index{fun} \seeindex{fun}{sample} % with first subheading, not heading \seeindex{fun}{blah} % shown with heading (as it should be) ONLY if \index{fun} is commented out; otherwise it is not shown \seeindex{fun}{humbug} % not shown \seeindex{fun}{bug} % not shown \seeindex{fun+games}{entertainment} % not shown \placeindex[n=1] shows several problems in \seeindex. What is needed is fun 1 *see blah, bug, humbug, and sample* games 1 *see entertainment* stuff1 As Hraban has indicated, there is some urgency here. For my part, I need x-refs for a book that I am trying to get off my plate and onto the publisher’s; so any thoughts on this or suggestions will be greatly appreciated. Alan On Wed, Jun 13, 2018 at 10:46 AM Henning Hraban Ramm wrote: > In latest beta, the error got bigger: > > \starttext > \index{sample} > \index{Fun+games}\index{Fun+stuff} > \seeindex{Fun}{sample} > \seeindex{Fun}{bug} % missing! > \seeindex{Fun}{blah} > \placeindex[n=1] > \stoptext > > now gives > > f > Fun see blah > games , see sample > stuff > s > sample > > i.e. > * multiple seeindex references from the same point are incomplete > * wrong "root" as before > > Greetlings, Hraban > --- > https://www.fiee.net > http://wiki.contextgarden.net > https://www.dreiviertelhaus.de > GPG Key ID 1C9B22FD > > Am 2018-06-11 um 21:05 schrieb Henning Hraban Ramm : > > > Me again on registers. > > > > If you have an entry with just subentries and a reference (seeindex) > from the main entry to an *existing* other entry, the reference is sorted > at one of the subentries. > > I.e. in the MWE we get > > > > Fun > > games 1, see sample > > stuff 1 > > > > instead of > > > > Fun see sample > > games 1 > > stuff 1 > > > > > > \starttext > > \index{sample} > > \index{Fun+games}\index{Fun+stuff} > > \seeindex{Fun}{sample} > > \placeindex[n=1] > > \stoptext > > > > > > This prevents the completion of a scientific tome, so would be really > nice if this could be fixed. > > > > > > Greetlings, Hraban > > --- > > https://www.fiee.net > > http://wiki.contextgarden.net > > https://www.dreiviertelhaus.de > > GPG Key ID 1C9B22FD > > > ___ > 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] index x-ref problem
This is fixed in the latest beta. Thanks, Hans! Alan On Sat, May 19, 2018 at 8:05 AM Alan Bowen <bowenala...@gmail.com> wrote: > IF I am doing this correctly, then, there seems to be problems in the > current standalone when there are two x-refs to a single heading. The > space after “and” is missing and should the order of the refs not be > alphabetical? > > MWE > > \starttext > \seeindex{animal}{cat} > \seeindex{animal}{quadruped} > > %\seeindex{animal}{whiskers} > > The \index{cat}cat has \index{whiskers} whiskers. > \blank[3*big] > \placeindex > \stoptext > > Uncomment the \seeindex{animal}{whiskers} and it gets even messier. > > Alan > ___ 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] index x-ref problem
IF I am doing this correctly, then, there seems to be problems in the current standalone when there are two x-refs to a single heading. The space after “and” is missing and should the order of the refs not be alphabetical? MWE \starttext \seeindex{animal}{cat} \seeindex{animal}{quadruped} %\seeindex{animal}{whiskers} The \index{cat}cat has \index{whiskers} whiskers. \blank[3*big] \placeindex \stoptext Uncomment the \seeindex{animal}{whiskers} and it gets even messier. Alan ___ 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] \eqalign not working in latest beta
Excellent, Aditya.This is most helpful. Many thanks. Alan On Thu, Mar 1, 2018 at 10:49 PM, Aditya Mahajan <adit...@umich.edu> wrote: > On Thu, 1 Mar 2018, Alan Bowen wrote: > > OK—thanks for the mkiv alternative to \eqalign. >> > > This has been available for a while: > > http://dl.contextgarden.net/myway/context-latex-math.pdf > > Aditya > > ___ > 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] \eqalign not working in latest beta
Wolfgang—thanks for the link/explanation. Alan On Thu, Mar 1, 2018 at 4:57 PM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > https://mailman.ntg.nl/pipermail/ntg-context/2018/090856.html > > Wolfgang > > Alan Bowen <bowenala...@gmail.com> > 1. März 2018 um 17:41 > \eqalign does not seem to be working in the latest beta. > > MWE taken from the garden: > > \starttext > > \startformula > \eqalign{ > t_{L,\text{early}} & = t_{L,\text{late}} = t_{L,\text{ray}} \cr > & = 6\ \mu m \cr > } > \stopformula > > \stoptext > > Alan > > ___ > 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 > > ___ > ___ 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] \eqalign not working in latest beta
OK—thanks for the mkiv alternative to \eqalign. Alan On Thu, Mar 1, 2018 at 2:36 PM, Otared Kavian <ota...@gmail.com> wrote: > Hi Alan, > > I think in mkiv one is supposed to use rather the \startalign...\stopalign > structure, as in the following: > > \starttext > > \startformula > \startalign > \NC t_{L,\text{early}} \NC = t_{L,\text{late}} = t_{L,\text{ray}} \NR > \NC\NC = 6\ \mu m \NR > \stopalign > \stopformula > > \stoptext > > Best regards: OK > > On 1 Mar 2018, at 17:41, Alan Bowen <bowenala...@gmail.com> wrote: > > \eqalign does not seem to be working in the latest beta. > > MWE taken from the garden: > > \starttext > > \startformula > \eqalign{ > t_{L,\text{early}} & = t_{L,\text{late}} = t_{L,\text{ray}} \cr > & = 6\ \mu m \cr > } > \stopformula > > \stoptext > > Alan > > ___ > 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 > > ___ > ___ 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] \eqalign not working in latest beta
\eqalign does not seem to be working in the latest beta. MWE taken from the garden: \starttext \startformula \eqalign{ t_{L,\text{early}} & = t_{L,\text{late}} = t_{L,\text{ray}} \cr & = 6\ \mu m \cr } \stopformula \stoptext Alan ___ 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] synctex and TeXShop problem
Otared, Luigi—many thanks for your help. I read the changes file—I neglected to do this when I downloaded TeXShop 3.89— and have added the line % !TEX useOldSyncParser into my source file. Synctex is now working as it should (with the latest ConTeXt and TeXShop). All best, Alan On Fri, Nov 17, 2017 at 8:31 AM, luigi scarsowrote: > On Fri, Nov 17, 2017 at 2:27 PM, Otared Kavian wrote: > > Hi Alan, > > > > A few weeks ago Steffen Wolfrum and myself reported the issue to Richard > > Koch who did some research and discovered the origin of the problem. He > has > > written again the part of the code related to synctex and ConTeXt and > will > > issue a new version where the problem is fixed. > > > > In the meanwhile you can use a previous version of TeXShop (I use > version 77 > > and I can send you a Dropbox link to download it, of you wish) where the > > syncing between the PDF result and the ConTeXt source works fine. > > > > Best regards: OK > > > > > http://pages.uoregon.edu/koch/texshop/changes_3.html > > > -- > luigi > > ___ > 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] synctex and TeXShop problem
With the latest betas, I see that with the TeXShop Engine #!/bin/tcsh # Before using this engine, you must run the following command once in Terminal: luatools --generate set path= ($path /usr/texbin /Users/bowen1/Dropbox/ConTeXt/tex/texmf-osx-64/bin) mtxrun --script context --autogenerate --file-line-error "$1” and \setupsynctex[state=start, method=max] in the source file, the requisite *filename*.synctex auxiliary file is produced on processing. But I am still not getting any linkage between the source file and the preview file, that is, clicking on one does not have any effect on the other. Is there something else that I need? I am running ConTeXt ver: 2017.11.15 with macOS 10.13.1. Alan ___ 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] autopunctuation—semicolon key oddity
Using the “semicolon” key with a space before it does not work. Remove the space and it does. \starttext \setupmathematics[autopunctuation={all, semicolon}] \m{a;b}\quad \m{a,b}\quad\m{a.b}\quad\m{1;11}\quad \m{1,11}\quad\m{1.11} \setupmathematics[autopunctuation={all,semicolon}] \m{a;b}\quad \m{a,b}\quad\m{a.b}\quad\m{1;11}\quad \m{1,11}\quad\m{1.11} \stoptext Alan ___ 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] substituting characters in math font
OK—that makes sense, since Brill is the family name. But then changing “BrillItalic” to “Brill” will not get the italic math characters (Roman or Greek). So, is there a way to get these italics using \definefallbackfamily or must one use \definefontfallback (as Hraban and I eventually did)? I was using Pagella and Cambria to convince myself that the problem was one in my encoding and not some problem with the Brill font. Best, Alan On Sat, Oct 28, 2017 at 4:46 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > > Alan Bowen <bowenala...@gmail.com> > 19. Oktober 2017 um 15:05 > Many thanks for this, Wolfgang. That is very helpful. Right now, then, I > have: > > \definefontfamily[mainface][rm][Brill] > [protrusion=quality, > expansion=quality, > mode=node, > force=yes, > ] > \definefallbackfamily [mainface] [rm] [Brill] > [tf=style:italic, range={0x03B8}, offset={0x03D1}]%Greek theta > > \definefallbackfamily[mainface][mm][Brill] > [range={0x30-0x39}] %oldstyle numerals, normal > > \definefallbackfamily [mainface] [mm] [Brill] [preset=math:lowercasenormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] > [preset=math:lowercaseitalic] > > > The font name for the third argument is *always* Brill and not BrillItalic > or BrillBold. > > \definefallbackfamily [mainface] [mm] [Brill] [preset=math:uppercasenormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] > [preset=math:uppercaseitalic] > > \definefallbackfamily [mainface] [mm] [Brill] [preset=math: > lowercasegreeknormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math: > lowercasegreekitalic] > \definefallbackfamily [mainface] [mm] [Brill][preset=math: > uppercasegreeknormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math: > uppercasegreekitalic] > > \definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94] > > \setupmathematics[ucgreek=normal, lcgreek=italic] > > \setupbodyfont[mainface,10pt] > > > \starttext > > normal: 1234567890\quad math: \m{1234567890} > > normal: ABCDEFabcdef\quad italic: \emph{ABCDEFabcdef}\quad math: \m{\red > ABCDEFabcdef} > > normal: ΑΒΓΔΕΘαβγδεθ\quad slanted: \emph{ΑΒΓΔΕΘαβγδεθ}\quad math: \m{\red > ΑΒΓΔΕΘαβγδεθ} > > Greek theta: \emph{θ} > > \stoptext > > As you can see, all I need is to get the Brill lowercase Greek in mathmode > and the proper slanted Greek theta. > > > \starttext > \m{\theta \vartheta} > \stoptext > > I have tried this with Pagella and Cambria instead of the Brill font and > the problem persists. So I must be doing something wrong. But what? > > Pagella and Cambria have a proper math font, why would you use fallbacks > for them. > > 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 > > ___ > ___ 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] avoiding two lines on last page
Thanks, Hraban. I finally got a chance to try it—and it works very nicely. Note: I placed the command in text of the last page of the component and got the desired result without specifying a page number. I wonder if this more abuse than use. Alan On Wed, Oct 18, 2017 at 4:42 PM, Henning Hraban Ramm <te...@fiee.net> wrote: > Am 2017-10-18 um 15:03 schrieb Alan Bowen <bowenala...@gmail.com>: > > > Occasionally, one of my components (chapters) ends with only two lines > on the last page. Since space is at a premium, I was wondering if there is > a way to encourage ConTeXt to put these two lines on the preceding page. > > > > I do not have a mwe, so any tips about strategies and commands to > consider will be much appreciated. > > Did you try \adaptlayout? > http://wiki.contextgarden.net/Command/adaptlayout > > Greetlings, Hraban > --- > http://www.fiee.net > http://wiki.contextgarden.net > GPG Key ID 1C9B22FD > > > ___ > 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] substituting characters in math font
Many thanks for this, Wolfgang. That is very helpful. Right now, then, I have: \definefontfamily[mainface][rm][Brill] [protrusion=quality, expansion=quality, mode=node, force=yes, ] \definefallbackfamily [mainface] [rm] [Brill] [tf=style:italic, range={0x03B8}, offset={0x03D1}]%Greek theta \definefallbackfamily[mainface][mm][Brill] [range={0x30-0x39}] %oldstyle numerals, normal \definefallbackfamily [mainface] [mm] [Brill] [preset=math:lowercasenormal] \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:lowercaseitalic] \definefallbackfamily [mainface] [mm] [Brill] [preset=math:uppercasenormal] \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:uppercaseitalic] \definefallbackfamily [mainface] [mm] [Brill] [preset=math:lowercasegreeknormal] \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:lowercasegreekitalic] \definefallbackfamily [mainface] [mm] [Brill][preset=math:uppercasegreeknormal] \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:uppercasegreekitalic] \definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94] \setupmathematics[ucgreek=normal, lcgreek=italic] \setupbodyfont[mainface,10pt] \starttext normal: 1234567890\quad math: \m{1234567890} normal: ABCDEFabcdef\quad italic: \emph{ABCDEFabcdef}\quad math: \m{\red ABCDEFabcdef} normal: ΑΒΓΔΕΘαβγδεθ\quad slanted: \emph{ΑΒΓΔΕΘαβγδεθ}\quad math: \m{\red ΑΒΓΔΕΘαβγδεθ} Greek theta: \emph{θ} \stoptext As you can see, all I need is to get the Brill lowercase Greek in mathmode and the proper slanted Greek theta. I have tried this with Pagella and Cambria instead of the Brill font and the problem persists. So I must be doing something wrong. But what? Alan On Wed, Oct 18, 2017 at 2:27 PM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > > > Alan Bowen <bowenala...@gmail.com> > 2. Oktober 2017 um 14:04 > I need to substitute the regular and italic characters of a publisher’s > non-math font (Unicode) for those in a math font. > > The non-math addresses are: > 0041-005A, 0061-007A %italic uppercase and lowercase > 0391-03A9, 03B1-03C9 %slanted Greek uppercase and lowercase > > The math addresses are: > 1D434-1D44D, 1D44E-1D467 %italic uppercase and lowercase > 1D6E2-1D6FA, 1D6FC-1D714 %slanted Greek uppercase and lowercase > > Is there a way to use the \definefallbackfamily mechanism that does not > assume that the characters have the same Unicode addresses? Or is some > other approach required? > > The fallback mechanism provides a offset key which lets you replace a math > character with a normal text character. > > \definefontfamily [mainface] [ss] [TeX Gyre Heros] > > \definefallbackfamily [mainface] [mm] [TeX Gyre Heros] > [preset=math:lowercasenormal] > \definefallbackfamily [mainface] [mm] [TeX Gyre Heros] > [preset=math:lowercaseitalic] > \definefallbackfamily [mainface] [mm] [TeX Gyre Heros] > [tf=style:italic,range=0x68,offset=0x210E]% lowercase italic h > \definefallbackfamily [mainface] [mm] [TeX Gyre Heros] > [preset=math:lowercasebold] > \definefallbackfamily [mainface] [mm] [TeX Gyre Heros] > [preset=math:uppercasenormal] > \definefallbackfamily [mainface] [mm] [TeX Gyre Heros] > [preset=math:uppercaseitalic] > \definefallbackfamily [mainface] [mm] [TeX Gyre Heros] > [preset=math:uppercasebold] > > \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math] > > \starttext > > \setupbodyfont[pagella] > > Lowercase: $ {\tf abc} {\it abc} {\bf abc} $ > > Uppercase: $ {\tf ABC} {\it ABC} {\bf ABC} $ > > \setupbodyfont[mainface] > > Lowercase: $ {\tf abc} {\it abch} {\bf abc} $ > > Uppercase: $ {\tf ABC} {\it ABC} {\bf ABC} $ > > \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 > > ___ > ___ 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] substituting characters in math font
I am resending this in the hope that some font will find him/herself with time to consider an odd query. I need to substitute the regular and italic characters of a publisher’s non-math font (Unicode) for those in a math font. The non-math addresses are: 0041-005A, 0061-007A %italic uppercase and lowercase 0391-03A9, 03B1-03C9 %slanted Greek uppercase and lowercase The math addresses are: 1D434-1D44D, 1D44E-1D467 %italic uppercase and lowercase 1D6E2-1D6FA, 1D6FC-1D714 %slanted Greek uppercase and lowercase Is there a way to use the \definefallbackfamily mechanism that does not assume that the characters have the same Unicode addresses? Or is some other approach required? Alan On Mon, Oct 2, 2017 at 8:04 AM, Alan Bowen <bowenala...@gmail.com> wrote: > I need to substitute the regular and italic characters of a publisher’s > non-math font (Unicode) for those in a math font. > > The non-math addresses are: > 0041-005A, 0061-007A %italic uppercase and lowercase > 0391-03A9, 03B1-03C9 %slanted Greek uppercase and lowercase > > The math addresses are: > 1D434-1D44D, 1D44E-1D467 %italic uppercase and lowercase > 1D6E2-1D6FA, 1D6FC-1D714 %slanted Greek uppercase and lowercase > > Is there a way to use the \definefallbackfamily mechanism that does not > assume that the characters have the same Unicode addresses? Or is some > other approach required? > > Alan > > ___ 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] avoiding two lines on last page
Occasionally, one of my components (chapters) ends with only two lines on the last page. Since space is at a premium, I was wondering if there is a way to encourage ConTeXt to put these two lines on the preceding page. I do not have a mwe, so any tips about strategies and commands to consider will be much appreciated. Alan ___ 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] substituting characters in math font
I need to substitute the regular and italic characters of a publisher’s non-math font (Unicode) for those in a math font. The non-math addresses are: 0041-005A, 0061-007A %italic uppercase and lowercase 0391-03A9, 03B1-03C9 %slanted Greek uppercase and lowercase The math addresses are: 1D434-1D44D, 1D44E-1D467 %italic uppercase and lowercase 1D6E2-1D6FA, 1D6FC-1D714 %slanted Greek uppercase and lowercase Is there a way to use the \definefallbackfamily mechanism that does not assume that the characters have the same Unicode addresses? Or is some other approach required? Alan ___ 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] Brill fonts / using Greek characters in math
The question can be simplified to: How can we substitute slanted Greek upper- and lowercase glyphs (0041-005A, 0061-007A) for Pagella Math italic upper- and lowercase glyphs (1D6E2-1D6FA, 1D6FC-1D714)? Right now I have a mix of Brill Greek and Pagella Math Greek that does not look very good at all and my deadline is approaching. Alan On Wed, Sep 20, 2017 at 5:07 PM, Alan Bowen <bowenala...@gmail.com> wrote: > Sorry. The glyphs to replace in the math font are: > > roman: > 0030-0039 > 0041-005A, 0061-007A > 0391-03D6 > italic: > 1D434-1D467 > 1D6E2-1D71B > > Alan > > On Wed, Sep 20, 2017 at 5:03 PM, Alan Bowen <bowenala...@gmail.com> wrote: > >> If it help: the glyphs to replace in the math font are: >> nmerals0030-0039, (numerals) >> 0041-005A, 0061-007A >> 0391-03D6 >> >> >> On Wed, Sep 20, 2017 at 4:05 PM, Henning Hraban Ramm <te...@fiee.net> >> wrote: >> >>> Ahoi, >>> >>> did anyone make typescripts for the Brill fonts ( >>> http://www.brill.com/about/brill-fonts)? >>> Esp. I’d like to use their Greek characters for math. Don’t understand >>> lfg files yet.. >>> So I guess the task is: How to map Unicode Greek to math Greek? >>> >>> Greetlings, Hraban >>> --- >>> http://www.fiee.net >>> http://wiki.contextgarden.net >>> GPG Key ID 1C9B22FD >>> >>> >>> ___ >>> 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/list >>> info/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] Brill fonts / using Greek characters in math
Sorry. The glyphs to replace in the math font are: roman: 0030-0039 0041-005A, 0061-007A 0391-03D6 italic: 1D434-1D467 1D6E2-1D71B Alan On Wed, Sep 20, 2017 at 5:03 PM, Alan Bowen <bowenala...@gmail.com> wrote: > If it help: the glyphs to replace in the math font are: > nmerals0030-0039, (numerals) > 0041-005A, 0061-007A > 0391-03D6 > > > On Wed, Sep 20, 2017 at 4:05 PM, Henning Hraban Ramm <te...@fiee.net> > wrote: > >> Ahoi, >> >> did anyone make typescripts for the Brill fonts ( >> http://www.brill.com/about/brill-fonts)? >> Esp. I’d like to use their Greek characters for math. Don’t understand >> lfg files yet.. >> So I guess the task is: How to map Unicode Greek to math Greek? >> >> Greetlings, Hraban >> --- >> http://www.fiee.net >> http://wiki.contextgarden.net >> GPG Key ID 1C9B22FD >> >> >> ___ >> 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/list >> info/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] Brill fonts / using Greek characters in math
If it help: the glyphs to replace in the math font are: nmerals0030-0039, (numerals) 0041-005A, 0061-007A 0391-03D6 On Wed, Sep 20, 2017 at 4:05 PM, Henning Hraban Rammwrote: > Ahoi, > > did anyone make typescripts for the Brill fonts ( > http://www.brill.com/about/brill-fonts)? > Esp. I’d like to use their Greek characters for math. Don’t understand lfg > files yet.. > So I guess the task is: How to map Unicode Greek to math Greek? > > Greetlings, Hraban > --- > http://www.fiee.net > http://wiki.contextgarden.net > GPG Key ID 1C9B22FD > > > ___ > 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] bug in \over ?
The numerator in \startformula {ΑΒ\over CD} \stopformula should be italicized, should it not? I am using ConTeXt ver: 2017.09.08 17:24. Alan ___ 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] Substituting Greek characters in math mode
Let me try again with fonts in the ConteXt distribution. The aim is to substitute Pagella letters (roman and Greek) and numerals for those in Dejavu Math. It gets the numerals and the Greek capitals right but the rest (roman lower– and uppercase, and lowercase Greek) are still in Dejavu. How can I fix this? \definefontfamily[mainface][serif][TeX Gyre Pagella][] \definefallbackfamily[mainface][mm][TeX Gyre Pagella] [range={0030-0039, 0041-005A, 0061-0071, 0391-03A9, 03B1-03C9}, scale=1] \definefallbackfamily [mainface] [mm] [TeXGyrePagella][preset=math:lowercasegreeknormal] \definefallbackfamily [mainface] [mm] [TeXGyrePagellaItalic] [preset=math:lowercasegreekitalic] \definefallbackfamily [mainface] [mm] [TeXGyrePagella] [preset=math:uppercasegreeknormal] \definefallbackfamily [mainface] [mm] [TeXGyrePagellaItalic] [preset=math:uppercasegreekitalic] \definefontfamily[mainface][mm][Dejavu Math][scale=1] \setupmathematics[autopunctuation={all}, ucgreek=normal, lcgreek=italic] \setupbodyfont[mainface,10pt] \starttext A~B~C~a~b~c (Pagella) \emph{A~B~C~a~b~c} (Pagella)\\ \m{A~B~C~a~b~c} (math: Pagella?) \blank 0123456789 (Pagella) \\ \m{0123456789} (math: Pagella?) \blank δ \emph{δ} (Pagella) \\ \m{δ} (math: Pagella?) \blank π \emph{π} (Pagella) \\ \m{π} (math: Pagella?) \blank Π \emph{ Π} (Pagella) \\ \m{Π} (math: Pagella?) \blank Δ \emph{ Δ} (Pagella) \\ \m{Δ} (math: Pagella?) \stoptext Alan On Tue, Sep 5, 2017 at 5:42 PM, Alan Bowen <bowenala...@gmail.com> wrote: > I should like to have the Brill font substitute for the Greek alphabet > (upper and lower cases) as well for the numerals in Tex Gyre Termes Math. > > So far, I have been able to get the Brill numerals (oldstyle) but nothing > more: the Greek letters in math mode are from Termes Math. > > Here is what I have: > > \definefontfamily[mainface][serif][Brill] > [protrusion=quality, > expansion=quality, > mode=node, > force=yes, > ] > > \definefallbackfamily[mainface][mm][Brill][range={0030-0039, 0391-03A9, > 03B1-03C9}, scale=1] > > \definefallbackfamily [mainface] [mm] [Brill] [preset=math: > lowercasegreeknormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math: > lowercasegreekitalic] > \definefallbackfamily [mainface] [mm] [Brill] [preset=math: > uppercasegreeknormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math: > uppercasegreekitalic] > > > \definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94] > \setupmathematics[autopunctuation={all}, ucgreek=normal, lcgreek=italic] > > \setupbodyfont[mainface,10pt] > > \starttext > > A~B~C~a~b~c > > \emph{A~B~C~a~b~c}\quad math: \m{A~B~C~a~b~c} > > 0123456789\quad math: \m{0123456789} > > δ \emph{δ}\quad math: \m{δ} > > π \emph{π}\quad math: \m{π} > > Π \emph{ Π}\quad math: \m{Π} > > \stoptext > > Any suggestions or pointers will be most welcome. > > Alan > > ___ 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 ___