Re: [NTG-context] upload

2021-10-21 Thread Pablo Rodriguez via ntg-context
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-context/2021/10

[NTG-context] upload

2021-10-21 Thread Hans Hagen via ntg-context
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 (as for sure i messed up something). Hans

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, i

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 needs to r

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 '/home/monty/conte

Re: [NTG-context] new upload

2021-10-14 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 rendering addtopage

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

2021-10-12 Thread Hans Hagen via ntg-context
and 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
e 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 addition to the \removepunctuation >>

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
  {\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 printing it. I wo

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

2021-10-10 Thread Joey McCollum via ntg-context
d. > 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. > > \star

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

2021-10-10 Thread noib3 via ntg-context
, ] \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', the first one in red

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

2021-10-10 Thread Wolfgang Schuster via ntg-context
hese 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. \startbtxrenderingdefinitions[myspec] \pro

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

2021-10-10 Thread Hans Hagen via ntg-context
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#1#2{% \removeunwa

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

2021-10-09 Thread Joey McCollum via ntg-context
hat 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, I still hav

Re: [NTG-context] running tikz

2021-10-01 Thread Hans Hagen via ntg-context
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 features are not supported

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
ich 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 discussing features,

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

2021-09-27 Thread Hans Hagen via ntg-context
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 installed the late

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 prepared. Hans

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

2021-09-21 Thread Denis Maier via ntg-context
pport 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 \setupbtx[sbl:

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

2021-09-21 Thread Joey McCollum via ntg-context
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] Ibi

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

2021-09-21 Thread Denis Maier via ntg-context
An: 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-text

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 separately

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
ot;, but I wanted to check if "multiply" works. should work in next upload (not today) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

[NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Henning Hraban Ramm via ntg-context
\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 wanted to check if "multiply&q

[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
sion, 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
gt; mtxrun --variables > > says > > resolvers | lists | TEXMFCACHE > > resolvers | lists | env: unset > > resolvers | lists | var: TEXMFCACHE > > resolvers | lists | exp: > > selfautoparent:texmf-var;home:.texlive2021/tex

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

2021-08-30 Thread Rainer J.H. Brandt via ntg-context
| 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 sets TEXMFCACHE to

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

2021-08-28 Thread Wolfgang Schuster via ntg-context
(but not on the 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
hould be printed in full. > >>> > >>> I thought that the following settings would work: > >>> > >>> \definebtx > >>> [sbl:\s!list] > >>> [sbl] > >>> [\c!otherstext=, > >>> \c!etallimit=, > >>&

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

2021-08-27 Thread Wolfgang Schuster via ntg-context
to 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

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

2021-08-27 Thread Ágoston Volcz via ntg-context
. >>> >>> I thought that the following settings would work: >>> >>> \definebtx >>> [sbl:\s!list] >>> [sbl] >>> [\c!otherstext=, >>> \c!etallimit=, >>> \c!etaldisplay=, >>> \c!etaloption=, >

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

2021-08-26 Thread Joey McCollum via ntg-context
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 / editor list >>\c!etallimit=3, % don't u

Re: [NTG-context] Indexing redux

2021-08-26 Thread Rik Kabel via ntg-context
der][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 entry

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

2021-08-26 Thread Joey McCollum via ntg-context
/ 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" settings seem to be used. I suspect this might be &g

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 setups

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

2021-08-25 Thread Joey McCollum via ntg-context
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, in the helper methods I've d

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

2021-08-25 Thread mf via ntg-context
nd 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 not one or one=="&quo

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 \startpolaraxis

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] >> \startTEXpage >

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

2021-08-22 Thread Hans Hagen via ntg-context
ven'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 \stopt

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

2021-08-22 Thread Gavin via ntg-context
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 \star

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 one can chec

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
gt; > > [...] > > 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 > \st

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 and some d

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

2021-08-14 Thread Hans Hagen via ntg-context
gt; 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 from 2021-05-20. that's because since then we check for the cycle (otherwise artifacts) it probably relates to these extra point

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

2021-08-13 Thread Aditya Mahajan via ntg-context
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

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-10 Thread Michal Vlasák via ntg-context
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 supported, though I only check embedded a

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
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. I basically use jobs.file.run to ca

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'll check it, i cleaned

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

2021-08-08 Thread Hans Hagen via ntg-context
{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 check it, i cleaned up some c

Re: [NTG-context] new upload

2021-08-08 Thread Hans Hagen via ntg-context
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 a side track

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

2021-08-05 Thread Henning Hraban Ramm via ntg-context
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 >> Finally co

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

2021-08-05 Thread Hans Hagen via ntg-context
ce 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: 0x7fbd4e4e1320

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

2021-08-05 Thread Henning Hraban Ramm via ntg-context
uot;,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", oldn

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

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

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

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

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.

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

2021-08-02 Thread Hans van der Meer via ntg-context
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 Hans Hagen via ntg-context
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? I would like to typeset a headline only if the buffer

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

2021-08-02 Thread Aditya Mahajan via ntg-context
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? > > I would like to typeset a headline only if the buffer/block has been used in >

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

2021-08-02 Thread Benjamin Buchmuller via ntg-context
Hi, How can I check if a buffer or block has content (or is empty) before a \useblocks or \getbuffer statement? I would like to typeset a headline only if the buffer/block has been used in a particular section and want to avoid headlines with empty sections. Thanks! Benjamin

Re: [NTG-context] multimedia PDF in ConTeXt

2021-07-31 Thread Pablo Rodriguez via ntg-context
currenntly the dimensions can't be zero. Many thanks for your code update, Michal. I’m extremely interested in investigating the possibilities this opens. But I’m afraid that I will have other things to do first. It will take me months to come back to this again. > Hans, I would omit the

Re: [NTG-context] multimedia PDF in ConTeXt

2021-07-30 Thread Michal Vlasák via ntg-context
e as granted. But currenntly the dimensions can't be zero. Hans, I would omit the check for 0 dimensions of rendering window (as already noted in the source, it is useful for sound). See patch below. Michal Vlasák --- a/tex/context/base/mkxl/lpdf-wid.lmt +++ b/tex/context/base/mkxl/lpdf-wid.l

Re: [NTG-context] Different Styles of Typing

2021-07-29 Thread Hans Hagen via ntg-context
On 7/28/2021 10:12 PM, Wolfgang Schuster wrote: 2. Rather than adding a additional argument to \starttyping etc. provide a \startnamedtyping with a mandatory argument with the name of the instance. ok, but i do need to check the before/after wrt setup To save a few lines of code a flag (e.g

Re: [NTG-context] ligature exceptions

2021-07-28 Thread Hans Hagen via ntg-context
trees[last] = list return data end) lists[v_reset].attribute = unsetvalue -- so we discard 0 -- todo: glue kern attr local function add(root,word,replacement) local processor, replacement = splitprocessor(replacement,true) -- no check replacement = lpegmatch(stripper,replacement) or replace

Re: [NTG-context] Adobe Acrobat accessibility criteria

2021-07-27 Thread Connor P. Jackson via ntg-context
for many organizations, passing the > > Acrobat accessibility checker is a prerequisite, so it seems worthwhile > > to me to make ConTeXt capable of it. > > Most fo this is rather trivial but we need examples (mwe) and expected > result (in only have an old acrobat x pro and the lat

Re: [NTG-context] Multimedia, PDF and ConTeXt

2021-07-27 Thread Hans Hagen via ntg-context
On 7/27/2021 1:20 PM, Michal Vlasák wrote: I thought that recent Edge versions used Chrome's PDFium, as you say with some additions (like drawing). I would have to double check that. yes but i think with their own additions (not sure about the pdf stuff) i do notice differences in printing

Re: [NTG-context] Multimedia, PDF and ConTeXt

2021-07-27 Thread Michal Vlasák via ntg-context
e can also > confuse viewers I thought that recent Edge versions used Chrome's PDFium, as you say with some additions (like drawing). I would have to double check that. From what I tried, from the tested viewers only Acrobat seemed to do something with the double sided directive, if

Re: [NTG-context] Adobe Acrobat accessibility criteria

2021-07-27 Thread Hans Hagen via ntg-context
orthwhile to me to make ConTeXt capable of it. Most fo this is rather trivial but we need examples (mwe) and expected result (in only have an old acrobat x pro and the latest reader, so maybe i can'

Re: [NTG-context] Multimedia, PDF and ConTeXt

2021-07-27 Thread Hans Hagen via ntg-context
a problem the command line program qpdf is one of the best programs to check (when luigi sand i were checking luatex pdf issues we used qpdf and mupdf mostly) Now to the different mechanisms: 1) Sound objects - First appeared in PDF 1.2 (1996), but had since been deprecated (PDF 1.5

[NTG-context] Multimedia, PDF and ConTeXt

2021-07-26 Thread Michal Vlasák via ntg-context
xit both use Windows Media Player for playing the video. Both support controls, but behave differently -- Acrobat displays the controls outside of the multimedia annotation, Foxit within... As if it wasn't enough there is other trouble with playing multimedia in Acrobat Reader and Foxit Reader. They n

Re: [NTG-context] Testing for LMTX: \ifmode

2021-07-25 Thread Axel Kielhorn
> Am 25.07.2021 um 12:17 schrieb Hans Hagen : > > On 7/25/2021 9:46 AM, Wolfgang Schuster wrote: > >> There is no mode value for LMTX, only MkIV is set. To check for LMTX >> you have to use \ifcase\contextlmtxmode but an additional for lmtx >> would be useful. &

Re: [NTG-context] Testing for LMTX: \ifmode

2021-07-25 Thread Hans Hagen
On 7/25/2021 9:46 AM, Wolfgang Schuster wrote: There is no mode value for LMTX, only MkIV is set. To check for LMTX you have to use \ifcase\contextlmtxmode but an additional for lmtx would be useful. i'll add an lmtx mode

Re: [NTG-context] Testing for LMTX: \ifmode

2021-07-25 Thread Wolfgang Schuster
{*lmtx}{lmtx} I always get „mkiv“. I’ve tried - pre LMTX context - LMTX --luatex - LMTX (2021.07.23) What is the recommended way to detect LMTX? There is no mode value for LMTX, only MkIV is set. To check for LMTX you have to use \ifcase\contextlmtxmode but an additional for lmtx would be useful

Re: [NTG-context] Percentage stacked bars chart

2021-07-24 Thread Hans Hagen
={\citizenshipdatatwo}, xlabels={\yearlabelsone}] \stoptext you need to put the modules under tex/texmf-modules/tex/context/third/mkiv/statcharts or so, and run 'mtxrun --generate' to updat ethe file database (i didn't check of there was a module package on the garden) Hans

Re: [NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
erpage 20, subpage 20 pages > flushing realpage 21, userpage 21, subpage 21 ... I stopped counting at 200, Cheers, Michael On Thu, Jul 22, 2021 at 1:14 PM Henning Hraban Ramm wrote: > columnsets need \setuplayout[grid=yes] – did you check that? > > HR > > > Am 22.07

Re: [NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Henning Hraban Ramm
columnsets need \setuplayout[grid=yes] – did you check that? HR > Am 22.07.2021 um 12:42 schrieb Michael Guravage : > > No, I'm afraid not. I have been combining the various table and column > environments, all without success - yet. > > Michael > > > > On

[NTG-context] \xmlrefatt as node?

2021-07-19 Thread Pablo Rodriguez
}{ancestor::div[@class='section level1 hidden']}{id}} {yes}{no}\blank \stopxmlsetups \starttext \xmlprocessbuffer{main}{test}{} \stoptext I need to check whether the link is inside the same div or not. I know how to obtain the destination identifier (\xmlreffatt{#1}{href} and I

Re: [NTG-context] Moving the old book-structure to a recent ConTeXt

2021-07-16 Thread Gerben Wierda
many changes >>> since MkII. >> >> So, just for confirmation that I understand this correctly, I need to simply >> change the command from texexec to context --luatex and fix all sett

Re: [NTG-context] Moving the old book-structure to a recent ConTeXt

2021-07-15 Thread Henning Hraban Ramm
>> You will probably need to update several setups, there were many changes >> since MkII. > > So, just for confirmation that I understand this correctly, I need to simply > change the command from texexec to context --luatex and fix all settings in > my setup unti

Re: [NTG-context] LMTX: different output if dots are used in the file name

2021-07-08 Thread Hans Hagen
. According to my tests LMTX doesn't work like you describe it should. i'll check it (in retrospect tex could better have enforced a suffix and not fallback on .tex but i suppose the usage scenarios were hard to foresee let alone the restart-the-program-time-penalty when you forgot to add .tex) Hans

Re: [NTG-context] LMTX: different output if dots are used in the file name

2021-07-08 Thread Hans Hagen
On 7/7/2021 10:13 PM, Marco Patzer wrote: But maybe Hans can chime in and clarify. I have to check it but syffixes and tex are kind of special. It has nothing to do with operating systems (sorry for those who love to bash windows for it). Personally I always use a suffix and don't look

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