Re: [NTG-context] macOS
Maybe this is the solution, haven't tried it myself.https://support.apple.com/en-us/HT201716JanneMed Vänlig Hälsning Jan-Erik Hägglöf Originalmeddelande Från: Gerben Wierda Datum: 2020-03-30 23:52 (GMT+01:00) Till: mailing list for ConTeXt users Ämne: [NTG-context] macOS Spotlight on macOS can help me to find the right documentation. When I copy the contents of the folder (the manuals for ConTeXt) from its original location /usr/local/context-osx-64/tex/texmf-context/doc/context/documents/general/manuals to ~/Downloads/TestFolder they are indexed and found by Spotlight.But not in their original location. Why? And how do I fix this, because I want the manuals and such in /usr/local to be found.Any Mac user who knows?G___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-contextwebpage : http://www.pragma-ade.nl / http://context.aanhet.netarchive : 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] What alternative for scantokens( "btex " & texcommands & " etex")?
On 29/03/20 07:06, Gerben Wierda wrote: I’m trying in METAPOST to build a command to pass on to ConTeXt using btex/etex. picture p; p := scantokens( "btex " & texcommands & " etex”); btex/etex is better replaced by textext(). Nevertheless, this does not change anything. Context intercepts and replaces textext() (and btex/etex) during processing. It does not return a picture but a text bounding box that gets substituted upon shipping out. You *can* save your text to a string, to be passed to textext() in your MP macros. -- 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] macOS: Spotlight indexing of manuals?
Spotlight on macOS can help me to find the right documentation. When I copy the contents of the folder (the manuals for ConTeXt) from its original location /usr/local/context-osx-64/tex/texmf-context/doc/context/documents/general/manuals to ~/Downloads/TestFolder they are indexed and found by Spotlight. But not in their original location. Why? And how do I fix this, because I want the manuals and such in /usr/local to be found. Any Mac user who knows? G ___ 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] infinite loop with a huge document
On 3/30/2020 9:23 PM, Pablo Rodriguez wrote: Dear list, I’m afraid I have a huge document (combination of more than 80 individual documents) that triggers an infinite loop. All of them are Markdown sources that I convert to HTML4 and compile with ConTeXt latest. Individual documents compile fine, in about 3 or 4 runs. The single document goes always for the maximum number of runs. There were 9 runs, which is the default number. I set "--runs=30" and compilation ran through 30 cycles. So I use now "--runs=5". The document is huge and its compilation process is complex. Is there any way in which I can investigate what triggers the compilation in endless cycles for this document? Many thanks for your help, context --help --expert shows: --keeptuc keep previous tuc files (jobname-tuc-[run].tmp) when using that you can compare the tuc files Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Box of certain width (and height?) containing a paragraph of text?
Does ConTeXt have a command to create a (non framed) box from a line of text, where the text is typeset as a paragraph inside a box of certain size? You can always fall back to plain tex, but I think that the \framed... interface is nicer: \starttext \vbox{\hsize 3cm \input ward\relax} \stoptext 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 ___
Re: [NTG-context] Table-bug in lmtx?
On 3/30/2020 6:23 PM, Christian Prim wrote: Hello list following MWE gives a strange error "(interwoven alignment preambles are not allowed)" when processed with lmtx: \definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)|xp(5cm)s2|lw(2.5cm)|] \starttext \starttable[fosa] \NC Cell 1 \NC\Use3[p(8cm)]{A longer cell}\NC\AR \MR \NC Cell 1 \NC Cell 2 \NC Cell 3 \NC Cell 4 \NC\AR \stoptable \stoptext No problems in mkiv. I think Use3 is the problem, but I'm not sure... I found the issue (in the engine) ... tomorrow I'll upload a new one. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Box of certain width (and height?) containing a paragraph of text?
Gerben, did you think about using \framedtext, setting the frame off? Willi > On 30 Mar 2020, at 21:45, Gerben Wierda wrote: > > Does ConTeXt have a command to create a (non framed) box from a line of text, > where the text is typeset as a paragraph inside a box of certain size? > > G > ___ > 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] Box of certain width (and height?) containing a paragraph of text?
Does ConTeXt have a command to create a (non framed) box from a line of text, where the text is typeset as a paragraph inside a box of certain size? G ___ 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] infinite loop with a huge document
Dear list, I’m afraid I have a huge document (combination of more than 80 individual documents) that triggers an infinite loop. All of them are Markdown sources that I convert to HTML4 and compile with ConTeXt latest. Individual documents compile fine, in about 3 or 4 runs. The single document goes always for the maximum number of runs. There were 9 runs, which is the default number. I set "--runs=30" and compilation ran through 30 cycles. So I use now "--runs=5". The document is huge and its compilation process is complex. Is there any way in which I can investigate what triggers the compilation in endless cycles for this document? 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 ___
Re: [NTG-context] Table-bug in lmtx?
Christian Prim schrieb am 30.03.2020 um 18:23: Hello list following MWE gives a strange error "(interwoven alignment preambles are not allowed)" when processed with lmtx: \definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)|xp(5cm)s2|lw(2.5cm)|] \starttext \starttable[fosa] \NC Cell 1 \NC\Use3[p(8cm)]{A longer cell}\NC\AR \MR \NC Cell 1 \NC Cell 2 \NC Cell 3 \NC Cell 4 \NC\AR \stoptable \stoptext No problems in mkiv. I think Use3 is the problem, but I'm not sure... No, the problem is when you set a width for a cell. \starttext \starttable[|w(3cm)|] \NC Cell \NC\SR \stoptable \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 ___
[NTG-context] Table-bug in lmtx?
Hello list following MWE gives a strange error "(interwoven alignment preambles are not allowed)" when processed with lmtx: \definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)|xp(5cm)s2|lw(2.5cm)|] \starttext \starttable[fosa] \NC Cell 1 \NC\Use3[p(8cm)]{A longer cell}\NC\AR \MR \NC Cell 1 \NC Cell 2 \NC Cell 3 \NC Cell 4 \NC\AR \stoptable \stoptext No problems in mkiv. I think Use3 is the problem, but I'm not sure... Many thanks for your help Christian ___ 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] placelistofsynonyms without tabulate
Following Aditya’s recommendation on making a glossary with ConTeXt (https://tex.stackexchange.com/questions/152248/make-a-glossary-with-context) and have looked through several older and newer manuals under “abbreviations” and into the source. However, I cannot figure out if there is a simple way to define my own command to achieve the following: \definesynonyms[glossary][glossaries][\fullgloss]%[#4] % I wonder also what #4 is supposed to do? \setupsynonyms[glossary][headstyle=bold] \glossary[US]{United States}{The US is a country in the Americas.} \glossary[UK]{United Kingdom}{The UK is a country in Europe.} % CURRENT RESULT (guessing from what I understand from the source this is converted internally to): \placelistofglossaries \starttabulate[|||] \NC {\bf United Kingdom} \NC The UK is a country in Europe. \NC \NR \NC {\bf United States} \NC The US is a country in the Americas. \NC \NR \stoptabulate % DESIRED RESULT \unexpanded\def\myglossary#1#2#3{{\bf #1}#2} % or similar \placelistofglossaries[command=\myglossary] {\bf United Kingdom.} The UK is a country in Europe. Nice would be even if this could be indented at some point, but tastes may vary on indention for sure. {\bf United States.} The US is a country in the Americas. % or using itemize etc. I am aware that \placelistofsynonyms has a command=... option, but it doesn’t do anything for me. Also, the location=inmarigin option (which I suppose could be used to tweak the desired result in a way) stopped working in MKIV (?) and I can see in the source that it has a “fixed” assignment to location=left. Any hints very welcome. :) ___ 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] unknown references
On 3/30/20 1:41 PM, Hans Hagen wrote: > We've added a tracker: > > \enabletrackers [structures.referencing.show] Many thanks for the implementation, Hans. 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 ___
Re: [NTG-context] How to make page break & headers in XY arrangements?
On 3/30/2020 2:21 PM, Mojca Miklavec wrote: On Mon, 30 Mar 2020 at 13:21, Hans Hagen wrote: On 3/30/2020 1:03 PM, Mojca Miklavec wrote: % I want an actual page break here \page a rather stipid solution: \dorecurse{15}{\page[empty]} I did think of this one (and actually did it for the batch that I had to print today). But it involves manual counting and when data changes, the file needs to be adjusted every time. Anyway, this is relatively low priority. If there is no mechanism for this in place already, there's no need to add anything new. I can live with a few manual adjustments, and I guess I could do something based on current page number modulo total subpages as well.\setuppapersize [XY][A4] \setuppaper [topspace=10mm,backspace=10mm,dx=0mm,dy=0mm,nx=5,ny=13] \setuplayout [page] [topspace=2mm,backspace=2mm] \setuplayout [page] \setuplayout [location=middle] \setuparranging [XY] \showframe \setupbodyfont [8pt] \def\somecontent#1{\startpagemakeup #1 \stoppagemakeup} \starttext \installpagebreakmethod{mojca} {\page \scratchcounterone \numexpr\rootlayouttargetparameter{nx}*\rootlayouttargetparameter{ny}\relax \scratchcountertwo \luaexpr{math.mod(\the\realpageno-1,\the\scratchcounterone)}% \scratchcounterthree\numexpr\scratchcounterone-\scratchcountertwo\relax \dorecurse\scratchcounterthree{\page[empty]}} \setupheadertexts[1][1][1][1]\dorecurse{50}{\somecontent{Label 1 #1}} \page[mojca] \setupheadertexts[2][2][2][2]\dorecurse{70}{\somecontent{Label 2 #1}} \page[mojca] \setupheadertexts[3][3][3][3]\dorecurse{10}{\somecontent{Label 3 #1}} \page[mojca] \setupheadertexts[4][4][4][4]\dorecurse{30}{\somecontent{Label 3 #1}} \page[mojca] \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 ___
Re: [NTG-context] How to make page break & headers in XY arrangements?
On Mon, 30 Mar 2020 at 13:21, Hans Hagen wrote: > On 3/30/2020 1:03 PM, Mojca Miklavec wrote: > > > > % I want an actual page break here > > \page > > a rather stipid solution: > > \dorecurse{15}{\page[empty]} I did think of this one (and actually did it for the batch that I had to print today). But it involves manual counting and when data changes, the file needs to be adjusted every time. Anyway, this is relatively low priority. If there is no mechanism for this in place already, there's no need to add anything new. I can live with a few manual adjustments, and I guess I could do something based on current page number modulo total subpages as well. Thank you, Mojca ___ 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] unknown references
We've added a tracker: \enabletrackers [structures.referencing.show] \starttext Take a look at \at{page}[unknown:1]. This line has a reference.\pagereference[unknown:2] Take a look at \at{page}[unknown:2]. \stoptext Experimental till documented in the interface files. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to make page break & headers in XY arrangements?
On 3/30/2020 1:03 PM, Mojca Miklavec wrote: Hi, Stupid question: what's the proper way to introduce an actual page break and put some header on the paper holding the XY arrangement of smaller pages? I know I can create the second document which includes the first one and adds page numbers on top, but I'm sure there's a more elegant way to achieve the same. Thank you, Mojca \setuppapersize [XY][A4] \setuppaper [topspace=10mm,backspace=10mm,dx=0mm,dy=0mm,nx=5,ny=13] \setuplayout [page] [topspace=2mm,backspace=2mm] \setuplayout [page] \setuplayout [location=middle] \setuparranging [XY] \showframe \setupbodyfont [8pt] \def\somecontent#1{\startpagemakeup #1 \stoppagemakeup} \starttext % I want to mark the page with label numbers \setupheadertexts[1][1][1][1]% \dorecurse{50}{\somecontent{Label ONE}} % I want an actual page break here \page a rather stipid solution: \dorecurse{15}{\page[empty]} \setupheadertexts[2][2][2][2]% \dorecurse{70}{\somecontent{Label TWO}} \stoptext ___ 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 ___ -- - 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 ___
[NTG-context] How to make page break & headers in XY arrangements?
Hi, Stupid question: what's the proper way to introduce an actual page break and put some header on the paper holding the XY arrangement of smaller pages? I know I can create the second document which includes the first one and adds page numbers on top, but I'm sure there's a more elegant way to achieve the same. Thank you, Mojca \setuppapersize [XY][A4] \setuppaper [topspace=10mm,backspace=10mm,dx=0mm,dy=0mm,nx=5,ny=13] \setuplayout [page] [topspace=2mm,backspace=2mm] \setuplayout [page] \setuplayout [location=middle] \setuparranging [XY] \showframe \setupbodyfont [8pt] \def\somecontent#1{\startpagemakeup #1 \stoppagemakeup} \starttext % I want to mark the page with label numbers \setupheadertexts[1][1][1][1]% \dorecurse{50}{\somecontent{Label ONE}} % I want an actual page break here \page \setupheadertexts[2][2][2][2]% \dorecurse{70}{\somecontent{Label TWO}} \stoptext ___ 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] Luatex 1.12.0 announcement.
== LuaTeX 1.12.0 2020-03-15 == This is the release for TeX live 2020. --shell-restricted now forbids loading of dso (dll/so object) Scaled virtual font Aadditional primitives \eTeXglue[stretch|shrink]order for querying order the etex way. Extra features runtoks tex.getmodenames() (as these can differ per engine/version) Permit nested runtoks in more complex situations of nesting (HH) More accurate and correct test for tex.[set|get]math Minor clean-up and bugs fixed -- 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 ___
Re: [NTG-context] Problem with long indices in LMTX
Hello For reference: Here is the ConTeXt way of entering a long text-Index, which works with lmtx: \starttext \m{F_{\text{long Index}}=m_{\text{long Index}}a} \stoptext Sorry for the noise. (Perhaps a change correlated to the prime discussion...) Christian Am Mi., 25. März 2020 um 09:53 Uhr schrieb Christian Prim < christian.p...@gmx.ch>: > Hello list > > Sorry to ask again. What do I miss in following MWE? > > \starttext > \m{F_{\rm longIndex}=m_{\rm longIndex}a} > \stoptext > > The index longIndex overlaps the following characters "=" and "a" when > processed with lmtx. No problems with mkiv. > > Thanks for your help > Christian > > Am Sa., 21. März 2020 um 17:27 Uhr schrieb Christian Prim < > christian.p...@gmx.ch>: > >> Hello >> >> Following MWE produces strange output in latest LMTX. mkiv (also latest) >> output is ok. >> >> \usetypescript[palatino] >> \setupbodyfont[palatino,11pt] >> \starttext >> \m{F_{\rm longIndex}=m_{\rm longIndex}a} >> \stoptext >> >> The spacing in the index is wrong. >> >> What am I missing? >> >> Thanks in advance >> Christian >> > ___ 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] conditional for undefined references
On 3/29/20 2:33 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 29.03.2020 um 13:53: >> [...] >> Is there a way to deal with undefined references? >> [...] >> Any chance to be able to catch a "??" output (or \dummyreference) from >> "\in[reference]"? > > What you can do is to use the \doifelsereferencefound command to check > if the requested reference exists before you get the page number etc. Many thanks for your reply, Wolfgang. \doifelsereferencefound is exactly what I need. 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 ___