Re: [NTG-context] Paragraph break over pages with hanging float

2021-11-15 Thread Hans Hagen via ntg-context
paragraph starts always on the next page, regardless of the space left on the previous page. Yes and no ... tex cannot really lookahead here. But thanks to some recent new trickery I can provide: location={right,15*hang,force} However, it really is up to the user to check of all works out right

Re: [NTG-context] Emojis showing up in black instead of colours

2021-11-15 Thread Vincent Hennebert via ntg-context
[...] > > gives me pages of emojis, all black. According to what is described > > on > > Stackexchange, I should be getting colours. Am I doing something > > wrong? > > Hi Vincent, > > if you are using Evince, try Okular to check color display. > > I exp

Re: [NTG-context] Emojis showing up in black instead of colours

2021-11-12 Thread Pablo Rodriguez via ntg-context
getting colours. Am I doing something wrong? Hi Vincent, if you are using Evince, try Okular to check color display. I experienced something similar in the past. Just in case it helps, Pablo ___ If your question is of

Re: [NTG-context] issue importing metadata from PDF

2021-11-12 Thread Pablo Rodriguez via ntg-context
etty well. I’m going to ask the author whether I may share the PDF document here, so you can check it. >> BTW, how can I use "\enabledirectives[backend.date=2021.02.01]" in Lua? > > grep is your friend ... (probably also in the cld manual) > > directives.enable(&#x

Re: [NTG-context] Font Problem

2021-11-10 Thread Bruce Horrocks via ntg-context
for a working install, of course. In your first email you said you used the command "txrun": I've no idea what that is because I've never needed it. I just use the 'context' command so all you need do to check the install is working is (from your home directory

Re: [NTG-context] Math font tips and tricks

2021-11-07 Thread Wolfgang Schuster via ntg-context
,math:uppercasegreeknormal},force=yes] \definefallbackfamily       [mainface] [math] [Minion Pro]       [range=math:digitsnormal,features=f:lining,force=yes] \definefontfamily     [mainface] [math] [Libertinus Math] Thanks in advance for your support. Do you get results at all? Hard to ch

Re: [NTG-context] Math font tips and tricks

2021-11-07 Thread Hans Hagen via ntg-context
backfamily      [mainface] [math] [Minion Pro]      [range=math:digitsnormal,features=f:lining,force=yes] \definefontfamily     [mainface] [math] [Libertinus Math] Thanks in advance for your support. Do you get results at all? Hard to check as that math font is a commercial one. If it's an otf

Re: [NTG-context] Regular online meet-up

2021-11-04 Thread Clyde Johnston via ntg-context
d; most modern browsers should work (WebRTC required). * Open the above URL, accept the privacy statement, * enter your name, * click "join" (or "start" if you’re the first), * click "with microphone", allow your browser to access it, check the audio. (Some strings mi

Re: [NTG-context] \doifinstring: strange characters on the output

2021-11-02 Thread Tomas Hala via ntg-context
Hi Hans, ok, thank you, lmtx is a good way. Tomáš > I would like to ask what is the cause of this behavior and how to > use the \doifinstring to prevent the "fbf@" on the output. partial expansion of a protected macro where one doesn't expect it before i patch i let wolfg

[NTG-context] Regular online meet-up

2021-11-02 Thread Henning Hraban Ramm via ntg-context
vacy statement, * enter your name, * click "join" (or "start" if you’re the first), * click "with microphone", allow your browser to access it, check the audio. (Some strings might be different, I see the German interface, you should get the main language of your br

Re: [NTG-context] check installed program using Lua

2021-11-02 Thread Pablo Rodriguez via ntg-context
On 11/1/21 5:13 PM, Hans Hagen via ntg-context wrote: > On 11/1/2021 2:26 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> Is there a way to wrap os.exec() in the sample so that it only runs if >> "dir" is available? >> >> I know that os.name would be an option here, but not in my real world

Re: [NTG-context] check installed program using Lua

2021-11-02 Thread Pablo Rodriguez via ntg-context
able in various cases (like it > will fail for shell/command interpreter builtins, in cron jobs, in > special scripted environments, and may incorrectly succeed for > disabled/forbidden commands), as it just runs through the PATH > environment variable to check for executable file existence.

Re: [NTG-context] \doifinstring: strange characters on the output

2021-11-01 Thread Hans Hagen via ntg-context
. partial expansion of a protected macro where one doesn't expect it before i patch i let wolfgang check it - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt |

Re: [NTG-context] check installed program using Lua

2021-11-01 Thread Hans Hagen via ntg-context
On 11/1/2021 2:26 PM, Pablo Rodriguez via ntg-context wrote: Dear list, is there a way if a program is installed on the computer using Lua. I have the following sample: \starttext \startluacode filename = tex.jobname .. ".pdf" os.exec("dir " .. filename) \stopluacode \stoptex

Re: [NTG-context] check installed program using Lua

2021-11-01 Thread Taco Hoekwater via ntg-context
s cases (like it will fail for shell/command interpreter builtins, in cron jobs, in special scripted environments, and may incorrectly succeed for disabled/forbidden commands), as it just runs through the PATH environment variable to check for executable file existence. Often times, it is better

[NTG-context] check installed program using Lua

2021-11-01 Thread Pablo Rodriguez via ntg-context
Dear list, is there a way if a program is installed on the computer using Lua. I have the following sample: \starttext \startluacode filename = tex.jobname .. ".pdf" os.exec("dir " .. filename) \stopluacode \stoptext Is there a way to wrap os.exec() in the sample so that it only run

Re: [NTG-context] Color profiles (was: Bloody PDF boxes)

2021-11-01 Thread Henning Hraban Ramm via ntg-context
d_ICC_profiles.phtm -> 404 Thank you. The information from 2008 was outdated anyway; GWG’s latest recommendations from 2015 don’t contain ICC profiles any more (maybe their settings for commercial applications do, didn’t check). And it seems like GWG is in conflict with the PDF associat

Re: [NTG-context] upload

2021-10-23 Thread Mikael Sundqvist via ntg-context
> 0.1 looks better to me. > there are no ssty's for the quadruple prime in that font but if you need > primes so badly you probably shouldn't use it anyway i guess (there are > only super-textsize ssty variants for the 1/2/3 and their reverse) > > anyway, as you desperately n

Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context
2-30 23:45:16" "1234-12-30T23:45:16+01:00" "1234-12-30 23:45:16-02:00" "1234-12-30 23:45:16+05:00" "1234-12-30 23:45:16 05:00" "1234-12-30 23:45:16 05:00" (I'll send you the file to check/test) 2) Fix the os.timezone function. Previously,

Re: [NTG-context] upload

2021-10-22 Thread Pablo Rodriguez via ntg-context
ted, Pablo? Hi Michal, I haven’t found the time to check this, but this is pretty much what I wanted: being able to set other timezones than the local one. Many thanks for your help, Pablo -- http://www.ousia.tk ___

Re: [NTG-context] upload

2021-10-22 Thread Michal Vlasák via ntg-context
+02:00 print("os.fulltime()", os.fulltime()) -- 2021-10-22 17:38:38+02:00 print("os.localtime()", os.localtime()) -- 2021-10-22 17:38:38 print("os.now()", os.now()) -- 2021-10-22 15:38:38 \stopluacode \stoptext I don

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-10-22 Thread Hans Hagen via ntg-context
er files ;) We hit a limti in lpeg that allocates memory by duplicating the size which then hits a top and falls back in allocating by + 1 every capture which then kind of stalls the xml interpretation. I can hack that to work (and need to check that with every lpeg update), but as we enter a next

Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context
. Is there a way to add time and timezone in backend.date? Pablo : transparencies should work again (wrong alias fixed). Many thanks for this fix too. Sorry for insisting, but could you check what is wrong with an extra blank space in rotated imposition (https://mailman.ntg.nl/pipermail/ntg

Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context
f you need primes so badly you probably shouldn't use it anyway i guess (there are only super-textsize ssty variants for the 1/2/3 and their reverse) anyway, as you desperately need these quads (why check otherwise), adding this to the lfg blob helps: local four = characters[0x2057] if

Re: [NTG-context] upload

2021-10-21 Thread Mikael Sundqvist via ntg-context
play more with it and figure out nice > values for context) .. there might be more such 'simple' useful tricks > > Mikael: you can test the math cheat (doesn't make the font nicer). > Pablo : transparencies should work again (wrong alias fixed). > Michal: you can c

Re: [NTG-context] upload

2021-10-21 Thread Pablo Rodriguez via ntg-context
ay to add time and timezone in backend.date? > Pablo : transparencies should work again (wrong alias fixed). Many thanks for this fix too. Sorry for insisting, but could you check what is wrong with an extra blank space in rotated imposition (https://mailman.ntg.nl/pipermail/ntg-context/2021/10

[NTG-context] upload

2021-10-21 Thread Hans Hagen via ntg-context
need to play more with it and figure out nice values for context) .. there might be more such 'simple' useful tricks Mikael: you can test the math cheat (doesn't make the font nicer). Pablo : transparencies should work again (wrong alias fixed). Michal: you can check the dates (a

Re: [NTG-context] Bloody PDF boxes and cr*p marks!

2021-10-19 Thread Henning Hraban Ramm via ntg-context
> Am 12.10.2021 um 20:48 schrieb Hans Hagen : > >> Hm, you implemented these boxes only in 2015, there was not much change in >> that regard since then. > > Way earlier but it wasn't enabled ... (I'm not going to check ancient tex > live dvd's).

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Luis Montgomery via ntg-context
ery wrote: > > Check that your Inkscape is working properly. > > > > That proble NOT appear on my machine... > > > > Best, > > > > L. Montgomery > > (Sorry Luis, I forgot to cc mailing list) > Per https://wiki.contextgarden.net/Command/ex

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Jason Ross via ntg-context
On 10/18/21 8:38 AM, Luis Montgomery wrote: > Check that your Inkscape is working properly. > > That proble NOT appear on my machine... > > Best, > > L. Montgomery (Sorry Luis, I forgot to cc mailing list) Per https://wiki.contextgarden.net/Command/externalfigure, in L

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Luis Montgomery via ntg-context
Check that your Inkscape is working properly. That proble NOT appear on my machine... Best, L. Montgomery El lun., 18 de octubre de 2021 10:15, Jason Ross via ntg-context < ntg-context@ntg.nl> escribió: > The following MWE fails to render the text in the attached SVG

Re: [NTG-context] Update error on Raspberry Pi

2021-10-16 Thread Mojca Miklavec via ntg-context
Hi, On Sat, 16 Oct 2021 at 22:43, J. Hagen via ntg-context wrote: > > Looks like the pi bins and an osx one are behind (mojca then needs to kick > those vm's) ... I 'll check it tomorrow. I'm sorry, the new binaries have been uploaded to the usual place (Hans probably

Re: [NTG-context] Update error on Raspberry Pi

2021-10-16 Thread J. Hagen via ntg-context
Looks like the pi bins and an osx one are behind (mojca then needs to kick those vm's) ... I 'll check it tomorrow.Op 16 okt. 2021 15:12 schreef Luis Montgomery via ntg-context :Hi,I try to update LMTX and the script sends me this error:resolvers       > lua > loading file '/h

Re: [NTG-context] new upload

2021-10-13 Thread Hans Hagen via ntg-context
? they are in there; but i still need to check multiple notes and spacing before the first (we have some trickery in mkiv and lmtx but maybe i can still make that better / more reliable in lmtx/luametatex) Hans

[NTG-context] Update now!

2021-10-13 Thread Henning Hraban Ramm via ntg-context
Now is a good time to update your LMTX installation, since the current version (October 10th) works well in many regards (esp. footnotes). I didn’t check yet some areas that are known to be problematic, like columns, but my projects with hundreds of footnotes (including side floats in footnotes

Re: [NTG-context] Bloody PDF boxes and cr*p marks!

2021-10-12 Thread Hans Hagen via ntg-context
implementations i guess). Hm, you implemented these boxes only in 2015, there was not much change in that regard since then. Way earlier but it wasn't enabled ... (I'm not going to check ancient tex live dvd's). addtopageattributes("CropBox",box) -- mandate for renderin

Re: [NTG-context] Bloody PDF boxes and cr*p marks!

2021-10-12 Thread Hans Hagen via ntg-context
then didn’t check enough if it does what it should.) I long ago lost track of what all that means ... decades of pdf ... different viewers, different interpretations ... validators complaining about things missing ... i guess that bit (like annotations) will always be in flux (also because specs

[NTG-context] Bloody PDF boxes and cr*p marks!

2021-10-12 Thread Henning Hraban Ramm via ntg-context
more?). I gave up on that subject and still fix the boxes with Acrobat Pro whenever I need them to be correct. But that’s no solution. (And it’s probably also my fault, since I was one of those who wanted this implemented and then didn’t check enough if it does what it should.) Ok, calm down

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-11 Thread Joey McCollum via ntg-context
o in the MWE above. I'm trying to take certain punctuation marks that >> follow the \autopuncttest macro and place them before it instead. >> Looking at the typo-chr .lua and .mkiv files, I see that there are >> \pushpunctuation >> and \poppunctuation methods in ad

Re: [NTG-context] Regular online meet-up

2021-10-11 Thread Henning Hraban Ramm via ntg-context
t;with microphone", allow your browser to access it, check the audio. (Some strings might be different, I see the German interface, you should get the main language of your browser.) * Your microphone is muted if you join. Activate microphone and/or camera with the buttons at the bottom. * Min

Re: [NTG-context] Default values for key-value macros

2021-10-10 Thread Hans Hagen via ntg-context
ble{style}{text}}     {\color[\getvariable{style}{color}]{\getvariable{style}{text}}} } \starttext \style[   text={Some red text},   color=red, ] \style[   color=blue, ] \stoptext ``` Here I assign a default value of `nil` to every key, and then check if the `text` variable is empty before p

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-10 Thread Joey McCollum via ntg-context
ition to the \removepunctuation method. > These might be useful for this purpose, but in any case, I still have to > check if the trailing character is one of the characters in a specified > set/string, and this is where the error is arising. > > > Add \protected (or \unexpanded

[NTG-context] Default values for key-value macros

2021-10-10 Thread noib3 via ntg-context
\style[ color=blue, ] \stoptext ``` Here I assign a default value of `nil` to every key, and then check if the `text` variable is empty before printing it. I would expect the second macro not to print anything since its `text` should be nil, instead both macros print 'Some red text'

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-10 Thread Wolfgang Schuster via ntg-context
on method. These might be useful for this purpose, but in any case, I still have to check if the trailing character is one of the characters in a specified set/string, and this is where the error is arising. Add \protected (or \unexpanded) to your command definition. \startbtxrenderingdefinitio

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-10 Thread Hans Hagen via ntg-context
might be useful for this purpose, but in any case, I still have to check if the trailing character is one of the characters in a specified set/string, and this is where the error is arising. maybe you're in protected mode % assumes \protect earlier \unprotect \def\autopuncttest

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-09 Thread Joey McCollum via ntg-context
tuation marks that follow the \autopuncttest macro and place them before it instead. Looking at the typo-chr .lua and .mkiv files, I see that there are \pushpunctuation and \poppunctuation methods in addition to the \removepunctuation method. These might be useful for this purpose, but in any case,

Re: [NTG-context] running tikz

2021-09-30 Thread Hans Hagen via ntg-context
ef? Or is something else also needed? I don't know. If you send me the examplex that don't work I can check it. I suppose that it there is a well defined interface layer we can provide the connection and maintain that in the context distribution. And we can also just decide that some featur

Re: [NTG-context] running tikz

2021-09-30 Thread Aditya Mahajan via ntg-context
rogram from the tikz manual, but I get an error saying > that "t-pgf.tex" is not found; but it is in the tree of ConTeXt-lmtx. How did you install TikZ? The error message seems to suggest that tikz module is not installed. You can check by looking at the output of mtxrun t-pgf.tex O

Re: [NTG-context] Regular online meet-up

2021-09-28 Thread Denis Maier via ntg-context
e, which times would fit you (weekdays, > daytime...)? > I suppose it has to be some best fit for all, so you can best check with > those on > line last week to get the best time. > > Concerning 'topics' ... it if also involved discu

Re: [NTG-context] Getting Textadept to open pdf?

2021-09-27 Thread Hans Hagen via ntg-context
e ok. Older versions of cmd had a char-by-char refresh which is not something that goes well with tex logging. On unix one has larger delays so there it's better but tven then font rendering can slow things down. Now to textadept: in order to check this 'launch viewer' delay I ins

Re: [NTG-context] Regular online meet-up

2021-09-26 Thread Hans Hagen via ntg-context
you can best check with those on line last week to get the best time. Concerning 'topics' ... it if also involved discussing features, solving problems, demos than we need to mechanism to collect those so that they can be prepar

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Denis Maier via ntg-context
em support for bibliographies (and variable scope more generally) Yes, I haven't added any code to check for the useibid or useidem options in list citations; they are only used for in-text citations in the SBL specification definition. The distinction between \setupbtx[sbl:\s!list] and \set

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Joey McCollum via ntg-context
bid. for the foo-citation outside of > the footnote. > > > > Denis > > > > > > *Von:* Joey McCollum > *Gesendet:* Dienstag, 21. September 2021 17:16 > *An:* Maier, Denis Christian (UB) > *Cc:* mailing list for ConTeXt users > *Betreff:* Re: [NTG-context

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Denis Maier via ntg-context
: Maier, Denis Christian (UB) Cc: mailing list for ConTeXt users Betreff: Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally) Yes, I haven't added any code to check for the useibid or useidem options in list citations; they are only used for in

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Joey McCollum via ntg-context
Yes, I haven't added any code to check for the useibid or useidem options in list citations; they are only used for in-text citations in the SBL specification definition. The distinction between \setupbtx[sbl:\s!list] and \setupbtx[sbl:\s!cite] should allow us to specify their options separ

Re: [NTG-context] zint barcode module on LMTX/MacOS

2021-09-08 Thread Floris van Manen via ntg-context
On 08/09/2021 19:08, Henning Hraban Ramm wrote: I just checked on my Linux laptop with a new installation, and it worked exactly like this. Did you check with --luatex (i.e. MkIV)? What’s your ConTeXt version? You left out this essential piece of information. $ context --version mtx

Re: [NTG-context] zint barcode module on LMTX/MacOS

2021-09-08 Thread Henning Hraban Ramm via ntg-context
arcode[alternative=isbn, text=9783865419026, width=4cm] > \barcode[alternative=qr code, text={https://wiki.contextgarden.net}, > width=3cm] > \stoptext > I just checked on my Linux laptop with a new installation, and it worked exactly like this. Did you check wit

Re: [NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Hans Hagen via ntg-context
stuff is not "minimal", but I wanted to check if "multiply" works. should work in next upload (not today) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 G

[NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Henning Hraban Ramm via ntg-context
rt] \starttext \starttransparent[light]% \externalfigure[hacker]% \stoptransparent \setlayer[bg][ hoffset=5mm, voffset=5mm, ]{ \starttransparent[light]% \externalfigure[hacker]% \stoptransparent } \stoptext ''' The layer stuff is not "minimal", but I wante

[NTG-context] cld, postponing and images

2021-09-06 Thread Henning Hraban Ramm via ntg-context
I think I tangled myself... - I’ve a macro defined in Lua that uses fullpagemakeup and \setlayer to place an image on an empty page. - This macro is called from within a postponing environment. - I check figures.current().status.fullname if the image is found ... - and then read xsize and ysize

Re: [NTG-context] Use MetaPost to distort images?

2021-09-06 Thread Henning Hraban Ramm via ntg-context
egression, and \externalfilterbasefile does > not remove the file extension. So, the output is named mill.png-taped.png > rather than mill-taped.png. I'll look into it later Oh, thank you. I need to check in my LilyPond setup. Hraban _

Re: [NTG-context] Fuzzy lines

2021-09-03 Thread Henning Hraban Ramm via ntg-context
((postcontrol (t*arclength(p)) on p) randomshifted s) and ((precontrol ((t+1/sketch_segments)*arclength(p)) on p) randomshifted s) .. endfor Would it make sense to check if a point is an edge point (without curve controls)? Next question: Can I apply this to \framed and

Re: [NTG-context] problem with MkIV/TeXlive/TEXMFCACHE

2021-08-30 Thread luigi scarso via ntg-context
t; $> mtxrun --variables > > says > > resolvers | lists | TEXMFCACHE > > resolvers | lists | env: unset > > resolvers | lists | var: TEXMFCACHE > > resolvers | lists | exp: > > selfautoparent:texmf-var;home:.texlive2021/t

Re: [NTG-context] problem with MkIV/TeXlive/TEXMFCACHE

2021-08-30 Thread Rainer J.H. Brandt via ntg-context
lists | var: TEXMFCACHE > resolvers | lists | exp: > selfautoparent:texmf-var;home:.texlive2021/texmf-var > > and it's ok. So perhaps your selfautoparent it's not ok. I will check that. But, as I said, my texmf.cnf set

Re: [NTG-context] Test for displaying a header

2021-08-28 Thread Wolfgang Schuster via ntg-context
following pages) you have to options.     1. Check the current page when to header is placed which can be done with \doif{\pagenumber}{1}{...}     2. Disable the header on the first page (\setupheader[state=high]) and place your own title as a regular element in the running text. A case where

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-27 Thread Joey McCollum via ntg-context
the > third name, while in list entries, all names should be printed in full. > >>> > >>> I thought that the following settings would work: > >>> > >>> \definebtx > >>> [sbl:\s!list] > >>> [sbl] > >>> [\c!others

Re: [NTG-context] Test for displaying a header

2021-08-27 Thread Wolfgang Schuster via ntg-context
achieve but the check for the number of pages in your document is never used. The layout on the first page is different from the following pages but this is just how \definelayout work when you use a number as first argument. What you have to understand is that a setups-environment is just a

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-27 Thread Ágoston Volcz via ntg-context
, while in list entries, all names should be printed in full. >>> >>> I thought that the following settings would work: >>> >>> \definebtx >>> [sbl:\s!list] >>> [sbl] >>> [\c!otherstext=, >>> \c!etallimit=, >>&

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-26 Thread Joey McCollum via ntg-context
c!authorconversion=inverted] % TODO: need to print the first name >> inverted, with all subsequent names in normal order >> >> \definebtx >> [sbl:\s!cite] >> [sbl] >> [\c!otherstext={\btxspace\btxlabeltext{others}}, % use et al. for >> truncated author / ed

Re: [NTG-context] Indexing redux

2021-08-26 Thread Rik Kabel via ntg-context
lsounder][color=orange]    \define\seealsoindex\seeindex    \define\seealsounderindex\seeindex    \define\seeunderindex\seeindex    \setupinteraction [state=start]    \setupregister    [index][balance=no,check=no] %% seeindex entries may start on the same line as their head

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-26 Thread Joey McCollum via ntg-context
, % use et al. for > truncated author / editor list >\c!etallimit=3, % don't use et al. for 3 or fewer authors >\c!etaldisplay=3, % >\c!authorconversion=\v!normal] % by default, use normal name order for > in-text citations > > But only the "list" setting

Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 26.08.2021 um 19:06: Hi, Using this (almost what I'm trying to do) without success [...] \startsetups[header] \doifelse{\totalnumberofpages}{1} {\setupheadertexts[\setups{header}]}     {} \stopsetups This stores the page check in the s

[NTG-context] Different author rendering in entry citation vs. list

2021-08-25 Thread Joey McCollum via ntg-context
his might be because the setup for "entry" citations invokes \btxhandleciteentry and therefore uses "list" settings everywhere except where I check modes for conditional formatting. But is there a command or environment I can use to change authorconversion locally, based on the current mode

Re: [NTG-context] error in mtxrun.lua line 4548 in August 24th update

2021-08-25 Thread mf via ntg-context
pegmatch(stripper,three and concat({ two,three,... },"/") or two) 4547 end 4548 if lpegmatch(isnetwork,one) then At line 4545 you check only for one being an empty string, but it happens to be nil, so the program fails at line 4548. Patching line 4545 like this: 4545 if n

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Hans Hagen via ntg-context
On 8/22/2021 4:32 PM, Gavin wrote: On Aug 22, 2021, at 8:13 AM, Hans Hagen wrote: you haven't post the tex code that fails so no one can check it Hans usemodule[tikz] \usemodule[pgfplots] \usetikzlibrary[pgfplots.polar] \startTEXpage \starttikzpicture \startpola

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> On Aug 22, 2021, at 8:13 AM, Hans Hagen wrote: >> >>> you haven't post the tex code that fails so no one can check it >>> >>> Hans >> usemodule[tikz] >> \usemodule[pgfplots] >> \usetikzlibrary[pgfplots.polar] >> \startTEXpag

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Hans Hagen via ntg-context
ou haven't post the tex code that fails so no one can check it Hans usemodule[tikz] \usemodule[pgfplots] \usetikzlibrary[pgfplots.polar] \startTEXpage \starttikzpicture \startpolaraxis \addplot coordinates {(0,1) (90,1) (180,1) (270,1)}; \stoppolaraxis

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
now pgfplots doesn’t work at all. Before it >> didn’t work just for polar plots. The new error is > you haven't post the tex code that fails so no one can check it > > Hans usemodule[tikz] \usemodule[pgfplots] \usetikzlibrary[pgfplots.polar] \startTEXpage \starttikzpicture

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Hans Hagen via ntg-context
egacy installer", I'm not sure how Hans handles the modules for lmtx)? I just installed again and now pgfplots doesn’t work at all. Before it didn’t work just for polar plots. The new error is you haven't post the tex code that fails so no on

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Fabrice Couvreur via ntg-context
; > > [...] > > Setting values for \title is a way to avoid the chapter setup for the > table of contents etc. > but there is a way to set values which are used only when you process a > component file. > > To make it work one has to load the environment file after >

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Wolfgang Schuster via ntg-context
because you can use the *component mode to check whether the parent file is a product or a component. begin product \startproduct [*] \environment [...] \startfrontmatter ... \stopfrontmatter \startbodymatter \component [...] \stopbodymatter \stopproduct end product begin

Re: [NTG-context] Failure when loading variable font

2021-08-15 Thread Marcel Fabian Krüger via ntg-context
Hi, On Sat, Aug 14, 2021 at 09:05:45PM +0200, Hans Hagen wrote: > that's because since then we check for the cycle (otherwise artifacts) > > it probably relates to these extra points (the 'standard' is somewhat fuzzy > in that respect also because some fonts have them

Re: [NTG-context] Failure when loading variable font

2021-08-14 Thread Hans Hagen via ntg-context
/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:1193> (...tail calls...) fonts > otf loading > loading failed due to read error (This run used luametatex, but the same issue occurs when using luatex) The same font worked correctly with the ConTeXt version

Re: [NTG-context] new upload/issue with t-vim?

2021-08-13 Thread Aditya Mahajan via ntg-context
file.R} % specifically: {../sourcecodes/myfile.R} > > > > > > > > -- > > > > > > > > lua error > lua error on line 2 in file virtual://block.sourcecode.7: > > > > > > > > token call, execute: > > > ...ConTeXt/tex/texmf-c

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-10 Thread Michal Vlasák via ntg-context
didn't finish it before. And also supports only embedded files. Foxit Reader 11.0.1.49938 supports only the second and third way. It also starts playing the same audio multiple times if started multiple times (the same track plays multiple times over itself). All three file types are suppo

Re: [NTG-context] nil from TeX to Lua

2021-08-10 Thread Hans Hagen via ntg-context
lled macro, you could just assume str == "” actually means nil? indeed, just check for "" Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | T

Re: [NTG-context] new upload/issue with t-vim?

2021-08-08 Thread Hans Hagen via ntg-context
f-context/tex/context/base/mkiv/l-io.lua:70: bad argument #1 to '?' (string expected, got nil) i'll check it, i cleaned up some code but didn't realize that it was used in a module This was also reported on t-vim's github page: https://github.com/adityam/filter/pull/48.

Re: [NTG-context] new upload/issue with t-vim?

2021-08-08 Thread Aditya Mahajan via ntg-context
} > > > > -- > > > > lua error > lua error on line 2 in file virtual://block.sourcecode.7: > > > > token call, execute: > ...ConTeXt/tex/texmf-context/tex/context/base/mkiv/l-io.lua:70: bad argument > #1 to '?' (string expected, got nil) > i&#x

Re: [NTG-context] new upload/issue with t-vim?

2021-08-08 Thread Hans Hagen via ntg-context
pevimRfile{path_to_file.R} % specifically: {../sourcecodes/myfile.R} -- lua error > lua error on line 2 in file virtual://block.sourcecode.7: token call, execute: ...ConTeXt/tex/texmf-context/tex/context/base/mkiv/l-io.lua:70: bad argument #1 to '?' (string expected, got nil) i'll chec

Re: [NTG-context] new upload

2021-08-08 Thread Hans Hagen via ntg-context
treme situations. but you never know. How is this different from reading files from a zip file? no duplicates, so in my use case .8 G instead of 1.8 G, with selective compression (no need to zip jpg or png), probably also bit more memory friendly and faster but i didn't check that (it's

Re: [NTG-context] img.scan in lmtx?

2021-08-05 Thread Henning Hraban Ramm via ntg-context
#x27;img')", so I guess this got renamed or moved? >>>>> Just the high level command: >>>>> >>>>> figures.getinfo(name,page) >>> >>> local t = figures.getinfo("name.pdf",10) -- optional page number >>

Re: [NTG-context] img.scan in lmtx?

2021-08-05 Thread Hans Hagen via ntg-context
. Since I don’t know what the function is supposed to return, I thought I’ll check: local image = figures.getinfo(imgname,1) print("TEST", image, #image) for k, v in ipairs(image) do print("TEST", oldname, k, v) end but that gives only: TESTtable: 0x7fb

Re: [NTG-context] img.scan in lmtx?

2021-08-05 Thread Henning Hraban Ramm via ntg-context
name.pdf",10) -- optional page number Finally coming back to this. Since I don’t know what the function is supposed to return, I thought I’ll check: local image = figures.getinfo(imgname,1) print("TEST", image, #image) for k, v in ipairs(image) do print("TEST&q

Re: [NTG-context] How to check if buffer or block has content

2021-08-03 Thread Benjamin Buchmuller via ntg-context
Wow, that's powerful! I'll add the wiki entries later tonight. Thanks a lot! > On Aug 3, 2021, at 17:02, Hans Hagen wrote: > > On 8/2/2021 8:54 PM, Benjamin Buchmuller via ntg-context wrote: >> That's great, I wikified a Note for testing if a buffer exists or has >> content (using the \getbu

Re: [NTG-context] How to check if buffer or block has content

2021-08-03 Thread Hans Hagen via ntg-context
On 8/2/2021 8:54 PM, Benjamin Buchmuller via ntg-context wrote: That's great, I wikified a Note for testing if a buffer exists or has content (using the \getbuffer[…] approach for the moment). If I was asked, I'd opt for \doifelseemptybuffer (doifemptyelse?) since one could think of similar co

Re: [NTG-context] How to check if buffer or block has content

2021-08-03 Thread Hans Hagen via ntg-context
On 8/2/2021 8:54 PM, Benjamin Buchmuller via ntg-context wrote: That's great, I wikified a Note for testing if a buffer exists or has content (using the \getbuffer[…] approach for the moment). If I was asked, I'd opt for \doifelseemptybuffer (doifemptyelse?) since one could think of similar co

Re: [NTG-context] How to check if buffer or block has content

2021-08-03 Thread Hans Hagen via ntg-context
On 8/2/2021 6:31 PM, Wolfgang Schuster via ntg-context wrote: \doifelsebufferempty i go for that one (mkiv and lmtx0 ; btw, \doifelsebuffer is expandable but the empty test not) Hans -

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Benjamin Buchmuller via ntg-context
That's great, I wikified a Note for testing if a buffer exists or has content (using the \getbuffer[…] approach for the moment). If I was asked, I'd opt for \doifelseemptybuffer (doifemptyelse?) since one could think of similar commands that test for empty "objects". Is there an option for tes

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Wolfgang Schuster via ntg-context
Hans Hagen via ntg-context schrieb am 02.08.2021 um 17:17: On 8/2/2021 4:43 PM, Aditya Mahajan via ntg-context wrote: On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote: Hi, How can I check if a buffer or block has content (or is empty) before a \useblocks or \getbuffer statement

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Wolfgang Schuster via ntg-context
Hans van der Meer via ntg-context schrieb am 02.08.2021 um 18:21: And in pathological cases where even this does not work (as I encountered a few days ago): \setbox\scratchbox=\vboxx{content}\ifdim\wd\scratchbox>\zeropoint .. \else .. \fi This is how \doiftext works but it uses a \hbox. Wolfg

<    2   3   4   5   6   7   8   9   10   11   >