[NTG-context] Re: QR Code

2024-04-28 Thread Benjamin Buchmuller
Catching up on an earlier thread by Ursula and Hraban,

I'm also experienceing problems with \usemodule[zint] while \usemodule[t-zint] 
works fine. 

Running on macOS (ConTeXt  ver: 2024.04.01 08:59 LMTX  fmt: 2024.4.28).

The issue seems somewhat unrelated to ConTeXt on first glance (??) if this is 
helpful. My code stopped working after I updated the OS (to Sonoma) and my 
homebrew cellar (to zint 2.13.0) while keeping a ConTeXt version from 2022 
which compiled the barcodes perfectly fine before these updates. This being 
said, the newer ConTeXt version doesn't resolve the issue.

Observations:

1) Zint (and Inkscape) is in my PATH and correctly sym-linked as specified in 
the wiki (~/tex/texmf-osx-64/bin/lib/luametatex/zint/libzint.so 
). However, the library was (still) not fount after mtxrun 
--generate

[This seems an odd, but unrelated problem]

2) So, I hardcoded libfile in libs-impzint.lmt to

local libfile = "/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib"

3) Running the wiki example:

  \usemodule[m-zint]
   \starttext
   \barcode[alternative=isbnx, text=9783865419026, width=4cm]
   \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, 
   width=3cm]
   \barcode[alternative=maxicode, text={test}, width=3cm]
   \stoptext

* With \usemodule[m-zint], I correctly get:

zint --barcode=qrcode  
--output="zint-qrcode-495165e08dbc5ce650aaaf13caa2229f.eps" 
--input="zint-qrcode-495165e08dbc5ce650aaaf13caa2229f.tmp"
zint --barcode=maxicode  
--output="zint-maxicode-098f6bcd4621d373cade4e832627b4f6.eps" 
--input="zint-maxicode-098f6bcd4621d373cade4e832627b4f6.tmp"

[Barcodes show up as expected]

* With \usemodule[zint], no success:

optional> using library 
'/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib'
zint> something went wrong: invalid result vector
zint> something went wrong: invalid result
zint> something went wrong: invalid result vector

Maybe this is helpful to pinpoint the issue?

Best


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] ConteXt commands in an rtl environment

2024-04-28 Thread Alan Bowen
I am having trouble entering ConteXt commands in an rtl language, in this
case Hebrew.

How does one make the last(left hand) letter of the Hebrew word
אשר
a superscript?

My experiments with \high{...} have not been successful so far in part, I
think, because I have not got the brackets right.

Any tips or pointers will be gratefully received.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-28 Thread urban . m
I don't think that 'sidebar' has much to do with it. The part that is
not working as expected is the 'mysidebar', which is not getting the
'outer' location, nor the 'none' captioning that I get with
placefloat.

setupfloat[mysidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]

defineframedtext [sidebartext]
[width=.4textwidth,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft]

starttext
This is a bit of text
placefloat[newsidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{
startsidebartext
This is a short sidebar
stopsidebartext
}
And something to follow.

A bit of text
placemysidebar{}{
startsidebartext
This is a short sidebar
stopsidebartext
}
And something to follow.

stoptext


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-28 Thread Henning Hraban Ramm
Where’s the float type "sidebar" defined? AFAIK it’s not a default type. 
And it might interfere with the actual sidebar stuff from 
https://source.contextgarden.net/tex/context/base/mkxl/anch-bar.mkxl, 
see also https://wiki.contextgarden.net/Command/setupsidebar


Hraban

Am 28.04.24 um 19:54 schrieb urba...@ca.rr.com:
I swear I used to understand this stuff.  I plead old age.   Why do I 
get two different results from the float placements here:


\definefloat[mysidebar][mysidebars]
\setupfloat[mysidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]

\defineframedtext [sidebartext]
[width=.4\textwidth,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft]

\starttext
This is a bit of text
\placefloat[sidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{
\startsidebartext
This is a short sidebar
\stopsidebartext
}
And something to follow.

A bit of text
\placemysidebar{}{
\startsidebartext
This is a short sidebar
\stopsidebartext
}
And something to follow.

\stoptext


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Why Difference Between \placefloat and \definefloat

2024-04-28 Thread urban . m
I swear I used to understand this stuff. I plead old age. Why do I get
two different results from the float placements here:

definefloat[mysidebar][mysidebars]
setupfloat[mysidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]

defineframedtext [sidebartext]
[width=.4textwidth,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft]

starttext
This is a bit of text
placefloat[sidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{
startsidebartext
This is a short sidebar
stopsidebartext
}
And something to follow.

A bit of text
placemysidebar{}{
startsidebartext
This is a short sidebar
stopsidebartext
}
And something to follow.

stoptext


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: statistical charts module re-published

2024-04-28 Thread Henning Hraban Ramm

Hi Tomáš,

thank you, I updated the information at 
https://codeberg.org/fiee/context-statistical-charts and also published 
the new version to https://modules.contextgarden.net (i.e. installation 
with "mtxrun --script install-modules --install statistical-charts" will 
now install the current version).


Best, Hraban

Am 28.04.24 um 13:58 schrieb Tomáš Hála:

Hi Hraban and all,

the server akela at our university is not absolutely down but avialable from
the university intranet (or via VPN) only, unfortunately.

When you wrote the second email (the first one I accidentally missed in the 
flood of other messages, sorry about that)
I was just in the middle of cleaning data and migrating them to other sites.

At the same time, Tamara and I fixed some small things and we publish a new
version of this module containing our work from the last year.

The official site for statistical-charts module
is now   www.thala.cz/statcharts,
available also via  www.konvoj.cz/statcharts,
and mirrored at user.mendelu.cz/thala/statcharts.

Best,

Tomáš

On Fri, Apr 05, 2024 at 08:54:46PM +, Henning Hraban Ramm wrote:

Hi,
since the Akela server at Mendel University is down since a while, I got
no response from Tomáš, and it would be a pity to lose this module, I
re-published the statistical charts module at
https://codeberg.org/fiee/context-statistical-charts
I’ll also put it on modules.contextgarden.net

This is version 0.31, tagged by me as 2020-09-11 (date of the presentation).
I’m sure there’s a newer version somewhere, at least at Ramkumar’s, and
I’d like to update the repo to that.
Also the sources for the documentation are missing.

Authors, please help me save your work!

Hraban


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-28 Thread ai2472206007
Thanks for the detailed answer, my problem was solved very well through the 
code you provided

--

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___