Re: [NTG-context] \hbox to ... equivalent in ConTeXt (\framed)
Wow, both \maxaligned and "paragraph" are new (and useful) to me. Thank you again. Jairo El vie, 26 de feb. de 2021 a la(s) 17:24, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 26.02.2021 um 23:09: > > Nice, but it also adds spacing between characters inside a word. So, > > what I was asking is if I can stretch only spaces between words via > > key-value pairs in \framed, if possible, of course. Thank you very much. > > \starttext > > \framed[width=10cm,align=normal]{\maxaligned{Uno dos tres}} > > \framed[width=10cm,align=paragraph]{Uno dos tres} > > \stoptext > > Wolfgang > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \hbox to ... equivalent in ConTeXt (\framed)
Jairo A. del Rio schrieb am 26.02.2021 um 23:09: Nice, but it also adds spacing between characters inside a word. So, what I was asking is if I can stretch only spaces between words via key-value pairs in \framed, if possible, of course. Thank you very much. \starttext \framed[width=10cm,align=normal]{\maxaligned{Uno dos tres}} \framed[width=10cm,align=paragraph]{Uno dos tres} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \hbox to ... equivalent in ConTeXt (\framed)
Nice, but it also adds spacing between characters inside a word. So, what I was asking is if I can stretch only spaces between words via key-value pairs in \framed, if possible, of course. Thank you very much. Jairo :) El vie, 26 de feb. de 2021 a la(s) 17:06, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 26.02.2021 um 22:38: > > Hi list. > > > > Is there an interface for \hbox to via framed? I think it's not > > the ConTeXt spirit to do something like > > > > \framed[offset=0cm]{\hbox to 10cm{Uno dos tres}} > > > > where spacing is stretched so all the available space is filled, so I > > want to know about a better way. Thank you beforehand. > > \starttext > > \framed{Uno dos tres} > > \framed{\stretched[width=10cm]{Uno dos tres}} > > \framed[width=10cm,align=normal]{\stretched{Uno dos tres}} > > \stoptext > > Wolfgang > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \hbox to ... equivalent in ConTeXt (\framed)
Jairo A. del Rio schrieb am 26.02.2021 um 22:38: Hi list. Is there an interface for \hbox to via framed? I think it's not the ConTeXt spirit to do something like \framed[offset=0cm]{\hbox to 10cm{Uno dos tres}} where spacing is stretched so all the available space is filled, so I want to know about a better way. Thank you beforehand. \starttext \framed{Uno dos tres} \framed{\stretched[width=10cm]{Uno dos tres}} \framed[width=10cm,align=normal]{\stretched{Uno dos tres}} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \hbox to ... equivalent in ConTeXt (\framed)
On Fri, 26 Feb 2021, Jairo A. del Rio wrote: > Hi list. > > Is there an interface for \hbox to via framed? I think it's not the > ConTeXt spirit to do something like > > \framed[offset=0cm]{\hbox to 10cm{Uno dos tres}} \framed[width=10cm]{} and \framed[height=3cm, width=10cm]{...} if you want a box with a specified width and height. > where spacing is stretched so all the available space is filled, so I want > to know about a better way. Thank you beforehand. 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 ___
[NTG-context] \hbox to ... equivalent in ConTeXt (\framed)
Hi list. Is there an interface for \hbox to via framed? I think it's not the ConTeXt spirit to do something like \framed[offset=0cm]{\hbox to 10cm{Uno dos tres}} where spacing is stretched so all the available space is filled, so I want to know about a better way. Thank you beforehand. Cordially, Jairo ___ 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 reduce the inter-item space
Thanks for the link to the post. Alain Le 26/02/2021 à 19:57, Aditya Mahajan a écrit : On Fri, 26 Feb 2021, Alain Delmotte wrote: Thanks, that answered all my requirements. This post illustrates the effect of each keyword for spacing: https://adityam.github.io/context-blog/post/spacing-in-itemize/ I suppose that the rule "not mixing keywords and assignment in the same argument" is valid for all setups having multiples commands. Yes, there are no commands in ConTeXt where keyword and assignments are mixed in the options. 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] How to reduce the inter-item space
On Fri, 26 Feb 2021, Alain Delmotte wrote: > > Thanks, that answered all my requirements. This post illustrates the effect of each keyword for spacing: https://adityam.github.io/context-blog/post/spacing-in-itemize/ > I suppose that the rule "not mixing keywords and assignment in the same > argument" is valid for all setups having multiples commands. Yes, there are no commands in ConTeXt where keyword and assignments are mixed in the options. 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] Warning: "nodes: unable to store reference from lua in tex"
On 2/26/2021 6:58 PM, Wolfgang Schuster wrote: Hans Hagen schrieb am 26.02.2021 um 18:36: On 2/26/2021 6:01 PM, Lukas/ConTeXt wrote: Hello, after I renewed ConTeXt MkIV, I started to get the following warning: " ... luatex warning > nodes: unable to store reference from lua in tex ... (repeated more times) " This happens when I try to typeset a looo...ong table (by \start/\stop-tabulate) over several pages. It used to work OK with a Ctx version several months (or half year) ago. Is there a simple way to overtake the problem? MWE: \starttext \startluacode context[[ \starttabulate[|Tr|] \HL \NC AABBCC \NC\AR \HL[3] ]] for i = 1, 4000 do context.NC(i) context.NC() context.AR() end context[[ \HL \stoptabulate ]] \stopluacode \stoptext ... lmtx ... no problem, doing 4K or 40K or .. MkIV only, there is no output for \HL with too many lines (and the warning is shown). \starttext \starttabulate[|l|] \NC xxx \NC\NR \HL \ntimes{\NC yyy \NC\NR}{4000} \stoptabulate \stoptext i removed some older (slower / more demanding) code in mkiv and indeed one can now hit a boundary in luatex ... (i wanted to share critical code between mkiv and lmtx) .. there are reasons why we go lmtx btw, one can decide to split up this large table in pieces, after all, it is generated so one knows the properties (Thomas has larger tables and so far he didn't complain for lmtx; the lmtx table code is also faster.) 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] Warning: "nodes: unable to store reference from lua in tex"
Hans Hagen schrieb am 26.02.2021 um 18:36: On 2/26/2021 6:01 PM, Lukas/ConTeXt wrote: Hello, after I renewed ConTeXt MkIV, I started to get the following warning: " ... luatex warning > nodes: unable to store reference from lua in tex ... (repeated more times) " This happens when I try to typeset a looo...ong table (by \start/\stop-tabulate) over several pages. It used to work OK with a Ctx version several months (or half year) ago. Is there a simple way to overtake the problem? MWE: \starttext \startluacode context[[ \starttabulate[|Tr|] \HL \NC AABBCC \NC\AR \HL[3] ]] for i = 1, 4000 do context.NC(i) context.NC() context.AR() end context[[ \HL \stoptabulate ]] \stopluacode \stoptext ... lmtx ... no problem, doing 4K or 40K or .. MkIV only, there is no output for \HL with too many lines (and the warning is shown). \starttext \starttabulate[|l|] \NC xxx \NC\NR \HL \ntimes{\NC yyy \NC\NR}{4000} \stoptabulate \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Warning: "nodes: unable to store reference from lua in tex"
On 2/26/2021 6:01 PM, Lukas/ConTeXt wrote: Hello, after I renewed ConTeXt MkIV, I started to get the following warning: " ... luatex warning > nodes: unable to store reference from lua in tex ... (repeated more times) " This happens when I try to typeset a looo...ong table (by \start/\stop-tabulate) over several pages. It used to work OK with a Ctx version several months (or half year) ago. Is there a simple way to overtake the problem? MWE: \starttext \startluacode context[[ \starttabulate[|Tr|] \HL \NC AABBCC \NC\AR \HL[3] ]] for i = 1, 4000 do context.NC(i) context.NC() context.AR() end context[[ \HL \stoptabulate ]] \stopluacode \stoptext ... lmtx ... no problem, doing 4K or 40K or .. - 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 reduce the inter-item space
Thanks, that answered all my requirements. I suppose that the rule "not mixing keywords and assignment in the same argument" is valid for all setups having multiples commands. Thanks, Alain Le 25/02/2021 à 23:46, Wolfgang Schuster a écrit : Alain Delmotte schrieb am 25.02.2021 um 22:48: Hi! I am trying to reduce the space inter two items in a \start...\stopitemize. I did setup in the beginning of the file: \setupitemize[joinedup,packed,leftmargin=2em] but I find that the inter-item space is too big for what I want to create. Is it possible to reduce that space? You can't put keywords and assignments in the same argument of a setup command, use separate arguments for each of them and it works. \setupitemize [each] [joinedup,packed] [leftmargin=2em] 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] How to reduce the inter-item space
This is ok. There is still space before the items' block. This could be handy. Thanks, Alain Le 25/02/2021 à 23:17, jbf a écrit : Or maybe inbetween={\blank[small]} Julian On 26/2/21 8:48 am, Alain Delmotte wrote: Hi! I am trying to reduce the space inter two items in a \start...\stopitemize. I did setup in the beginning of the file: \setupitemize[joinedup,packed,leftmargin=2em] but I find that the inter-item space is too big for what I want to create. Is it possible to reduce that space? Thanks, -- Alain ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to reduce the inter-item space
This partly helps, because it suppress the space before the items (first level) and the lines are at the margin and there is still space between a first and a second level itemize. Thanks, Alain Le 25/02/2021 à 23:07, jbf a écrit : Check https://wiki.contextgarden.net/Enumerations Would \setupitemize[nowhite] help? Julian On 26/2/21 8:48 am, Alain Delmotte wrote: Hi! I am trying to reduce the space inter two items in a \start...\stopitemize. I did setup in the beginning of the file: \setupitemize[joinedup,packed,leftmargin=2em] but I find that the inter-item space is too big for what I want to create. Is it possible to reduce that space? Thanks, -- Alain ___ 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] Warning: "nodes: unable to store reference from lua in tex"
Hello, after I renewed ConTeXt MkIV, I started to get the following warning: " ... luatex warning > nodes: unable to store reference from lua in tex ... (repeated more times) " This happens when I try to typeset a looo...ong table (by \start/\stop-tabulate) over several pages. It used to work OK with a Ctx version several months (or half year) ago. Is there a simple way to overtake the problem? MWE: \starttext \startluacode context[[ \starttabulate[|Tr|] \HL \NC AABBCC \NC\AR \HL[3] ]] for i = 1, 4000 do context.NC(i) context.NC() context.AR() end context[[ \HL \stoptabulate ]] \stopluacode \stoptext Best regards, Lukasopen source > level 1, order 1, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > system > ConTeXt ver: 2021.02.01 13:17 MKIV fmt: 2021.2.3 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > beware: some patches loaded from cont-new.mkiv close source> level 2, order 2, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > jobfiles > using path: d:/Lukas/ConTeXt/Styles system > files > jobname 't', input 'D:/Lukas/Jobs/Chrastany-D5.4-RDS/SO_201/t.mkiv', result 't' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name 'D:/Lukas/Jobs/Chrastany-D5.4-RDS/SO_201/t.mkiv' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded luatex warning > nodes: unable to store reference from lua in tex luatex warning > nodes: unable to store reference from lua in tex luatex warning > nodes: unable to store reference from lua in tex luatex warning > nodes: unable to store reference from lua in tex backend > xmp > using file 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 pages > flushing realpage 2, userpage 2, subpage 2 pages > flushing realpage 3, userpage 3, subpage 3 pages > flushing realpage 4, userpage 4, subpage 4 pages > flushing realpage 5, userpage 5, subpage 5 pages > flushing realpage 6, userpage 6, subpage 6 pages > flushing realpage 7, userpage 7, subpage 7 pages > flushing realpage 8, userpage 8, subpage 8 pages > flushing realpage 9, userpage 9, subpage 9 pages > flushing realpage 10, userpage 10, subpage 10 pages > flushing realpage 11, userpage 11, subpage 11 pages > flushing realpage 12, userpage 12, subpage 12 pages > flushing realpage 13, userpage 13, subpage 13 pages > flushing realpage 14, userpage 14, subpage 14 pages > flushing realpage 15, userpage 15, subpage 15 pages > flushing realpage 16, userpage 16, subpage 16 pages > flushing realpage 17, userpage 17, subpage 17 pages > flushing realpage 18, userpage 18, subpage 18 pages > flushing realpage 19, userpage 19, subpage 19 pages > flushing realpage 20, userpage 20, subpage 20 pages > flushing realpage 21, userpage 21, subpage 21 pages > flushing realpage 22, userpage 22, subpage 22 pages > flushing realpage 23, userpage 23, subpage 23 pages > flushing realpage 24, userpage 24, subpage 24 pages > flushing realpage 25, userpage 25, subpage 25 pages > flushing realpage 26, userpage 26, subpage 26 pages > flushing realpage 27, userpage 27, subpage 27 pages > flushing realpage 28, userpage 28, subpage 28 pages > flushing realpage 29, userpage 29, subpage 29 pages > flushing realpage 30, userpage 30, subpage 30 pages > flushing realpage 31, userpage 31, subpage 31 pages > flushing realpage 32, userpage 32, subpage 32 pages > flushing realpage 33, userpage 33, subpage 33 pages > flushing realpage 34, userpage 34, subpage 34 pages > flushing realpage 35, userpage 35, subpage 35 pages > flushing realpage 36, userpage 36, subpage 36 pages > flushing realpage 37, userpage 37, subpage 37 pages > flushing realpage 38, userpage 38, subpage 38 pages > flushing realpage 39, userpage 39, subpage 39 pages > flushing realpage 40, userpage 40, subpage 40 pages > flushing realpage 41, userpage 41, subpage 41 pages > flushing realpage 42, userpage 42, subpage 42 pages > flushing realpage 43, userpage 43, subpage 43 pages > flushing realpage 44, userpage 44, subpage 44 pages > flushing realpage 45, userpage 4
Re: [NTG-context] \showcolor broken in LMTX
On 2/26/2021 12:16 AM, Jairo A. del Rio wrote: Hi, list. The following example fails in LMTX, but it works in MkIV: \starttext\showcolor[svg]\stoptext LMTX complains about a s-colors-run file not found i'll fix it (that hardly used runtime code has been moved) and the name is wrong 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 ___