[NTG-context] Re: Wiki Down?

2023-07-04 Thread Ramkumar KB
Hi,

I think the Wiki is still down? I cannot reach it - thru the browser or
thru the traceroute tool.

best,
Ramkumar

On Fri, Jun 16, 2023 at 8:24 PM Keith McKay via ntg-context <
ntg-context@ntg.nl> wrote:

> All good now Taco.
>
> Thanks for the advice.
>
> Keith McKay
>
> On 16/06/2023 12:33, Taco Hoekwater wrote:
> > Hi Keith,
> >
> >> On 16 Jun 2023, at 13:04, Keith McKay via ntg-context <
> ntg-context@ntg.nl> wrote:
> >>
> >> I am getting "safari can't find server"  for the wiki so I checked on
> isitdownrightnow.com and it confirms it is down.
> > Must have been some transport issue. The server is up and has not been
> down today at all. If it keeps appearing to be down, try a traceroute tool
> to see where the problem is, e.g. https://ping.eu/traceroute/
> >
> > Best wishes,
> > Taco
> >
> > —
> > Taco Hoekwater  E: t...@bittext.nl
> > genderfluid (all pronouns)
> >
> >
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

Re: [NTG-context] New VSCode extenstion using ConTeXt Language server

2022-11-09 Thread Ramkumar KB via ntg-context
Denis,

Thanks for the feedback.

No, you are not missing anything. The ConTeXt command list comes from a
file that Hans & Hraban maintain - to create the PDF version of the ConTeXt
commands guide that is available with the distribution -
https://wiki.contextgarden.net/Documentation (we convert that file into a
Typescript object and then use it in the Language Server).

Yes, this is an obvious improvement point that you have highlighted - I
will work with Hans & Hraban to improve it.

Best,

On Wed, Nov 9, 2022 at 8:36 PM  wrote:

> Thanks. I’ve had a quick look.
>
> One thing I’ve found is that it supports \start... commands, yet in some
> cases the corresponding \stop... commands seem to be missing.
>
>
>
> Am I missing something ?
>
>
>
> Best,
>
> Denis
>
>
>
> *Von:* ntg-context  *Im Auftrag von *Ramkumar
> KB via ntg-context
> *Gesendet:* Dienstag, 8. November 2022 15:20
> *An:* mailing list for ConTeXt users 
> *Cc:* Ramkumar KB 
> *Betreff:* [NTG-context] New VSCode extenstion using ConTeXt Language
> server
>
>
>
> Hello All,
>
>
>
> I have published the new VSCode Extension for ConTeXt, that I presented
> during the 2022 ConTeXt meeting -
>
>
>
> https://wiki.contextgarden.net/VSCode
>
>
>
> You can install it manually in the VSCode (using the "Install from
> VSIX..." option).
>
> Documentation (for now) -
> https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf
>
>
>
> This supports ConTeXt markup and for any Lua code (within \startluacode &
> \stopluacode) it re-directs to the Lua Language Server (from Sumneko -
> https://github.com/sumneko/lua-language-server )
>
>
>
> To Do -
>
>1. Make the source code open-source
>2. Add new features (like Hover & Tooltip)
>3. Work with Taco to add MetaPost Language Server (this could be
>challenging and interesting)
>
> Do give this a try and give your feedback. Note that this does not contain
> *all* the macros but covers the vast majority of the ConTeXt commands.
>
>
>
> Thank you,
>
>
>
> best regards
>
> Ramkumar
>
>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] New VSCode extenstion using ConTeXt Language server

2022-11-09 Thread Ramkumar KB via ntg-context
Floris,
Can you please try with VSCode first in Ubuntu and see if this works?

We have never tried with Codium (unfortunately) and therefore not sure how
the Extension sytem works in Codium.

Best.

On Wed, Nov 9, 2022 at 12:03 AM Floris van Manen via ntg-context <
ntg-context@ntg.nl> wrote:

> I cannot get it (vsix) to work on linux ubuntu with codium (the
> telematic-free version)
> There is probably a reason to it...
>
>
>
> On 08/11/2022 15:20, Ramkumar KB via ntg-context wrote:
> > Subject:
> > [NTG-context] New VSCode extenstion using ConTeXt Language server
> > From:
> > Ramkumar KB via ntg-context 
> > Date:
> > 08/11/2022, 15:20
> >
> > To:
> > mailing list for ConTeXt users 
> > CC:
> > Ramkumar KB 
> >
> >
> > Hello All,
> >
> > I have published the new VSCode Extension for ConTeXt, that I presented
> > during the 2022 ConTeXt meeting -
> >
> > https://wiki.contextgarden.net/VSCode
> > <https://wiki.contextgarden.net/VSCode>
> >
> > You can install it manually in the VSCode (using the "Install from
> > VSIX..." option).
> > Documentation (for now) -
> > https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf
> > <https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf
> >
> >
> > This supports ConTeXt markup and for any Lua code (within
> > \startluacode & \stopluacode) it re-directs to the Lua Language Server
> > (from Sumneko - https://github.com/sumneko/lua-language-server
> > <https://github.com/sumneko/lua-language-server> )
> >
> > To Do -
> >
> >  1. Make the source code open-source
> >  2. Add new features (like Hover & Tooltip)
> >  3. Work with Taco to add MetaPost Language Server (this could be
> > challenging and interesting)
> >
> > Do give this a try and give your feedback. Note that this does not
> > contain *all* the macros but covers the vast majority of the ConTeXt
> > commands.
> >
> > Thank you,
> >
> > best regards
> > Ramkumar
> >
> >
> >
> ___
> > If your question is of interest to others as well, please add an entry
> to the Wiki!
> >
> > maillist :ntg-context@ntg.nl  /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  :https://www.pragma-ade.nl  /http://context.aanhet.net
> > archive  :https://bitbucket.org/phg/context-mirror/commits/
> > wiki :https://contextgarden.net
> >
> ___
> >
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] New VSCode extenstion using ConTeXt Language server

2022-11-08 Thread Ramkumar KB via ntg-context
Hello All,

I have published the new VSCode Extension for ConTeXt, that I presented
during the 2022 ConTeXt meeting -

https://wiki.contextgarden.net/VSCode

You can install it manually in the VSCode (using the "Install from VSIX..."
option).
Documentation (for now) -
https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf

This supports ConTeXt markup and for any Lua code (within \startluacode &
\stopluacode) it re-directs to the Lua Language Server (from Sumneko -
https://github.com/sumneko/lua-language-server )

To Do -

   1. Make the source code open-source
   2. Add new features (like Hover & Tooltip)
   3. Work with Taco to add MetaPost Language Server (this could be
   challenging and interesting)

Do give this a try and give your feedback. Note that this does not contain
*all* the macros but covers the vast majority of the ConTeXt commands.

Thank you,

best regards
Ramkumar
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Wishing the ConTeXt community a very happy 2022!

2021-12-31 Thread Ramkumar KB via ntg-context
To Hans and the ConTeXt community -

Wishing a very healthy, cheerful and (of course, more ConTeXting) in 2022 !

best regards,
Ramkumar
___
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] x86-64-amd-linux binary?

2021-12-16 Thread Ramkumar KB via ntg-context
Hans,

Thank you. Just to clarify, in my current installation - context and mtxrun
are already symlinks to the luametatex.

So all I need to do is replace the luametatex binay (dl from the build
server - debian9 build)? I also notice the luatex binary - I just leave it
as is?

best regards,
Ramkumar

On Thu, Dec 16, 2021 at 5:52 PM Hans Hagen  wrote:

> On 12/16/2021 1:01 PM, Ramkumar KB via ntg-context wrote:
> > Hello All,
> >
> > If I have to just upgrade my context version installed in my linux VM
> > (x88-64 - amd - redhat) - is debain9 the correct package?
> >
> > https://build.contextgarden.net/#/ <https://build.contextgarden.net/#/>
> > - So I just replace the luametatex binary after download the binary from
> > the build server? Is this correct?
> keep in mind that context code and bin have to be in sync (at least as
> long as we move on)
>
> basically three bins: luametatex, context and mtxrun but the last two
> can be symlinks to luametatex
>
> 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
___


[NTG-context] x86-64-amd-linux binary?

2021-12-16 Thread Ramkumar KB via ntg-context
Hello All,

If I have to just upgrade my context version installed in my linux VM
(x88-64 - amd - redhat) - is debain9 the correct package?

https://build.contextgarden.net/#/ - So I just replace the luametatex
binary after download the binary from the build server? Is this correct?

Thank you,

best regards,
Ramkumar
___
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] Any initial thoughts on luau?

2021-11-08 Thread Ramkumar KB via ntg-context
Hans / Michal,

Fascinating exchange of thoughts. Thank you so much for sharing.

On the back of my mind, probably a bittersweet moment by Roblox -
having built its foundations with Lua and deciding to fork / rewrite it...

best regards,
Ramkumar

On Sun, Nov 7, 2021 at 2:39 AM Hans Hagen via ntg-context <
ntg-context@ntg.nl> wrote:

> On 11/6/2021 5:19 PM, Michal Vlasák wrote:
> > On Fri Nov 5, 2021 at 9:14 PM CET, Hans Hagen via ntg-context wrote:
> >> On 11/5/2021 6:23 PM, Ramkumar KB via ntg-context wrote:
> >>> Hello,
> >>>
> >>> Yesterday, Roblox announced - Luau - https://luau-lang.org/why
> >>> <https://luau-lang.org/why> - mainly adding linting and
> >>> type-checking features.
> >>>
> >>> Being compatible with Lua 5.1 is probably a bummer but nonetheless
> >>> would be interesting to hear about this from this community.
> >
> >> for sure i need more than an email to give a real answer (and some can
> >> be read between the lines of the history documents / articles that we
> >> ship); that said:
> >>
> >> the main reasons for choosing lua for luatex has been that it is
> >> relatively small, has no dependencies, doesn't need tons of libraries
> >> to make it useful, is made for embeded usage, evolves in a proper
> >> academic setting, has long-term dedicated (nice) developers, is not
> >> part of some religious programming language war/competition, reminds
> >> me (in a positive way of pascal and modula), is pretty fast, ... so,
> >> no regrest and no need for something else
> >>
> >> [...]
> >>
> >> to start with typing: i suppose that a more explicit integer / float
> >> separation can give better performance, although on modern cpu's one
> >> can wonder (personally i don't see the current mix of integer / float
> >> as a benefit over all numbers being floats - which had some charm due
> >> to the consistency - but who an i to complain; at least we now have
> >> bitwise operators (for a specific application like roblox it makes
> >> sense but using a dedicated / patched / extended lua machinery in
> >> luatex doesn't); there are articles by the lua authors about typing
> >> but these are behind publisher firewalls
> >>
> >> [...]
> >>
> >> jitting also costs time and for a single pass process like tex there
> >> is no gain (we established that long ago alreadY); the only reason why
> >> luajittex is faster than luatex for a tex run is that the vm is faster
> >> due to some limitations (that one can actually hit but in context we
> >> got around it) ... jitting also is cpu dependent and therefore more
> >> fragile futurw wise (more and more complex code too)
> >>
> >> [...]
> >>
> >> if better performance is an objective: there are probably spots in the
> >> current code that are candidates and one can see from updates that
> >> occasionally optimizations happen (keep in mind that lua has to run on
> >> a wide range of hardware: small embedded to fast single core)
> >>
> >> so, I'm pretty okay with lua as it is now (but any influx from spin
> >> off languages / engines can be interesting, but i think the authors
> >> are aware of all that) ... and ... who knows what (side effects)
> >> pallene will bring
> >>
> >> (also about performance: i know pretty well how to write fast lua code
> >> but no one ever comes around asking so that means everyone is
> >> satisfied)
> >>
> >> Hans
> >
> > After Ramkumar's initial e-mail, I reread some of the manuals describing
> > Lua 5.1 / 5. 2 / 5.3 / 5.4 / LuaJIT evolution and evaluation.
> >
> > As I learned more about Lua and LuaTeX I realized that they share (or
> > contrast in) some core concepts (e.g. TeX's hash table vs Lua tables,
> > LuaTeX's sparse arrays vs Lua tables, custom allocation strategies -
> > huge mem array and custom management vs garbage collection).
> >
> > Recently I discovered some of the things LuaJIT does (and it is in many
> > ways incredible piece of software).
> >
> > So the idea of implementing LuaTeX in LuaJIT struck me. The reason why
> > LuaJIT doesn't bring that many benefits for LuaTeX specifically (apart
> > from the faster interpeter, is that LuaTeX heavily uses Lua C API (which
> > is AFAIK slow in LuaJIT since it can't (couldn't?)be JIT compiled and
> > there is the overhead of the API itself - the stack nature). Wile FFI in
> > LuaJIT is 

[NTG-context] Any initial thoughts on luau?

2021-11-05 Thread Ramkumar KB via ntg-context
Hello,

Yesterday, Roblox announced - Luau - https://luau-lang.org/why - mainly
adding linting and type-checking features.

Being compatible with Lua 5.1 is probably a bummer but nonetheless would be
interesting to hear about this from this community.

Thank you.

best regards,
Ramkumar
___
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] Indentation inside \framed won't go away

2021-10-21 Thread Ramkumar KB via ntg-context
FV / Massi / Hans,

Thank you so much for the valuable tips.

I will find a suitable place in the Wiki and add this information / nugget.

best regards,
Ramkumar

On Thu, Oct 21, 2021 at 5:10 PM Hans Hagen  wrote:

> On 10/21/2021 10:32 AM, Ramkumar KB via ntg-context wrote:
> > Hello,
> >
> > I have this nagging issue of indentation (in the 1st line) showing up
> > inside \framed in spite of all the commands to skip indentation (see
> > attached PDF).
> >
> > It appears that *\setupindenting[no]* is not playing any role here and
> > some other parameter is overriding  this.
> >
> > Any tips would be appreciated.
> >
> > best regards,
> > Ramkumar
> >
> > \definepapersize[a4-portrait][A4][A4]
> > \setuppapersize[a4-portrait]
> >
> \setuplayout[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]
> >
> > \starttext
> >
> > \offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
> > {\framed[frame=on,offset=none,align=flushleft]
> > {
> > % \startparagraph[align=high]
> > \setupindenting[no]
> > Chief Vitalstatistix\\
> > Getafix\\
> > Dogmatix\\
> > Asterix\\
> > Obelix\\
> > }
> > }
> > \stoptext
> you get what you ask for: spaces
>
> {\framed[frame=on,offset=none,align=flushleft]
> {%
> \setupindenting[no]%
> Chief Vitalstatistix\\
>
> or
>
> \offset[x=11mm,y=23mm] \bgroup
>  \framed[frame=on,offset=none,align=flushleft] \bgroup
>  \setupindenting[no]%
>  Chief Vitalstatistix\\
>  Getafix\\
>  Dogmatix\\
>  Asterix\\
>  Obelix\\
>  \egroup
> \egroup
>
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Indentation inside \framed won't go away

2021-10-21 Thread Ramkumar KB via ntg-context
Hello,

I have this nagging issue of indentation (in the 1st line) showing up
inside \framed in spite of all the commands to skip indentation (see
attached PDF).

It appears that *\setupindenting[no]* is not playing any role here and some
other parameter is overriding  this.

Any tips would be appreciated.

best regards,
Ramkumar

\definepapersize[a4-portrait][A4][A4]
\setuppapersize[a4-portrait]
\setuplayout
[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]

\starttext

\offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
{\framed[frame=on,offset=none,align=flushleft]
{
% \startparagraph[align=high]
\setupindenting[no]
Chief Vitalstatistix\\
Getafix\\
Dogmatix\\
Asterix\\
Obelix\\
}
}
\stoptext


indent_in_framed.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reading ConTeXt metadata values into Lua

2021-10-17 Thread Ramkumar KB via ntg-context
Hans / Wolfgang,

Thank you for your quick feedback and the tips. Yes, this works for now.

In general, I will try to avoid going into such "deep-end" APIs (at least
for now, until such time I read all the manuals in depth!). IMHO, the
standard ConTeXt system is itself quite powerful for 98% of the Typesetting
usecases.

best regards,
Ramkumar


On Sat, Oct 16, 2021 at 4:59 PM Hans Hagen via ntg-context <
ntg-context@ntg.nl> wrote:

> On 10/16/2021 10:33 AM, Wolfgang Schuster via ntg-context wrote:
> > Ramkumar KB via ntg-context schrieb am 16.10.2021 um 06:00:
> >> Hello All,
> >>
> >> I was trying to read the value of '\totalnumberofpages' into lua to do
> >> something with it. As an example, see below.
> >>
> >> Now, as I understand it, my example would not work as TeX gets the
> >> first go at this and therefore the variable 'pages' is the string
> >> '\totalnumberofpages' and not the actual value itself. And Lua cannot
> >> process this "calculation".
> >>
> >> I tried to go thru the manual - *cld-mkiv.pdf *- in the distro but
> >> could not catch on how to read a metadata value (not print). I am sure
> >> that I am missing a small trick somewhere (or is it something more
> >> involved?).
> >>
> >> \startluacode
> >> function myFancyCalculations(pages)
> >>   -- some fancy stuff but as an example
> >> local myCal = tonumber(pages) + 1
> >> return myCal
> >> \stopluacode
> >> \starttext
> >>
> >> \blah
> >>
> >> \ctxlua{context(myFancyCalculations("\\totalnumberofpages"))}
> >>
> >> \stoptext
> >
> > Everything gets easier when you use the Lua functions to access the
> > counter values but be aware the values can be wrong when you're at a
> > page break.
> >
> > \startbuffer[pagenumber]
> > \startluacode
> > context.starttabulate()
> >  context.NC()
> >  context("Current page")
> >  context.EQ()
> >  context(structures.counters.get("realpage",1,"number"))
> >  context.NC()
> >  context.NR()
> >  context.NC()
> >  context("Last page")
> >  context.EQ()
> >  context(structures.counters.get("realpage",1,"last"))
> >  context.NC()
> >  context.NR()
> > context.stoptabulate()
> > \stopluacode
> > \stopbuffer
> >
> > \starttext
> >
> > \dorecurse
> >  {\randomnumber{5}{10}}
> >  {\getbuffer[pagenumber]
> >   \page}
> >
> > \stoptext
>
> As addendum ... The problem in general with macros is that one doesn't
> really knows by looking at the name what actually happens when it
> expands, which can be a lot. Now, because \totalnumberofpages is
> supposed to 'return' a number and not typeset something styled (which
> itself involved macro expansion) you can actually do this:
>
> \startluacode
> local n = tokens.getters.macro("totalnumberofpages",true)
> print(">>>",type(n),n)
> \stopluacode
>
> but beware of the fact that you actually get back a string:
>
> \startluacode
> local n = tokens.getters.macro("totalnumberofpages",true)
> print(">>>",type(n),n)
> local n = tonumber(n)
> print(">>>",type(n),n)
> \stopluacode
>
> etc etc
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Reading ConTeXt metadata values into Lua

2021-10-15 Thread Ramkumar KB via ntg-context
Hello All,

I was trying to read the value of '\totalnumberofpages' into lua to do
something with it. As an example, see below.

Now, as I understand it, my example would not work as TeX gets the first go
at this and therefore the variable 'pages' is the string
'\totalnumberofpages' and not the actual value itself. And Lua cannot
process this "calculation".

I tried to go thru the manual -  *cld-mkiv.pdf  *- in the distro but could
not catch on how to read a metadata value (not print). I am sure that I am
missing a small trick somewhere (or is it something more involved?).

\startluacode
function myFancyCalculations(pages)
  -- some fancy stuff but as an example
local myCal = tonumber(pages) + 1
return myCal
\stopluacode

\starttext

\blah

\ctxlua{context(myFancyCalculations("\\totalnumberofpages"))}

\stoptext

Thank you in advance for any tips.

best regards,
Ramkumar
___
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] TLS Certificate Expired for the Wiki

2021-10-12 Thread Ramkumar KB via ntg-context
Hello,

The TLS certificate for the Context wiki expired yesterday - valid only
upto 12-October-2021.

Just an alert as Chrome now pops up the "Unsafe" alerts.

Thank you,

best regards,
Ramkumar
___
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] Does the ConTeXt distro come with a PDFViewer?

2021-10-10 Thread Ramkumar KB via ntg-context
All,

Thanks for the tips. SumatraPDF worked well as it updates as the underlying
PDF is refreshed by ConTeXt - which makes the dev-preview cycle really
quick.

I will compile all the tips in this thread into the Wiki.

best regards,
Ramkumar

On Sun, Oct 10, 2021 at 12:53 AM Henri Menke via ntg-context <
ntg-context@ntg.nl> wrote:

> On Sat, 2021-10-09 at 18:47 +0200, Hans Hagen via ntg-context wrote:
> > On 10/9/2021 3:07 PM, Ramkumar KB via ntg-context wrote:
> > > Hello Community,
> > >
> > > If my memory serves me correctly, I might have noticed (in one of the
> > > presentations during the recent ConTeXt meeting) that the distro
> > > comes
> > > with a PDFViewer. Is that a correct assumption?
> > >
> > > I am currently using a VSCode extension for PDFViewing but it does
> > > not
> > > work very reliably.
> > just use an external one, normally it will update automatically (on
> > windows sumatrapdf is pretty ok, on linux i'd probably use okular
> > because mupdf has no real gui)
>
> I know of two muPDF GUIs:
>
> - llpp https://github.com/moosotc/llpp
> - zathura https://pwmt.org/projects/zathura/
>
> Both are fairly minimalistic, but if you only want to display pages
> they do the job. Zathura also supports synctex.
>
> >
> > Hans
> >
> > -
> >Hans Hagen | PRAGMA ADE
> >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> > -
> > ___
> > 
> > If your question is of interest to others as well, please add an entry
> > to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > ___
> > 
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
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] Does the ConTeXt distro come with a PDFViewer?

2021-10-09 Thread Ramkumar KB via ntg-context
Hello Community,

If my memory serves me correctly, I might have noticed (in one of the
presentations during the recent ConTeXt meeting) that the distro comes with
a PDFViewer. Is that a correct assumption?

I am currently using a VSCode extension for PDFViewing but it does not work
very reliably.

Thank you very much,

best regards,
Ramkumar
___
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] Regular online meet-up

2021-10-02 Thread Ramkumar KB via ntg-context
Hello All,

I will attend the meeting - 12th October / 21:00 hrs SGT.

best regards,
Ramkumar


On Sat, Oct 2, 2021 at 2:13 PM juh via ntg-context 
wrote:

> Hi all,
>
> Am Fri, Oct 01, 2021 at 11:43:20PM +0200 schrieb Henning Hraban Ramm via
> ntg-context:
> > Sorr y, Denis and I agreed to postpone it one week and meet on October
> > _12th_, same time.  I’ll send a reminder.
>
> Thanks a lot. The idea is great but I had to much to do t answer. I hope
> I can attend.
>
> juh
> --
> Autoren-Homepage: . http://literatur.hasecke.com
> Satiren & Essays: . http://www.sudelbuch.de
> Privater Blog:  http://www.hasecke.eu
> Netzliteratur-Projekt:  http://www.generationenprojekt.de
>
>
>
> ___
> 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] Best way to apply a fill-pattern to a closed shape?

2021-08-29 Thread Ramkumar KB via ntg-context
Hans,

Thank you! Yes, it would be great to learn more about MetaFun - if you can
point me to the test suite, then I can document a few good tutorial level
examples in the Wiki (beginner & intermediate). MetaFun's turbo charged
capabilities are awesome!

One idea I am thinking (maybe for a student level project) would be MetaFun
library for Figma <https://www.figma.com/> (popular design tool).

best regards,
Ramkumar



On Sun, Aug 29, 2021 at 5:17 PM Hans Hagen  wrote:

> On 8/29/2021 4:48 AM, Ramkumar KB wrote:
> > Hans,
> >
> > Thank you for the snippets. These are super helpful (I am assuming
> > commands like `withpatternscale` are MetaFun extensions and Wow!).
>
> yes, just metafun, already there for a while ... (often examples show up
> first in the test suite)
>
> (if folks have wished for metafun they can let me know ... doing
> metapost things is a nice distraction and with the mp extensions that we
> have in luametatex we can do quite a lot)
>
> 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] Best way to apply a fill-pattern to a closed shape?

2021-08-28 Thread Ramkumar KB via ntg-context
Hans,

Thank you for the snippets. These are super helpful (I am assuming commands
like `withpatternscale` are MetaFun extensions and Wow!).

I have added them to a new Wiki Page -
https://wiki.contextgarden.net/Fill_Patterns and linked it the main MetaFun
wiki page - https://wiki.contextgarden.net/MetaFun_-_MetaPost_in_ConTeXt

Thanks again!

best regards,
Ramkumar

On Sat, Aug 28, 2021 at 7:02 PM Hans Hagen  wrote:

> On 8/28/2021 11:33 AM, Ramkumar KB via ntg-context wrote:
> > Hello List,
> >
> > I have a use case to apply a particular pattern to a closed shape. I am
> > using Metapost for the figures.
> >
> > After some research this package seems to quite good, in terms of having
> > all the patterns normally used - https://ctan.org/pkg/minim-hatching
> > <https://ctan.org/pkg/minim-hatching>
> >
> > But I could not figure out how to use this with ConTeXt. Or maybe there
> > is already a better way to do this in ConTeXt and am missing that trick.
> >
> > Any tips would be really helpful.
> \starttext
>
> \startMPpage[offset=1cm]
>  draw (fullcircle scaled 5cm shifted (0cm,0cm))
>  withpattern image (fill fullcircle scaled 1cm withcolor
> "darkblue" ;)
>  withpatternscale (1/10,1/10)
>  ;
>
>  draw (fullcircle scaled 5cm shifted (5cm,0cm))
>  withpattern image (fill fullcircle scaled 5mm withcolor
> "darkred" ;)
>  withpatternscale (1/20,1/20)
>  ;
>
>  draw (fullcircle scaled 5cm shifted (10cm,0cm))
>  withpattern image (fill fullcircle scaled 5mm withcolor
> "darkgreen" ;)
>  withpatternscale (1/40,1/40)
>  ;
>
>  draw (fullcircle scaled 5cm shifted (0cm,5cm))
>  withpattern image (fill fullcircle scaled 1cm withcolor
> "darkcyan" ;)
>  withpatternscale (1/10,1/20)
>  ;
>
>  draw (fullcircle scaled 5cm shifted (5cm,5cm))
>  withpattern image (fill fullcircle scaled 5mm withcolor
> "darkmagenta" ;)
>  withpatternscale (1/20,1/40)
>  ;
>
>  draw (fullcircle scaled 5cm shifted (10cm,5cm))
>  withpattern image (fill fullcircle scaled 5mm withcolor
> "darkyellow" ;)
>  withpatternscale (1/40,1/80)
>  ;
> \stopMPpage
>
> \startMPpage[offset=1cm]
>  fill fullcircle scaled 11cm
>  withcolor "darkyellow" ;
>
>  draw fullcircle scaled 10cm
>  withpattern image (fill fullcircle scaled 1cm withcolor
> "darkblue" ;)
>  ;
>
>  draw fulldiamond scaled 8cm
>  withpattern image (fill fulldiamond scaled 4mm withcolor
> "darkgreen" ;)
>  rotated 15
>  ;
>
>  draw fulltriangle scaled 9cm
>  withpattern image (fill fulltriangle scaled 3mm withcolor
> "white" ;)
>  rotated 45
>  ;
>
>  draw fullcircle scaled 10cm
>  withpattern image (draw textext("!") withcolor "middlegray" ;)
>  rotated 45
>  ;
>
>  draw fullcircle scaled 10cm
>  withpen pencircle scaled 1mm
>  withcolor "darkgray" ;
> \stopMPpage
>
> \startMPpage[instance=doublefun]
>  fill fullcircle scaled 8cm withcolor "yellow" ;
>  draw fullcircle scaled 8cm
>  withpattern image (draw figure("t:/sources/cow.pdf") rotated 45;)
>  withpatternscale 1/40
>  ;
> \stopMPpage
>
>
> \startMPpage[instance=doublefun]
>  draw closedcurve(unitsquare xyscaled (200,200) shifted (0,-200))
>  withpattern image (fill closedcurve((fullcircle scaled 40
> shifted (25,-25))) withcolor "darkgray" withopacity .5)
>  withpatternscale (1,1)
>  ;
>  draw closedcurve(unitsquare xyscaled (200,200) shifted (0,-200))
>  withpattern image (fill closedcurve((fullcircle scaled 40
> shifted (25,-25))) withcolor "darkred" withopacity .5)
>  withpatternscale (1/2,1/2)
>  ;
>  draw closedcurve(unitsquare xyscaled (200,200) shifted (0,-200))
>  withpattern image (fill closedcurve((fullcircle scaled 40
> shifted (25,-25))) withcolor "darkgreen" withopacity .5)
>  withpatternscale (1/3,1/3)
>  ;
>  draw closedcurve(unitsquare xyscaled (200,200) shifted (0,-200))
>  withpattern image (fill closedcurve((fullcircle scaled 40
> shifted (25,-25))) withcolor "darkblue" withopacity .5)
>  withpatternscale (1/4,1/4)
>  ;
> \stopMPpage
>
> % \startTEXpage
>  \page
>  \startMPcode{doublefun}
>

Re: [NTG-context] Handling of negative values in the statistical-charts?

2021-08-28 Thread Ramkumar KB via ntg-context
Hi,

I have added an 'advanced' type for line & bar graphs to handle the use
case for -ve y-values / 4th quadrant graphs. It works similar to 'basic'
but works for -ve y-values (i.e. for the 4th quadrant).

PFA the amended lua file (zip file) and sample of line graph.

\def\edudataone{-10,35.55,-20.0,33,31,-25,-32}
\def\yearlabelstwo{2013,2014,2015,2016,
2017}

\linechart[basic][
ylength=5,
xscale=1.6, yscale=0.1,
left=0.5,
distance=1.2,
linecolor=limegreen, linewidth=1.5,
dotscolor=islamicgreen,
dotswidth=8, dotslabels=yes,
axesunits=yes,
xunit=Year,
yunit=Number of graduates
(thousands)][
data={\edudataone},
xlabels={\yearlabelstwo}]

\linechart[advanced][
ylength=5,
xscale=1.6, yscale=0.1,
left=0.5,
distance=1.2,
linecolor=limegreen, linewidth=1.5,
dotscolor=islamicgreen,
dotswidth=8, dotslabels=yes,
axesunits=yes,
xunit=Year,
yunit=Number of graduates
(thousands)][
data={\edudataone},
xlabels={\yearlabelstwo}]

It will be fantastic to get some feedback on this from the original authors
and also next steps to add this across all the relevant charts.

Thank you,

best regards,
Ramkumar

On Sat, Aug 21, 2021 at 3:23 PM Ramkumar KB  wrote:

> Dear List,
>
> I have been exploring the use of the awesome statistical-charts
> <https://akela.mendelu.cz/~thala/statcharts/> module. So first of all, a
> big thanks to the authors of the same.
>
> I seem to have hit a snag when it comes to handling of -ve values. In my
> example (attached tex & pdf), the y-axis labels and the grids do not seem
> to be working on the -ve side (also, able to flip labels above x-axis for
> -ve values). This seems to be the case of column charts and bar charts (and
> I will test this for the other types of charts also).
>
> If this is a more generic issue across all the types, then I can
> contribute towards enhancing it (as any charts module should handle -ve
> values). Any tips or pointers would be really helpful.
>
> Thank you very much.
>
> best regards,
>
>
>


fourth_quadrant.pdf
Description: Adobe PDF document
<>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Best way to apply a fill-pattern to a closed shape?

2021-08-28 Thread Ramkumar KB via ntg-context
Hello List,

I have a use case to apply a particular pattern to a closed shape. I am
using Metapost for the figures.

After some research this package seems to quite good, in terms of having
all the patterns normally used -  https://ctan.org/pkg/minim-hatching

But I could not figure out how to use this with ConTeXt. Or maybe there is
already a better way to do this in ConTeXt and am missing that trick.

Any tips would be really helpful.

Thank you.

Best regards,
Ramkumar
___
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] Handling of negative values in the statistical-charts?

2021-08-21 Thread Ramkumar KB via ntg-context
Dear List,

I have been exploring the use of the awesome statistical-charts
 module. So first of all, a
big thanks to the authors of the same.

I seem to have hit a snag when it comes to handling of -ve values. In my
example (attached tex & pdf), the y-axis labels and the grids do not seem
to be working on the -ve side (also, able to flip labels above x-axis for
-ve values). This seems to be the case of column charts and bar charts (and
I will test this for the other types of charts also).

If this is a more generic issue across all the types, then I can contribute
towards enhancing it (as any charts module should handle -ve values). Any
tips or pointers would be really helpful.

Thank you very much.

best regards,


columnchart_with_negative.pdf
Description: Adobe PDF document


columnchart_with_negative.tex
Description: Binary data
___
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] '--noconsole' or '--batchmode` still logs to console? | 1.04 Aug-10 version

2021-08-16 Thread Ramkumar KB via ntg-context
Hi,

I noticed that (in the latest version) that context command with
'--batchmode' or '--noconsole` still logs to the console?

Not sure if this is a regression issue. I am using the 1.04 Aug-10 version.

best regards,
Ramkumar
___
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] Both pdfinfo & exiftool have trouble with 1.0.4 but works with 1.0.3

2021-08-13 Thread Ramkumar KB via ntg-context
Hans,

To close this thread, both poppler and exiftool worked properly after I
upgraded to the latest version (details below). I will add a section in the
wiki about these tools, as they are mighty useful when working with PDFs.

mtx-context | ConTeXt Process Management 1.04 mtx-context |
mtx-context | main context file:
/home/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context
 | current version: 2021.08.10 12:42 mtx-context | main context file:
/home/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context
 | current version: 2021.08.10 12:42

Thanks again!

best regards,
Ramkumar

On Tue, Aug 10, 2021 at 7:01 PM Ramkumar KB  wrote:

> Hans,
>
> Thanks for the feedback. I will update to the latest version and run some
> tests again.
>
> mtxrun does not list the custom attributes unlike the others. From our
> (limited) experience, mutool / poppler / exiftool all excel in different
> areas. Dealing with different tools and keeping them upto date is
> something we have internalized.
>
> We did observe that mutool did not give errors with version 1.0.4 but
> others did. In the ConTeXt development workflow, are there any tests with
> such external tools (to possibly catch regression issues)?
>
> We have experienced (reasonable) success with tools like diff-pdf
> <https://vslavik.github.io/diff-pdf/> to catch regression in our workflow.
>
> Thank you as always!
>
> best regards,
> Ramkumar
>
>
> On Tue, Aug 10, 2021 at 3:19 PM Hans Hagen  wrote:
>
>> On 8/10/2021 6:33 AM, Ramkumar KB via ntg-context wrote:
>> > Hi,
>> >
>> > We use PDF tools like mutool, pdfinfo (from poppler) and exiftool in
>> our
>> > workflow (once the PDFs are created by ConTeXt).
>> >
>> > But looks like we have hit upon some regression issue between 1.0.3 and
>> > 1.0.4 versions. Both pdfinfo (from poppler) and exiftool are able to
>> > read PDFs created from 1.0.3 but have trouble reading PDFs created with
>> > 1.0.4. Please see below logs for details.
>> hard to say without files but indeed updating might help
>>
>> btw, there is (kind of old but still ok):
>>
>> mtxrun --script pdf --info filename.pdf
>>
>> 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] Both pdfinfo & exiftool have trouble with 1.0.4 but works with 1.0.3

2021-08-10 Thread Ramkumar KB via ntg-context
Hans,

Thanks for the feedback. I will update to the latest version and run some
tests again.

mtxrun does not list the custom attributes unlike the others. From our
(limited) experience, mutool / poppler / exiftool all excel in different
areas. Dealing with different tools and keeping them upto date is
something we have internalized.

We did observe that mutool did not give errors with version 1.0.4 but
others did. In the ConTeXt development workflow, are there any tests with
such external tools (to possibly catch regression issues)?

We have experienced (reasonable) success with tools like diff-pdf
<https://vslavik.github.io/diff-pdf/> to catch regression in our workflow.

Thank you as always!

best regards,
Ramkumar


On Tue, Aug 10, 2021 at 3:19 PM Hans Hagen  wrote:

> On 8/10/2021 6:33 AM, Ramkumar KB via ntg-context wrote:
> > Hi,
> >
> > We use PDF tools like mutool, pdfinfo (from poppler) and exiftool in our
> > workflow (once the PDFs are created by ConTeXt).
> >
> > But looks like we have hit upon some regression issue between 1.0.3 and
> > 1.0.4 versions. Both pdfinfo (from poppler) and exiftool are able to
> > read PDFs created from 1.0.3 but have trouble reading PDFs created with
> > 1.0.4. Please see below logs for details.
> hard to say without files but indeed updating might help
>
> btw, there is (kind of old but still ok):
>
> mtxrun --script pdf --info filename.pdf
>
> 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
___


[NTG-context] Both pdfinfo & exiftool have trouble with 1.0.4 but works with 1.0.3

2021-08-09 Thread Ramkumar KB via ntg-context
Hi,

We use PDF tools like mutool, pdfinfo (from poppler) and exiftool in our
workflow (once the PDFs are created by ConTeXt).

But looks like we have hit upon some regression issue between 1.0.3 and
1.0.4 versions. Both pdfinfo (from poppler) and exiftool are able to read
PDFs created from 1.0.3 but have trouble reading PDFs created with 1.0.4.
Please see below logs for details.

Our 1.0.4 is from April-2021. We will try to upgrade to the latest 1.0.4
and try again.

mtx-context | ConTeXt Process Management 1.04 mtx-context |
mtx-context | main context file:
/ConTeXt/apr2021/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2021.04.21 11:39 mtx-context | main
context file:
/ConTeXt/apr2021/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2021.04.21 11:39 mtx-context |
ConTeXt Process Management 1.03 mtx-context | mtx-context | main
context file:
/ConTeXt/sep2020/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.09.20 23:02 mtx-context | main
context file:
/ConTeXt/sep2020/tex/texmf-context/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.09.20 23:02

*pdfinfo (from Poppler)* ~/TeX$ pdfinfo Hello-world_1.0.4.pdf  Syntax
Error: Missing 'endstream' or incorrect stream length Syntax Error: Missing
'endstream' or incorrect stream length Title:  Hello world!
Subject:A ConTeXt template Keywords:   template Author:
 Mickey Mouse Creator:LuaMetaTeX 2.09 20210418 + ConTeXt LMTX
2021.04.21 11:39 Producer:   LuaMetaTeX-2.09 CreationDate:   Tue Aug 10
10:18:36 2021 +08 ModDate:Tue Aug 10 10:18:36 2021 +08 Tagged:
   no UserProperties: no Suspects:   no Form:   none
JavaScript: no Pages:  2 Encrypted:  no Page size:  612
x 792 pts (letter) Page rot:   0 File size:  39062 bytes
Optimized:  no PDF version:1.7 ~/TeX$ pdfinfo Hello-world_1.0.3.pdf
Title:  Hello world! Subject:A ConTeXt template Keywords:
 template Author: Mickey Mouse Creator:LuaTeX 2.07
20200920 + ConTeXt MkIV 2020.09.20 23:02 Producer:   LuaTeX-2.07
CreationDate:   Tue Aug 10 09:16:30 2021 +08 ModDate:Tue Aug 10
09:16:30 2021 +08 Tagged: no UserProperties: no Suspects:   no
Form:   none JavaScript: no Pages:  2 Encrypted:
no Page size:  612 x 792 pts (letter) Page rot:   0 File size:
39861 bytes Optimized:  no PDF version:1.7

*exiftool* ~/exiftool/Image-ExifTool-12.29/exiftool
Hello-world_1.0.4.pdf  ExifTool Version Number : 12.29 File Name
   : Hello-world_1.0.4.pdf Directory
 : . File Size   : 38 KiB File Modification Date/Time
   : 2021:08:10 10:19:52+08:00 File Access Date/Time   : 2021:08:10
10:20:17+08:00 File Inode Change Date/Time : 2021:08:10 10:19:52+08:00
File Permissions: -rwxr-x--- File Type
 : PDF File Type Extension : pdf MIME Type
 : application/pdf PDF Version : 1.7 Linearized
  : No Warning : Error reading stream
data ~/exiftool/Image-ExifTool-12.29/exiftool Hello-world_1.0.3.pdf
ExifTool Version Number : 12.29 File Name   :
Hello-world_1.0.3.pdf Directory   : . File Size
   : 39 KiB File Modification Date/Time : 2021:08:10
09:17:51+08:00 File Access Date/Time   : 2021:08:10 09:18:00+08:00
File Inode Change Date/Time : 2021:08:10 09:17:51+08:00 File
Permissions: -rwxr-x--- File Type   :
PDF File Type Extension : pdf MIME Type   :
application/pdf Linearized  : No Author
  : Mickey Mouse Con Te Xt Jobname   : Hello-world Con
Te Xt LMTX  : 0.10 Con Te Xt Support   :
contextgarden.net Con Te Xt Time  : 2021-08-10 09:16 Con Te
Xt Url   : www.pragma-ade.com Con Te Xt Version
   : 2020.09.20 23:02 Create Date : 2021:08:10
09:16:30+08:00 ID  : Hello-world |
2021-08-10T09:16:30+08:00 Keywords: template Modify
Date : 2021:08:10 09:16:30+08:00 Subject
 : A ConTeXt template Te X Support: tug.org
Language: en Format  :
application/pdf Creator : Mickey Mouse Description
   : A ConTeXt template Title   :
Hello world! Id  : Hello-world |
2021-08-10T09:16:30+08:00 Con Te Xt Jobname   : Hello-world Con
Te Xt Time  : 2021:08:10 09:16 Con Te Xt Url
   : www.pragma-ade.com Con Te Xt Support   : contextgarden.net

Re: [NTG-context] Missing symb-imp-was.mkiv ?

2021-07-11 Thread Ramkumar KB
Hans,

Thank you very much! Let me follow your instructions and will give you
feedback.

Thanks again.

best regards,
Ramkumar

On Sun, Jul 11, 2021 at 3:46 AM Hans Hagen  wrote:

> On 7/10/2021 8:24 AM, Ramkumar KB wrote:
> > Hello,
> >
> > I am trying to follow the steps described here for using \usesymbols
> > <https://wiki.contextgarden.net/Command/usesymbols>[was] and details
> > described here -
> > https://wiki.contextgarden.net/Symbols/was
> > <https://wiki.contextgarden.net/Symbols/was>
> >
> > Looks like the file `symb-imp-was.mkiv` is missing from the path -
> >
> > \tex\texmf-context\tex\context\base\mkiv
> >
> > Thank you for any tips or pointers.
> The wiki page actually mentiones jmn symbols but these are by (the late)
> Januz so that should be corrected.
>
> Anyway, the wasy font symbol setup was never converted to mkiv so
> attached is a draft.
>
> Up to you to complete it. From CTAN, download the type one package and
> put the afm and pfb files under (e.g.) texmf-fonts/fonts/data/wasy (no
> need for subdirs) and run "mtxrun --generate" to update the file database.
>
> You can look in the afm files to see what names are provided.
>
> It looks like the files were updated in 2020 (taco is mentiones). Rhaban
> made the mkii file so you can consult him. I advice to stick to the
> regular symbols not the weirdly composed ones.
>
> You can patch the file and send me the result. You can 'run the file' in
> order to get the overview. You should see at least most symbols.
>
> So ... work to do ...
>
> 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
___


[NTG-context] Missing symb-imp-was.mkiv ?

2021-07-10 Thread Ramkumar KB
Hello,

I am trying to follow the steps described here for using \usesymbols
[was] and details
described here -
https://wiki.contextgarden.net/Symbols/was

Looks like the file `symb-imp-was.mkiv` is missing from the path -

\tex\texmf-context\tex\context\base\mkiv

Thank you for any tips or pointers.

best regards,
Ramkumar
___
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] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Ramkumar KB
Wolfgang,

Thank you very much for the information. Yes, this was the trick I was
looking for.

I haved added this information in the Wiki -
https://wiki.contextgarden.net/TABLE#Settings_for_multiple_TABLEs_in_a_single_page


Hope it is accurate enough.

Thank you once again!

-Ramkumar

On Wed, Jun 16, 2021 at 11:41 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Ramkumar KB schrieb am 16.06.2021 um 17:33:
>
> Hi,
>
> I have 2 "natural tables" in one page and it appears that I have to
> (manually) reset the columns in the second table, for those columns that I
> had set specific width. See the example below -
>
> Maybe I am missing a trick or two - or this indeed is the desired
> behavior? Thank you very much.
>
> \setupTABLE[r][each][height=0.5cm,frame=on]
> \setupTABLE[c][each][width=0.6cm]
> \setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm]
> \setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE
> \setupTABLE[r][each][height=1.3cm,topframe=on]
> \setupTABLE[c][each][width=1.7cm]
> \setupTABLE[c][1,4,7][width=1.7cm] %This is to reset from the previous Table
> \setupTABLE[r][1][height=0cm,topframe=off]
> \setupTABLE[c][2][width=0.3cm,frame=off] \bTABLE ... \eTABLE
>
>
> When you need a certain setup for multiple tables you can put all
> \setupTABLE commands in a setups-environment and load these settings at the
> start of the table, e.g.
>
>
> \startsetups [tablesettings]
> \setupTABLE [r] [1] [..,..=..,..]
> \setupTABLE [c] [2] [..,..=..,..]
> \stopsetups
>
> \bTABLE[setups=tablesettings]
> ...
> \eTABLE
>
>
> When you need individual settings for each table add \start before the
> setup-commands and \stop after the table, this keeps all setups local to
> the current table, e.g.
>
> \start
>
> \setupTABLE [r] [1] [..,..=..,..]
> \setupTABLE [c] [2] [..,..=..,..]
>
> \bTABLE
> ...
> \eTABLE
>
> \stop
>
>
> Wolfgang
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Ramkumar KB
Hi,

I have 2 "natural tables" in one page and it appears that I have to
(manually) reset the columns in the second table, for those columns that I
had set specific width. See the example below -

Maybe I am missing a trick or two - or this indeed is the desired behavior?
Thank you very much.

\setupTABLE[r][each][height=0.5cm,frame=on]
\setupTABLE[c][each][width=0.6cm]
\setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm]
\setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE
\setupTABLE[r][each][height=1.3cm,topframe=on]
\setupTABLE[c][each][width=1.7cm]
\setupTABLE[c][1,4,7][width=1.7cm] %This is to reset from the previous Table
\setupTABLE[r][1][height=0cm,topframe=off]
\setupTABLE[c][2][width=0.3cm,frame=off] \bTABLE ... \eTABLE

- Ramkumar
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new lmtx

2020-11-29 Thread Ramkumar KB
Hans,

Thank you for the new release.

I have to mirror the installer files (see below list) at
http://lmtx.pragma-ade.com inside my corporate as the site is blocked. So
whenever a new release is announced in this list, do I just replace the
*texmf-context.zip* (or do I have to replace or some all the below files)?

ConTeXt installer files for Win64:

   - tex/status.tma
   - tex/texmf.tma
   - tex/texmf-context.tma
   - tex/texmf-win64.tma
   - texmf.zip
   - *texmf-context.zip*
   - tex/texmf-win64/bin/context.exe
   - tex/texmf-win64/bin/context.lua
   - tex/texmf-win64/bin/luametatex.exe
   - tex/texmf-win64/bin/luatex.exe
   - tex/texmf-win64/bin/mtxrun.exe
   - tex/texmf-win64/bin/mtxrun.lua


Thank you for the tips, as always.

Best regards,


On Sat, Nov 28, 2020 at 3:26 AM Hans Hagen  wrote:

> Hi,
>
> A new upload ... a few lua files cleaned up (stale code removed and so)
> ... hopefully for the best.
>
> Hans
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Adding Custom PDF Property

2020-11-23 Thread Ramkumar KB
Hans,

Thank you very much!

I will update a section in the Wiki with this information.

Best regards,

On Mon, Nov 23, 2020 at 8:21 PM Hans Hagen  wrote:

> On 11/23/2020 11:26 AM, Ramkumar KB wrote:
> > Hello List,
> >
> > I am looking for a way to add custom PDF properties to the document.
> >
> >  From the docs, I can see how to add standard properties (a.k.a headers)
> > like Title, Author, Subtitle and Keywords -
> > https://wiki.contextgarden.net/Interaction#PDF_Headers
> > <https://wiki.contextgarden.net/Interaction#PDF_Headers>
> >
> > But I would like to add my own custom Name-Value properties (similar to
> > what ConTeXt, by default, adds like `ConTeXt.Url=www.pragma-ade.com
> > <http://www.pragma-ade.com>` when I open the document in Adobe Reader).
> \pdfbackendsetinfo{foo}{bar}
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Adding Custom PDF Property

2020-11-23 Thread Ramkumar KB
Hello List,

I am looking for a way to add custom PDF properties to the document.

>From the docs, I can see how to add standard properties (a.k.a headers)
like Title, Author, Subtitle and Keywords -
https://wiki.contextgarden.net/Interaction#PDF_Headers

But I would like to add my own custom Name-Value properties (similar to
what ConTeXt, by default, adds like `ConTeXt.Url=www.pragma-ade.com` when I
open the document in Adobe Reader).

Thank you for the help,

best regards,
___
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] Running mtxrun in a continuous batch mode

2020-11-06 Thread Ramkumar KB
Hi,

Thank you for the tips. Yes, I will probably write something similar (but
probably in Go  or Python
, as they are easier to maintain
in the environments that I work).

Thank you very much!
Ramkumar

On Fri, Nov 6, 2020 at 10:52 PM Aditya Mahajan  wrote:

> On Fri, 6 Nov 2020, thierry horsin wrote:
>
> > Hi Ramkumar,
> >
> > Maybe you could have some scripts that check when the JSON file is
> modified
> > and if so launches the compilation. I did that sort of script in order
> to have
> > a continuous compilation process by checking every second if my current
> .tex
> > file is modified.
>
> Here is a script which does this for general tasks:
>
> http://users.fred.net/tds/lab/ftp/atchange
>
> It is also possible to build something on top of inotifywait on linux.
>
> 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] ConTeXt Linux installation issues (due to GLIBC dependency) - Solved!

2020-11-06 Thread Ramkumar KB
Hello All,

This turned out to be an issue with the texmf-context.zip file version
mismatch. I updated to version 1.04 and was able to install successfully!

However, I would like to contribute a section to Wiki on how to install
ConTeXt in Linux machines which does not have the proper GLIBC version.
This is especially true with RHEL 7.x versions - which is still the
majority installation in companies & institutions with RHEL subscription.

The section will cover GLIBC 2.24 install, patchelf utility and the changes
needed to ConTeXt install scripts for such an installation.

How can I go about contributing to the wiki?

Thank you,
Ramkumar

On Fri, Nov 6, 2020 at 5:31 PM Ramkumar KB  wrote:

> Hello All,
>
> I am having a situation where I have to install and run Context in a Linux
> machine but the machine(s) have only RHEL 7.6 (which comes with only
> GLIBC_2.17).
> From the initial error logs it appears that Context needs minimum
> GLIBC_2.23. Therefore, I did the following work around and it almost worked
> ! (there were no more GLIBC_2.23 errors and installation was progressing
> well...) , till it did not... :-(
>
> Any tips or suggestions to try would be indeed very helpful. Thanks so
> much !
>
> *Work Around* -
> Manually installed GLIBC_2.23 as per the instructions here - in my own
> directory where I have full access -
> https://gist.github.com/carlesloriente/ab3387e7d035ed400dc2816873e9089e
>
> *Patchelf Utility*
> Used the patchelf utility - https://anaconda.org/conda-forge/patchelf
>
> *Changed the following Context install files*
> *install.sh (just before running mtxrun)*
> *===*
> patchelf --set-interpreter
> /my-own-dir/opt/glibc-2.23/lib/ld-linux-x86-64.so.2 --set-rpath
> /my-own-dir/opt/glibc-2.23/lib:/usr/lib64 $PWD/bin/mtxrun $PWD/bin/mtxrun
> --script ./bin/mtx-install.lua --update --server="$LMTXSERVER"
> --instance="$LMTXINSTANCE" --platform="$PLATFORM" --erase
> --extras="$LMTXEXTRAS"
> *mtx-install.lua (just before running mtxrunbin)*
> 
> run("patchelf --set-interpreter 
> /my-own-dir/opt/glibc-2.23/lib/ld-linux-x86-64.so.2 --set-rpath 
> /my-own-dir/opt/glibc-2.23/lib:/usr/lib64 %s", mtxrunbin)
> run("%s --generate",mtxrunbin)
>
> *Error that I see (in the step `make luametatex format`) - *
> resolvers   | formats | changing to format path '/my-own-dir
> /ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f3
> 2e/formats/luametatex'
> resolvers   | formats | executing runner 'make luametatex format': /
> my-own-dir/ConTeXt/tex/texmf-linux-64/bin/luametatex --ini
> --lua=/my-own-dir/chantool/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lmt
> /my-own-dir/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.
> mkxl
> This is LuaMetaTeX, Version 2.08.01
> 2097153(/my-own-dir/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl(context.mkxl(syst-ini.m
> kxl
> ! Undefined control sequence.
>  \voffset
> \zeropoint \let\voffset\relax \newdimen\voffset \let\normalvoffset\voffset
> ! Missing number, treated as zero.
> 
> \let
> <
> ...
> (That makes 100 errors; please try again.)resolvers   | formats |
>
>
>
>
>
>
>
>
>
>
___
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] ConTeXt Linux installation issues (due to GLIBC dependency)

2020-11-06 Thread Ramkumar KB
Hello All,

I am having a situation where I have to install and run Context in a Linux
machine but the machine(s) have only RHEL 7.6 (which comes with only
GLIBC_2.17).
>From the initial error logs it appears that Context needs minimum
GLIBC_2.23. Therefore, I did the following work around and it almost worked
! (there were no more GLIBC_2.23 errors and installation was progressing
well...) , till it did not... :-(

Any tips or suggestions to try would be indeed very helpful. Thanks so much
!

*Work Around* -
Manually installed GLIBC_2.23 as per the instructions here - in my own
directory where I have full access -
https://gist.github.com/carlesloriente/ab3387e7d035ed400dc2816873e9089e

*Patchelf Utility*
Used the patchelf utility - https://anaconda.org/conda-forge/patchelf

*Changed the following Context install files*
*install.sh (just before running mtxrun)*
*===*
patchelf --set-interpreter
/my-own-dir/opt/glibc-2.23/lib/ld-linux-x86-64.so.2 --set-rpath
/my-own-dir/opt/glibc-2.23/lib:/usr/lib64 $PWD/bin/mtxrun $PWD/bin/mtxrun
--script ./bin/mtx-install.lua --update --server="$LMTXSERVER"
--instance="$LMTXINSTANCE" --platform="$PLATFORM" --erase
--extras="$LMTXEXTRAS"
*mtx-install.lua (just before running mtxrunbin)*

run("patchelf --set-interpreter
/my-own-dir/opt/glibc-2.23/lib/ld-linux-x86-64.so.2 --set-rpath
/my-own-dir/opt/glibc-2.23/lib:/usr/lib64 %s", mtxrunbin)
run("%s --generate",mtxrunbin)

*Error that I see (in the step `make luametatex format`) - *
resolvers   | formats | changing to format path '/my-own-dir
/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f3
2e/formats/luametatex'
resolvers   | formats | executing runner 'make luametatex format': /
my-own-dir/ConTeXt/tex/texmf-linux-64/bin/luametatex --ini
--lua=/my-own-dir/chantool/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lmt
/my-own-dir/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.
mkxl
This is LuaMetaTeX, Version 2.08.01
2097153(/my-own-dir/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl(context.mkxl(syst-ini.m
kxl
! Undefined control sequence.
 \voffset
\zeropoint \let\voffset\relax \newdimen\voffset \let\normalvoffset\voffset
! Missing number, treated as zero.

\let
<
...
(That makes 100 errors; please try again.)resolvers   | formats |
___
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] Running mtxrun in a continuous batch mode

2020-11-06 Thread Ramkumar KB
Hans,

Thank you for the suggestions. Let me try them out and feedback back to you
(as the batch set-up involves > 10,000 docs).

Best,
Ramkumar

On Wed, Nov 4, 2020 at 7:24 PM Hans Hagen  wrote:

> On 11/4/2020 4:48 AM, Ramkumar KB wrote:
> > Hans,
> >
> > Thank you so much for the kind response.
> >
> > Apologies that I was not very clear in my initial query. I have -
> >
> >  1. MyStatement.tex, with all the necessary fonts, static text, images,
> > header, footer etc
> >  2. MyStatement.tex reads from a JSON file for certain sections of the
> > document for the dynamic content
> >  3. context MyStatement.tex produces MyStatement.pdf
> >
> > How do I do the above steps 1 to 3 in a continuous fashion such that -
> >
> >   * Output is MyStatement_1.pdf (reads from data_1.json),
> > MyStatement_2.pdf (reads from data_2.json) and so on
> >   * The tex processing is fast as fonts etc are loaded once (as the Tex
> > template is same for all the MyStatement_n.pdf)
> >
> >  From the sample code that you gave, I get a hint that this can be
> > possibly done using ConTeXt Lua Document approach. Is this correct?
> i'd just write a script that calls context like
>
> context mystatement.tex --myjsonsection=1 --batch
> context mystatement.tex --myjsonsection=2 --batch
> context mystatement.tex --myjsonsection=3 --batch
>
> etc .. maybe --once if no multipass is needed, or --runs=2 if you know
> how many runs are needed
>
> to stay in a run and kind of restart is asking for troubles because what
> should be reset? of course i could context make do that buit it doesn't
> pay off
>
> an alternative that you generate one document with all statements and
> use mutool to split of the pages
>
> but anyway, nowadays machines are fast enough to have separate runs (and
> one can run them in parallel)
>
> 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] Running mtxrun in a continuous batch mode

2020-11-03 Thread Ramkumar KB
Hans,

Thank you so much for the kind response.

Apologies that I was not very clear in my initial query. I have -

   1. MyStatement.tex, with all the necessary fonts, static text, images,
   header, footer etc
   2. MyStatement.tex reads from a JSON file for certain sections of the
   document for the dynamic content
   3. context MyStatement.tex produces MyStatement.pdf

How do I do the above steps 1 to 3 in a continuous fashion such that -

   - Output is MyStatement_1.pdf (reads from data_1.json), MyStatement_2.pdf
   (reads from data_2.json) and so on
   - The tex processing is fast as fonts etc are loaded once (as the Tex
   template is same for all the MyStatement_n.pdf)

>From the sample code that you gave, I get a hint that this can be possibly
done using ConTeXt Lua Document approach. Is this correct?

Thank you once again,

Best,
Ramkumar

On Tue, Nov 3, 2020 at 7:02 PM Hans Hagen  wrote:

> On 11/3/2020 1:55 AM, Ramkumar KB wrote:
> > Hello,
> >
> > I am trying to run mtxrun in a batch process and read the available
> > documentation here -
> > https://wiki.contextgarden.net/Running_ConTeXt_without_a_shell
> >
> > My usecase is being able to create PDF docs based on the input data that
> > comes in a JSON format (in a continuous batch process). In ConTeXt,
> > thanks to the Lua engine, I am able to inject a JSON read from a file -
> > and use the JSON in the tex file (here variable `tab` holds the JSON).
> >
> > How do I make this as a continuous webservice - in comes JSON and out
> > comes the PDF ?
> >
> > \startluacode
> > require("test-json")
> > \stopluacode
> >
> > The name of the document is \ctxlua{tex.print(tab['documentName'])}
> >
> > Any tips or pointers would be much appreciated.
> foo.cld :
>
> require("util-jsn")
>
> -- local str = io.loaddata("somefile.json")
>
> local str = [[ {
>  "title": "Some JSON",
>  "text" : "Just an example.",
>  "data" : [
>  { "a" : "first 1", "b" : "last 1" },
>  { "b" : "last 2", "a" : "first 2" }
>  ]
> } ]]
>
> local tmp = utilities.json.tolua(str)
>
> context.starttext()
>
>  context.starttitle { title = tmp.title }
>
>  context(tmp.text) context.par()
>
>  context.starttabulate { "|c|c|" }
>  for i=1,#tmp.data do
>  local d = tmp.data[i]
>  context.NC()
>  context(d.a) context.NC()
>  context(d.b) context.NC()
>  context.NR()
>  end
>  context.stoptabulate()
>
>  context.stoptitle()
>
> context.stoptext()
>
> and then
>
> context foo.cld
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Running mtxrun in a continuous batch mode

2020-11-02 Thread Ramkumar KB
Hello,

I am trying to run mtxrun in a batch process and read the available
documentation here -
https://wiki.contextgarden.net/Running_ConTeXt_without_a_shell

My usecase is being able to create PDF docs based on the input data that
comes in a JSON format (in a continuous batch process). In ConTeXt, thanks
to the Lua engine, I am able to inject a JSON read from a file - and use
the JSON in the tex file (here variable `tab` holds the JSON).

How do I make this as a continuous webservice - in comes JSON and out comes
the PDF ?

\startluacode
require("test-json")
\stopluacode

The name of the document is \ctxlua{tex.print(tab['documentName'])}

Any tips or pointers would be much appreciated.

Thank you,
Ramkumar
___
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] Asymmetrical Column layout leads to an extra blank page (Solved!)

2020-10-30 Thread Ramkumar KB
Hello,

I managed to resolve the issue - which turns out bcos I had 2 back2back
columnset definitions. So instead, I combined them into 1 and the result
was ok.

*Before (leads to blank page or page with symmetrical columns):*

\definecolumnset[2col][n=2, distance=3.5mm, page=no]
\setupcolumnset[2col:1][width=.65\makeupwidth]
\setupcolumnset[2col:2][width=.35\makeupwidth]

\definecolumnset[3col][n=3, page=yes]
\setupcolumnset[3col:1][width=.25\makeupwidth]
\setupcolumnset[3col:2][width=.30\makeupwidth]
\setupcolumnset[3col:3][width=.45\makeupwidth]

\startcolumnset[2col]
...
\stopcolummnset

\startcolumnset[3col]
...
\stopcolummnset

*After (gets the desired result):*

\definecolumnset[summary][nleft=2, nright=3, distance=3.5mm, page=no]
\setupcolumnset[summary:1][width=.65\makeupwidth]
\setupcolumnset[summary:2][width=.35\makeupwidth]
\setupcolumnset[summary:3][width=.25\makeupwidth]
\setupcolumnset[summary:4][width=.30\makeupwidth]
\setupcolumnset[summary:5][width=.45\makeupwidth]

\startcolumnset[summary]
...
\stopcolummnset

Best,

On Thu, Oct 29, 2020 at 7:47 PM Ramkumar KB  wrote:

> Hello All,
>
> I am new to this community and am really excited about the possibilities
> with ConTeXt.
>
> My question is related to the thread -
> https://www.mail-archive.com/ntg-context@ntg.nl/msg92767.html (the
> suggested solution did not work, unfortunately)
>
> After trying out various options, I am faced with these 2 (sub-optimal)
> choices -
>
>1. Extra Blank page with Asymmetric Columns in the next page (with the
>\subject{} uncommented)
>2. No Blank page with Symmetric Columns (with the \subject{} commented)
>3. page=yes / no - does not work (same outcome as above)
>
> I am not sure the role of \section or \subject in this matter (seems to be
> somehow interfering with asymmetrical columnset).
>
> \usemodule[newcolumnsets]
> ...
>
> % \subject{} \definecolumnset[soi1][n=3, distance=3mm, page=yes]
> % \definecolumnset[currency][n=3, page=yes]
> \setupcolumnset[soi1:1][width=.25\makeupwidth]
> \setupcolumnset[soi1:2][width=.30\makeupwidth]
> \setupcolumnset[soi1:3][width=.45\makeupwidth]
>
> Any tips, help or pointers would be greatly appreciated. If not for
> columnset, is there any other way to get this type of layout?
>
> Thank you,
>
___
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] Asymmetrical Column layout leads to an extra blank page

2020-10-29 Thread Ramkumar KB
Hello All,

I am new to this community and am really excited about the possibilities
with ConTeXt.

My question is related to the thread -
https://www.mail-archive.com/ntg-context@ntg.nl/msg92767.html (the
suggested solution did not work, unfortunately)

After trying out various options, I am faced with these 2 (sub-optimal)
choices -

   1. Extra Blank page with Asymmetric Columns in the next page (with the
   \subject{} uncommented)
   2. No Blank page with Symmetric Columns (with the \subject{} commented)
   3. page=yes / no - does not work (same outcome as above)

I am not sure the role of \section or \subject in this matter (seems to be
somehow interfering with asymmetrical columnset).

\usemodule[newcolumnsets]
...

% \subject{} \definecolumnset[soi1][n=3, distance=3mm, page=yes]
% \definecolumnset[currency][n=3, page=yes]
\setupcolumnset[soi1:1][width=.25\makeupwidth]
\setupcolumnset[soi1:2][width=.30\makeupwidth]
\setupcolumnset[soi1:3][width=.45\makeupwidth]

Any tips, help or pointers would be greatly appreciated. If not for
columnset, is there any other way to get this type of layout?

Thank you,
___
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
___