[NTG-context] Re: separatedlist with header repeating processing csv to table

2024-10-02 Thread Henning Hraban Ramm

Am 02.10.24 um 13:49 schrieb Henning Hraban Ramm:

Am 02.10.24 um 09:48 schrieb juh+ntg-context--- via ntg-context:

Dear all,

some years ago I asked about how to process a csv file in a table with 
repeating headers on following pages, but got no answer.


https://www.mail-archive.com/ntg-context@ntg.nl/msg98903.html

Now I am again working on this problem.

I wonder if there is a better way to process csv files to a table with 
more flexibility?


Or do I simply miss the switch to mark the first row in the csv file 
as the header that has to repeat?


Did you try split=repeat instead of split=yes?


Oh, and of course you need a \bTABLEhead, otherwise there’s nothing to 
repeat.
That means AFAIK, the header can’t be part of the CSV, using this simple 
module.


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: separatedlist with header repeating processing csv to table

2024-10-02 Thread Henning Hraban Ramm

Am 02.10.24 um 09:48 schrieb juh+ntg-context--- via ntg-context:

Dear all,

some years ago I asked about how to process a csv file in a table with 
repeating headers on following pages, but got no answer.


https://www.mail-archive.com/ntg-context@ntg.nl/msg98903.html

Now I am again working on this problem.

I wonder if there is a better way to process csv files to a table with 
more flexibility?


Or do I simply miss the switch to mark the first row in the csv file as 
the header that has to repeat?


Did you try split=repeat instead of split=yes?

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: “breaking news”

2024-10-01 Thread Henning Hraban Ramm

Am 01.10.24 um 00:17 schrieb Hans Hagen:
It’s a novel of ~650 pages with a big range of paragraph lengths (some 
dialogues with short lines as well as paragraphs that span pages). “Of 
course” you often get a 3-line paragraph over a page break – it’s hard 
to avoid widows and orphans.


depends .. three liners can be made to work in fact one should then use 
\widowpenalties and \clubpenalties with a high value for the first two 
entries (and maybe disable them to overlap)


I have
\setpenalties\widowpenalties{2}{8000}
\setpenalties\clubpenalties{2}{1}

Does this make sense? While I saw in your demonstrations that it’s 
possible to set different penalties per line, I never tried.


Otherwise, I found out the easiest solution is a \vbox, VZ does the 
rest. Should have thought of that earlier, would have saved me a few hours.



here is a teaser:

\permanent \specificationdef \lesswidowpenalties \widowpenalties
     \plusthree options \numexpr\largestspecificationoptioncode+ 
\doublespecificationoptioncode\relax

     \plusfivethousand    \plusseventyfivehundred
     \plustwohundredfifty \plusfivehundred
     \zerocount   \zerocount
\relax

\permanent \specificationdef \lessclubpenalties \clubpenalties
     \plusthree options \numexpr\largestspecificationoptioncode+ 
\doublespecificationoptioncode\relax

     \plusfivethousand    \plusseventyfivehundred
     \plustwohundredfifty \plusfivehundred
     \zerocount   \zerocount
\relax

used in upcoming new \setupalign options lesswidows and lessclubs 
because the above is not something that users should nother about.


These set high penalties for the first and last line, somewhat lower for 
the ones following and preceding.


We also have strictwidows and strictclubs that do your three thing.


Ok, I’m looking forward to it.

In case you wonder about the 'double' ... we can have different values 
for left and right pages because (we think that) on a spread a widow or 
club is less of a problem.


Fwiw, much of this of this already has been there for a while (as 
discussed at the meeting) but we're now integrating it into \setupalign 
and making sure that the overhead can be neglected.


Great!

I already do without grid, VZ works, HZ also should (I didn’t check 
with a tracker, and it’s not so extreme that I’d see it), but it’s not 
enough to automatically avoid single lines.


Indeed, so the stricter penalties combine well with vz


If a paragraph starts at page breaks, I can tweak the layout like
\page\setuplayout[narrow]. I defined narrow, normal, and wide versions 
with 1 mm difference. Before I didn’t know you can call named layouts 
like this, also relative page numbers like \definelayout[+1][wide] are 
nice.


If that’s not enough, I’m using \letterspacing with tiny ± values.

So much about dirty tricks. ;)


parpasses will permit you to have steps with different solutions so 
expansion can be delayed till it is really needed; interesting is that 
even with (say 8) par passes, most time the solution is found in the 
first (no hyphenation with 100 tolerance) or second pass (hyphenation 
with 200 tolerance) and the number last pass can be counted on one hand


Yes, you demonstrated several times. I just didn’t dare or was too lazy 
to delve into the “plain TeX” syntax to try.


(there are options to mark pararaphs and see what pass succeeded as well 
as overviews in the logs so that one can go to problematic places but 
that's for Keith to experiment with)


We're really surprised how well this all works on complex content (say 
very math intense, read: demanding wrt where to break).


If it also works with code examples, It’ll be great for the ConTeXt 
journal and my book.


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: “breaking news”

2024-09-30 Thread Henning Hraban Ramm

Am 30.09.24 um 20:14 schrieb Hans Hagen:

On 9/30/2024 6:22 PM, Henning Hraban Ramm wrote:

Hi,
since the latest update, I have differences in line/paragraph/page 
breaking. I should have expected that vz and granular aren’t stable 
yet, but maybe it’s a problem in my setup and not even related to that 
update.


* widow and orphan penalties seem to work different, preferring empty 
lines over single lines.

* looseness doesn’t seem to work any more.

Were there changes?


Not intentionally. We're bringing widow and club penalties stepwise 
under \setupalign control so maybe something was forgotten. For 
instance, \widowpenalty and \widowpenalties are competing and the next 
upload will deal with that (first we need to test some complex documents).


It’s probably something I changed and can’t find it in my git log.

Generally it seems to be a bit better than before, needs less trickery, 
but it’s different enough that I had to start work on my current book 
from the beginning.


It’s a novel of ~650 pages with a big range of paragraph lengths (some 
dialogues with short lines as well as paragraphs that span pages). “Of 
course” you often get a 3-line paragraph over a page break – it’s hard 
to avoid widows and orphans.


I already do without grid, VZ works, HZ also should (I didn’t check with 
a tracker, and it’s not so extreme that I’d see it), but it’s not enough 
to automatically avoid single lines.


If a paragraph starts at page breaks, I can tweak the layout like
\page\setuplayout[narrow]. I defined narrow, normal, and wide versions 
with 1 mm difference. Before I didn’t know you can call named layouts 
like this, also relative page numbers like \definelayout[+1][wide] are nice.


If that’s not enough, I’m using \letterspacing with tiny ± values.

So much about dirty tricks. ;)

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] “breaking news”

2024-09-30 Thread Henning Hraban Ramm

Hi,
since the latest update, I have differences in line/paragraph/page 
breaking. I should have expected that vz and granular aren’t stable yet, 
but maybe it’s a problem in my setup and not even related to that update.


* widow and orphan penalties seem to work different, preferring empty 
lines over single lines.

* looseness doesn’t seem to work any more.

Where there changes?

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: Mail server login broken

2024-09-29 Thread Henning Hraban Ramm

Am 29.09.24 um 17:57 schrieb Hans Åberg via ntg-context:

Nothing seems to be working on the NTG ConTeXt server login page below, so I 
can't change my email address.

https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl/


Try https://lists.contextgarden.net/mailman3/ the footer is apparently 
wrong.


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: ConTeXt Journal 2022 finally online

2024-09-29 Thread Henning Hraban Ramm

Am 29.09.24 um 08:05 schrieb Otared Kavian:

Hi Hraban, Hi Taco,

Thanks for your work !
May I suggest a small change in the presentation of the years in
https://articles.contextgarden.net/journal/ articles.contextgarden.net/journal/>

in the right column « Navigation »?
I think it would be more convenient to order the links to the years in 
decreasing order, that is to present the most recent year on top.


Makes sense to me, here you are.

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: ConTeXt Journal 2022 finally online

2024-09-29 Thread Henning Hraban Ramm

Am 29.09.24 um 03:23 schrieb Jim:

Hi, see below.

On Sun, Sep 29, 2024 at 09:27 (+0900), Emanuel Han via ntg-context wrote:


The links to the PDFs are not found URLs.


If you peek at the links and see '/journal' twice, then (at least in the
one case I tried) editing the URL to remove a '/journal' got it working.


Oops, sorry. It’s fixed now.

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] ConTeXt Journal 2022 finally online

2024-09-28 Thread Henning Hraban Ramm

I just uploaded the articles from 2022:
https://articles.contextgarden.net/journal/2022.html

For 2023, there’s the table of contents, but as usual, we’ll wait a few 
months with the PDFs. (They’re already prepared.)


(Thanks to Taco who did it up to 2021 and provided me with a script to 
simplify the task.)


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: index entry with sorting and processor

2024-09-27 Thread Henning Hraban Ramm

Am 27.09.24 um 17:09 schrieb Wolfgang Schuster:
Try the following example which tries to cover a few of the question 
asked by Hraban. When you uncomment the first part you notice a few 
processors are ignored when you use the same entry with and without 
formatting.


Thank you, Wolfgang!

I still didn’t manage to combine "Anything" and "\Word{anything}", they 
become separate entries that look the same.


"""
\defineprocessor [Titling] [command=\Word]
\defineprocessor [Red]  [color=red]

\starttext

anything\setregisterentry[index][entries=Anything]

something\setregisterentry[index][entries=Something]

\page

Anything\setregisterentry[index][keys=Red->Anything,entries=Titling->anything]

Something\setregisterentry[index][keys=Red->Something,entries=Titling->something]

\page

\placeindex

\stoptext
"""

Hraban

(WRT processors: I still need to process your other answers, bear with me…)


___
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: documentation (was: As a person with very basic LaTeX skills…)

2024-09-25 Thread Henning Hraban Ramm

Am 25.09.24 um 12:59 schrieb Jean-Pierre Delange:
Without burdening your shoulders with extra work, perhaps a 
collaborative translation into different languages would be appropriate? 
What do you think?


Wait until you see it and if you really want to translate it.

I don’t really trust in promises any more esp. WRT to documentation.
What became of the “cookbook”? What happened to the other book projects?

Since nearly all other documentation is in English, my book is already 
mostly an edited translation, and it doesn’t make sense to translate it 
back.


Maybe just work on what is already public:

https://github.com/contextgarden/not-so-short-introduction-to-context
https://github.com/AKielhorn/Context-Intro
https://ctan.org/pkg/context-notes-zh-cn
https://wiki.contextgarden.net/ConTeXt,_an_excursion
… and the wiki, of course.

Thanks to anyone who is or was actively contributing!

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: As a person with very basic LaTeX skills, no experience with programming languages and an interest in LMTX (I have been coding extremely basic LMTX), how do I properly learn LMTX as

2024-09-25 Thread Henning Hraban Ramm

Am 25.09.24 um 10:54 schrieb Shiv Shankar Dayal:

Why do you ask Hans about my book?

It’s a general manual about ConTeXt (MkIV/LMTX), at the moment at 498
pages, but only in German (to be published in the DANTE series at
Lehmann’s).


Will there be an English version? I would like to buy one.


Thank you, but probably not.
It will be enough work to keep the German edition up to date, and I 
don’t need even more projects.


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: As a person with very basic LaTeX skills, no experience with programming languages and an interest in LMTX (I have been coding extremely basic LMTX), how do I properly learn LMTX as

2024-09-25 Thread Henning Hraban Ramm

Am 25.09.24 um 08:57 schrieb Tommaso Gordini:
I have a question for Hans: will Hraban's book deal with specialist 
issues or will it be, so to speak, a general manual on LMTX?


Why do you ask Hans about my book?

It’s a general manual about ConTeXt (MkIV/LMTX), at the moment at 498 
pages, but only in German (to be published in the DANTE series at 
Lehmann’s).

I try to keep most of the information also in English in the wiki.

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: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Henning Hraban Ramm

Am 24.09.24 um 16:14 schrieb Shiv Shankar Dayal:

The problem is that PDF Outline does not show roman numerals.
It shows page numbers in arabic numerals.


Sorry, I misunderstood.

I don’t know and can’t find any documentation on that.

Did you try a different PDF viewer? The display of the PDF outline 
probably depends on the viewer.


Maybe try
\enabledirectives[references.bookmarks.preroll]
or
\setupheads[expansion=yes]

I’m not sure if the numbering of bookmarks is related to expansion of 
their text.



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: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Henning Hraban Ramm

Am 24.09.24 um 14:05 schrieb Shiv Shankar Dayal:

Hi all,

I want to switch page numbering from roman(which is
typical in frontmatter) to roman. I also want these to
appear in PDF outline.

Can someone provide an MWE?


It’s a bit unclear what your problem is.

Try
\setupuserpagenumber[numberconversion=romannumerals]

Instead of “romannumerals” you can also use r, R, or, or RK.

If you meant “Arabic” numerals, try n, N, o, or zero.

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: suitable macros for Pandoc custom styles for paragraphs, spans and tables

2024-09-24 Thread Henning Hraban Ramm

Am 24.09.24 um 00:08 schrieb mf:


Any ideas to specify paragraph and character styles?


I’d use \definehighlight for character styles and \defineparagraph for 
par styles.


For the latter to work, you must add \startparagraph … \stopparagraph 
around each.
Not to be confused with \startparagraphs (plural), which is a columns 
mechanism.
Documentation in the wiki is still lacking (was missing until a few 
minutes ago).


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: As a person with very basic LaTeX skills, no experience with programming languages and an interest in LMTX (I have been coding extremely basic LMTX), how do I properly learn LMTX as

2024-09-24 Thread Henning Hraban Ramm
There are some introductions linked in 
https://wiki.contextgarden.net/Documentation


Manuals written for MkIV still apply to LMTX, even if there are 
sometimes better alternatives to some constructs.


I don’t think plain TeX literature like Knuth’s TeXbook or Eikhout’s TeX 
by topic makes sense for a beginner, depending on what you want to do.


It makes no sense to try to learn ConTeXt on the dry; choose a project 
and overcome its problems one after the other. If you don’t have an 
application for TeX, you don’t need to learn it. What do you want to 
achieve?


Hraban


Am 24.09.24 um 08:10 schrieb Shiv Shankar Dayal:

The easiest way is going through Wiki and manuals and their sources in
the distribution.
After that perhaps learn TeX from one of the textbooks like TeXBook,
TeX by Topic and
TeX for Impatient. For Metapost the manuals are quite extensive and
their are many
resources listed on Wiki.

On Tue, Sep 24, 2024 at 11:35 AM Felix  wrote:


I am someone who knows very basic LaTeX (I mostly learned with YouTube videos, but I would also 
honestly use AI to generate some code that I wanted it to make), extremely basic LMTX, and nothing 
like C++ or anything that I think would be considered "proper" programming languages. I 
have an interest in learning the newest edition of ConTeXt, but I am not sure if there is anything 
that could even guide a beginner wanting to learn the newest edition of ConTeXt (I believe MKIV and 
LMTX are regarded as being quite different). I want to get out of the habit of using AI to make 
stuff for me and to truly understand LMTX, but how can I do so if I seemingly do not have much 
understanding of ... I'll say "coding" in general? It is sometimes hard for me to read 
the documentation on ConTeXt garden, and I don't understand some things, but is this due to my lack 
of experience of looking at documentation? I would love any advice given to me.
___
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
___






___
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: Accessibility

2024-09-21 Thread Henning Hraban Ramm

Am 21.09.24 um 15:26 schrieb Pablo Rodriguez via ntg-context:

[...]
The more detailed explanation only intends to show why replying to a
message to create a new thread breaks the display of message threads.


When I click on one of the two links you have posted, it will open
«Same font for metafun as document»
What is this?


The main thread which the accesibility thread belongs to.

Sorry if the attached image displays what may be already clear to you,
but it displays all messages as a single thread (with Thunderbird).


I never saw or read this thread, so why do you think my email
hijacked something?
What have I done wrong?


Sorry if that wasn’t clear in my previous message, I‘m sure the issue
with thread  was not intended. What already happened is not important
(it just helps to increase the visibility of new threads).


It might be a problem of some email client(s) where the message IDs got 
mixed up or something like that. I can’t see this wrong thread in 
Thunderbird.


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: Downsampling images (again)

2024-09-21 Thread Henning Hraban Ramm

Am 21.09.24 um 16:30 schrieb Alan Braslau:

I would first "fix" my image sources, individually, to contain missing
resolution information.


The resolution setting is just metadata, it doesn’t affect pixel or file 
size. I need a function that works with “real” (pixel) sizes of images.


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] Downsampling images (again)

2024-09-21 Thread Henning Hraban Ramm

This is lying around for years, let’s try to get it finally working.
The code below works, but doesn’t do the right thing.

Since the original image doesn’t contain a resolution setting, gm 
doesn’t do anything:

“gm convert: image does not contain resolution”

It would be more reliable to use “gm convert -resize”, but for that we 
need to know the final pixel size.


How can a converter function access …
– the final (scaled) size of a placed image
– the original pixel size of an image
?
With that information it would be easy to calculate the target pixel size.

And then it would be nice to hook this function into 
\setupexternalfigure[conversion=]



"""
\startluacode
local function downsampler(oldname, newname, resolution)
if not resolution or resolution == "" then
resolution = 72
end
local cmd = string.format(
  [[gm convert -resample %ix%i "%s" "%s"]],
  resolution, resolution, oldname, newname)
logs.report("downsample", cmd)
os.execute(cmd)
end

-- Set the PDF and default JPEG converters to the above function.
figures.converters.jpg.pdf = downsampler
figures.converters.jpg.default = downsampler
\stopluacode

\setupexternalfigure[
  %conversion=downsampler,% not used
  resolution=10,
]

\starttext

\externalfigure[https://upload.wikimedia.org/wikipedia/commons/d/dd/Hermann_Zapf_signing.jpg][width=.5\textwidth]

\stoptext
"""

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] OT: fun tool for understanding Unicode and other text encodings

2024-09-19 Thread Henning Hraban Ramm

Paste something into
https://text.makeup/
and let it explain how an emoji is constructed, what the escaping means etc.
You can find examples in the left sidebar.

Have fun! HR
___
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: upload

2024-09-18 Thread Henning Hraban Ramm

Am 18.09.24 um 20:12 schrieb Pablo Rodriguez via ntg-context:

On 9/17/24 22:12, Henning Hraban Ramm wrote:

[...]
The “discussed things” also involved annotations. Here’s some
documentation:
https://wiki.contextgarden.net/Annotations
Please amend if something’s wrong/missing.



Sorry, but I’m afraid that I had to comment out the link to attachments
information, since there is no such feature.

…

I have a crappy patch that allows only direct links to embedded children
(no file attachment annotations).


Thank you. You’re right, I never checked this. I guess I got it from a 
mailing list message by you and thought it would be in the core.


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: upload

2024-09-17 Thread Henning Hraban Ramm

Am 17.09.24 um 13:52 schrieb Hans Hagen:

Hi,

I uploaded a new version. Apart from some things discussed here already 
the main update is in par passes (a bit more control, feedback, tracing 
etc) which will be explained over time (we're writing a wrapup).


The “discussed things” also involved annotations. Here’s some documentation:
https://wiki.contextgarden.net/Annotations
Please amend if something’s wrong/missing.

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: Accessibility

2024-09-17 Thread Henning Hraban Ramm

Am 17.09.24 um 12:48 schrieb Steffen Wolfrum:

Hi,

in summer 2015 there was a thread about accessibility.

Today I am looking for a solution for «images with alternate 
text» (https://en.wikipedia.org/wiki/Alt_attribute en.wikipedia.org/wiki/Alt_attribute>). In HTML it looks like this:




Is there an equivalent for this with ConTeXt?


AFAIK not.

There’s
\pdfbackendactualtext{visible}{alternative},
maybe it works with images, never tried.

If definitively doesn’t work with all PDF viewers/libraries, e.g. 
everything that uses Apple’s PDF library ignores the alternative.


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: Same font for metafun as document

2024-09-16 Thread Henning Hraban Ramm

Am 17.09.24 um 08:05 schrieb Shiv Shankar Dayal:

Suppose I use dejavu fonts for the main document then how can I have
metafun use the same fonts for labelling. All the metafun code is
inline.


MetaFun usually uses the main font. If it doesn’t, check if you set it 
up before you create your graphics.


If there’s a problem, make a minimal example (MWE).

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] OT: fractal serif

2024-09-16 Thread Henning Hraban Ramm

Here’s an idea for a variable font axis: "serif fractal iterations"

Source: https://mastodon.social/@Agar/113146403367955424

;)___
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] syntax highlighting: pandoc uses Kate

2024-09-16 Thread Henning Hraban Ramm

Hi, since we recently discussed editor support and syntax highlighting:

Pandoc can use definitions from Kate[1] for syntax highlighting in a 
code block via "--syntax-definition".


There’s also ConTeXt support (MkIV/LMTX):

https://kate-editor.org/syntax/data/syntax/context.xml

Apparently, it can switch contexts to Lua, XML, MetaPost etc.
But the list of commands is quite short.

In case the author (Philipp A.) is listening: Is this intentional (“not 
necessary, highlight everything that starts with a backslash”)? 
Otherwise it probably would make sense to read in the interface files 
(i-*.xml).


I can’t tell if it would make sense to support this syntax via a module 
(like scite and vim). What we have if probably enough for most of us.


Hraban

[1]
List: https://kate-editor.org/syntax/
Specs: https://api.kde.org/frameworks/syntax-highlighting/html/
___
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: Calling C code from ConTeXt LMTX

2024-09-16 Thread Henning Hraban Ramm

Am 16.09.24 um 12:59 schrieb Bruce Horrocks:




On 15 Sep 2024, at 22:11, Florent Michel  wrote:

Thanks Bruce for your very helpful reply!

The reason for my question was indeed consistency, e.g. ensuring figure 
captions stay up to date with what the figures show when changing parameters. 
Thinking more about it, the second solution you mention seems to be a better 
option, though - I can simply define the parameters in an external file and 
read it from both the PDF solver and ConTeXt to ensure consistency. Thanks for 
mentioning it!

Thank you also for mentioning \executesystemcommand, which I was not aware of!


Another option might be to use a marker such as

% DE_figure_here param1 param2 param3

in your ConTeXt source and then use 'awk' or another Unix text pre-processor to 
scan through for these, run the appropriate DE calculation, plot the graph and 
generate the appropriate \placefigure command to go in its place.

Bonus marks if it can automatically generate the caption based on the 
parameters! But if not, the marker can always follow the \placefigure macro e.g.

\placefigure
   {This is a DE showing something and something else}
   % DE_figure_here param1 param2 param3

so the awk code only needs to insert the image file name.

Note I’ve deliberately omitted the braces from the bit to be substituted so 
that you need to generate them in the awk. That way, if you forget to process, 
you’ll get an error not a missing image.


That sounds needlessly convoluted to me.
I’d use Aditya’s filter module to call external programs, it also does 
caching, i.e. if the parameters don’t change, it won’t waste processing 
time.


https://github.com/adityam/filter

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: button

2024-09-16 Thread Henning Hraban Ramm

Am 16.09.24 um 11:41 schrieb Hans van der Meer via ntg-context:
\button is defined to jump to a given reference. However, I would like 
to place a button that can execute a macro to be defined by myself.
Thus for example pushing the button \executebutton{text}{macro} will 
execute that macro.


Is this available somewhere in ConTeXT? If not, can it be provided in a 
future update?


Did you try \button[Options]{Something}[YourJSFunction] ?

I don’t know it that’s limited to a few predefined functions.

see https://wiki.contextgarden.net/Widgets#JavaScript and 
https://source.contextgarden.net/scrn-but.mkvi


Just to be sure: You understand that this works via JavaScript in the 
viewer, only supported by Acrobat and PDF Studio?


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: ConTeXt beginner, What should I enable within font features? And how do I see all the options possible?

2024-09-13 Thread Henning Hraban Ramm

Am 13.09.24 um 16:21 schrieb Wolfgang Schuster:
2. When you don't know what the effect of an opentype feature is (look 
at https://www.preusstype.com/techdata/features.php for a few examples) 


Also this list:
https://en.wikipedia.org/wiki/List_of_typographic_features

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] your favourite ConTeXt debugging tools

2024-09-12 Thread Henning Hraban Ramm
There’s a growing number of trackers and directives, as well as \show… 
commands. I’m sure there are some that I could/should use and just don’t 
know, and there’s just too much to try.


Which are your hidden gems or favourite tools?

I’ll start:

\showlayout: inserts 4 pages of layout dimensions
\showmakeup: values of many details, e.g. distances and kerning
\showgrid: line grid for grid mode
\showframe: all frames
\showboxes: draw frames around a few areas
\showsetups: list of variables
\showbodyfont: variants of tha active font family
\showbodyfontenvironment: values of relative sizes
\showsymbolset[name]: list of symbols
\showstruts
\showcolor, \showcolorcomponents
\showpalet, \comparepalet
\showexternalfigures

\showtrackers – or "context --trackers"
\showdirectives – or "context --directives"


Trackers:
builders.hpack.overflow – mark under-/overfull hboxes
hyphenation.applied.visualize – show hyphenation
https://wiki.contextgarden.net/Trackers/typesetters.suspects
https://wiki.contextgarden.net/Trackers/visualizers.justification


Directives:
pdfview.method=auto (in contextcnf.lua) to change --autopdf default
logs.errors=* – make warnings errors(?)
logs.quitonerror=* – stop at every error
references.bookmarks.preroll – expand(?) macros in bookmarks
backend.pdf.nounicode=X – obfuscate text


Let’s fill in and complete
https://wiki.contextgarden.net/Trackers
(the list was made in 2012 and is quite outdated)

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: regular online meetup

2024-09-11 Thread Henning Hraban Ramm

Reminder: This is tonight.

Am 09.09.24 um 09:59 schrieb Henning Hraban Ramm:

Oops, I nearly forgot:

You’re invited to our regular online meet-up, this upcoming
Wednesday, September 11, 19:00 CEST (UTC+2)

at https://lecture.senfcall.de/hen-rbr-rku-oke
(same, but shorter: https://u.mtxrun.eu/ctxmtg)

ConTeXt users of all levels are welcome!

Looking forward to seeing you,
Hraban


(Same blurb as always:)

[Howto]
* No special software installation required; most modern browsers should 
work (WebRTC required).

* Open the URL above, accept the privacy statement,
* enter your name,
* click "join" (or "start" if you’re the first),
* click "with microphone", allow your browser to access it, check the 
audio.
* Your microphone is muted if you join. Activate microphone and/or 
camera with the buttons at the bottom.

* Minimize the default presentation with the "screen" button, bottom right.

* If you’d like to share your screen or upload a file, you can make 
yourself the presenter: Click on your user name, change the setting, 
then you’ll see the "screen sharing" button beside the camera button; 
also there’s now "manage presentations" behind the "plus" button.
Beware there is only one presenter at a time, so don’t kill someone 
else’s presentation.


[Technical hints]
* Sound is usually better if you use a headset (less noise for everyone).
* Connection problems are mostly due to low bandwidth or high latency on 
your side, e.g. with mobile connections.

* Sometimes leaving and re-entering helps.
* If audio/video doesn’t work for you, you can still use the text chat.
* Screen sharing needs a lot of bandwidth.
* BigBlueButton documentation applies: 
https://bigbluebutton.org/teachers/tutorials/


[Netiquette]
* Please use a name that we recognize from here. Some feel uncomfortable 
with anonymous lurkers.

* Mute your microphone while you’re not talking.
* It’s nice to show your face at least when you join.
* If there are connection problems, stop camera sharing.
* The room is set to “everyone’s a moderator“, I trust you...
___
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
___


___
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] regular online meetup

2024-09-09 Thread Henning Hraban Ramm

Oops, I nearly forgot:

You’re invited to our regular online meet-up, this upcoming
Wednesday, September 11, 19:00 CEST (UTC+2)

at https://lecture.senfcall.de/hen-rbr-rku-oke
(same, but shorter: https://u.mtxrun.eu/ctxmtg)

ConTeXt users of all levels are welcome!

Looking forward to seeing you,
Hraban


(Same blurb as always:)

[Howto]
* No special software installation required; most modern browsers should 
work (WebRTC required).

* Open the URL above, accept the privacy statement,
* enter your name,
* click "join" (or "start" if you’re the first),
* click "with microphone", allow your browser to access it, check the audio.
* Your microphone is muted if you join. Activate microphone and/or 
camera with the buttons at the bottom.

* Minimize the default presentation with the "screen" button, bottom right.

* If you’d like to share your screen or upload a file, you can make 
yourself the presenter: Click on your user name, change the setting, 
then you’ll see the "screen sharing" button beside the camera button; 
also there’s now "manage presentations" behind the "plus" button.
Beware there is only one presenter at a time, so don’t kill someone 
else’s presentation.


[Technical hints]
* Sound is usually better if you use a headset (less noise for everyone).
* Connection problems are mostly due to low bandwidth or high latency on 
your side, e.g. with mobile connections.

* Sometimes leaving and re-entering helps.
* If audio/video doesn’t work for you, you can still use the text chat.
* Screen sharing needs a lot of bandwidth.
* BigBlueButton documentation applies: 
https://bigbluebutton.org/teachers/tutorials/


[Netiquette]
* Please use a name that we recognize from here. Some feel uncomfortable 
with anonymous lurkers.

* Mute your microphone while you’re not talking.
* It’s nice to show your face at least when you join.
* If there are connection problems, stop camera sharing.
* The room is set to “everyone’s a moderator“, I trust you...
___
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: syntax highlighting (was: Steps to become a ConTeXt developer)

2024-09-08 Thread Henning Hraban Ramm

Am 08.09.24 um 12:12 schrieb Wolfgang Schuster:

Hans Hagen via ntg-context schrieb am 28.08.2024 um 20:18:

On 8/28/2024 5:06 PM, Henning Hraban Ramm wrote:

There’s also the scite module that uses SciTE’s lexers for syntax 
highlighting. The builtin highlighters are limited to TeX/ConTeXt, 
MetaPost, Lua and XML.
They are actually just lpeg lexers that we made for use in scite so no 
scite installation is needed.


Which highlighter should extended when support for additional languages 
is needed, the built-in one or the scite version?


The scite module doesn’t support escaping, and the TeX highlights of 
both are conflicting. It would be nice if that could be fixed.
(I need the scite highlighters for e.g. bash and escaping in TeX 
highlighting, ATM I can’t have both.)


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: Combining styles (especially bold and italic)

2024-09-03 Thread Henning Hraban Ramm

Am 03.09.24 um 18:28 schrieb Gerion Entrup:

Hi,

I have the situation that I want to typeset a special formatted name within a 
section heading.
The name contains an italic part while the heading is bold, but both styles are 
defined at another place.
Is there a way to tell ConTeXt to combine them, so that it is bold _and_ italic?


try \bi

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] MetaPost dirtree?

2024-08-29 Thread Henning Hraban Ramm

Hi, did someone already create directory trees with MetaPost?

It should be quite easy, but I couldn’t find examples and was thinking 
about porting the LaTeX dirtree package (i.e. look at the code and try 
to implement something similar in Lua and MP).

I have ideas… (but I have always too many of them).

So far, I used the output of `tree`, and that’s not really beautiful.

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: Steps to become a ConTeXt developer

2024-08-28 Thread Henning Hraban Ramm

Am 28.08.24 um 16:47 schrieb Mojca Miklavec:

On Wed, 28 Aug 2024 at 12:03, Shiv Shankar Dayal wrote:


I have two specific interests. I want to make asymptote work with ConTeXt
but I can live with including generated images and use PDFs.


There’s the built-in asymptote module:

https://source.contextgarden.net/tex/context/modules/mkiv/m-asymptote.mkiv

I don’t know if it still works and if it could/should be improved.

There’s also Aditya’s filter module that alleviates calling external 
programs (I’m using it with LilyPond):


https://github.com/adityam/filter

But calling external programs is slow.

MetaPost is fast, (also) because it is integrated as a library.

It’s possible to address C libraries using Lua’s FFI (don’t ask me how, 
there is/was a manual).


Also, Hans announced to include some "2.5D" functions (perspective 
projections) into MetaFun soon. That might obsolete some uses of 
Asymptote. But a proper 3D model for MetaPost seems to be missing (not 
my expertise).



The second interest is in Aditya Mahajan's syntax highlighting module.
It is very nice but it invokes VI making the entire thing slow. I understand
the advantage of using VI is that we do not have to implement anything
when a new language comes. VI will have syntax highlighting and it will
be automatically done for us.


ConTeXt does support native syntax highlighting. You can try to create
some new grammars to extend language coverage (Hans only made sure
that TeX, lua, metapost etc. work correctly). Or you can try to start
brainstorming whether some existing OpenSource grammars could be
integrated to do syntax highlighting using Lua.

Vi was a shortcut to get the syntax highlighting done in some way at all.


There’s also the scite module that uses SciTE’s lexers for syntax 
highlighting. The builtin highlighters are limited to TeX/ConTeXt, 
MetaPost, Lua and XML.


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: Steps to become a ConTeXt developer

2024-08-28 Thread Henning Hraban Ramm

Am 28.08.24 um 10:57 schrieb Shiv Shankar Dayal:

On Wed, Aug 28, 2024 at 8:17 AM Jethro Djan  wrote:


Hi,

Not sure what you mean by a core ConTeXt developer. I think, as with anything, 
you get better at it by using it extensively. I would focus on a use case of 
interest and take advantage of ConTeXt’s unmatched extensibility to automate 
much of it as possible. Then you ask for help when you get stuck.

If you want to contribute to ConTeXt, maybe start by having a look at the 
source and try to understand what’s going on (should be accessible to you since 
you are a C developer). If you identify a bug, or want to propose a feature, I 
am sure the community will support you however it can.

Jethro


I want to contribute to ConTeXt. I think that the steps for me should be:

1. Learn TeX
2. Learn LuaMetaTeX

and then I can approach the C code. It won't make any sense if I just
start reading the LuaMetaTeX code.


Sure, without a deep understanding of TeX it makes no sense to try 
anything with the C code.

Also, most of ConTeXt is written in Lua.

If you want to contribute, help with documentation – there are still too 
many commands and options undocumented in the wiki.
If you don’t understand enough of ConTeXt to do that, anything deeper 
makes no sense anyway.


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] documenting namespaces and modules

2024-08-27 Thread Henning Hraban Ramm
After I got Wolfgang’s slides[1] and code example[2] from the “writing 
modules” workshop that I requested, I updated several wiki pages:


* https://wiki.contextgarden.net/Modules
* https://wiki.contextgarden.net/Module_Writing
* https://wiki.contextgarden.net/Module_template
* https://wiki.contextgarden.net/Module_Namespaces

There are probably still errors or outdated relics left.
Corrections appreciated.

Hraban

[1] https://meeting.contextgarden.net/2024/talks/wolfgang/module_howto.pdf
[2] https://meeting.contextgarden.net/2024/talks/wolfgang/t-messenger.mkxl
___
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: Numbered equation

2024-08-27 Thread Henning Hraban Ramm

Am 27.08.24 um 17:10 schrieb Fabrice Couvreur:

Numbered equation
Hello,
Assuming i am working in the first chapter, using \startplaceformula ... 
\stopplaceformula induces a numbered equation (1.1), (1.2), etc

How to get (1), (2), etc ?


Try \setupformula[prefix=no]

Otherwise look into the options of 
https://wiki.contextgarden.net/Command/setupcounter, e.g. prefixset 
(\setupformula inherits from \setupcounter).


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: chapter counter?

2024-08-26 Thread Henning Hraban Ramm

Am 26.08.24 um 17:58 schrieb Aditya Mahajan:

On Mon, 26 Aug 2024, Henning Hraban Ramm wrote:


Hi,
I’d like to check the chapter number like

\ifodd\rawcountervalue[chapter]
What an odd chapter!
\fi

but apparently the counter isn’t called "chapter", or I’m doing it wrong
otherwise.
Could you enlighten me?


You need: \somenamedheadnumber{chapter}{current}


Thank you, esp. for the effort!

See my other mail – expansion got into my way, and I found a different 
solution.


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: chapter counter?

2024-08-26 Thread Henning Hraban Ramm

Am 26.08.24 um 17:57 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 26.08.2024 um 17:41:

Hi,
I’d like to check the chapter number like

\ifodd\rawcountervalue[chapter]
What an odd chapter!
\fi

but apparently the counter isn’t called "chapter", or I’m doing it 
wrong otherwise.

Could you enlighten me?


\namedheadnumber{chapter}


Thank you, but it doesn’t work in my setup where I’m trying to change a 
background image depending on the chapter number:


\defineoverlay[BG][\start
\ifodd\namedheadnumber{chapter}\relax
\externalfigure[bgimage][height=\overlayheight]
\else
\mirror{\externalfigure[bgimage][height=\overlayheight]}
\fi
\stop]

This is then used with

\setlayerframed[papier][background=BG]

I guess it’s expanded only once.

But it was a bad idea anyway, I wanted more than two variants and now 
just set them as a uservariable.


Sorry for the effort.

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] chapter counter?

2024-08-26 Thread Henning Hraban Ramm

Hi,
I’d like to check the chapter number like

\ifodd\rawcountervalue[chapter]
What an odd chapter!
\fi

but apparently the counter isn’t called "chapter", or I’m doing it wrong 
otherwise.

Could you enlighten me?

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] index entry with sorting and processor

2024-08-25 Thread Henning Hraban Ramm

Hi again,

the page number of register entries from a glossary should have a 
different color:


\defineprocessor[glossar][color=green]
\define[1]\GlIndex{\index[glossar->]{#1}}

This works, but I’d like to apply a macro to the text, and then I need 
to set the sort order:


\define[1]\GlIndex{\index[glossar->#1]{\Word{#1}}}

This also works, but I get separate index entries from
\index{Something}
and
\GlIndex{something}

Glossary entries may be lowercase, but in the index I’d like to 
normalize to uppercase initials. (The index command is part of a lemma 
setup.)


How can I combine the entries?

I also tried \setregisterentry but didn’t find out how to use a 
processor for the page number. In the wiki, the (generally working) 
processor option is undocumented, so if there’s another option, it’s 
also missing.
In the source, I found processors for entry & page, but not how to 
address the latter.


MWE:
"""
\defineprocessor[glossar][color=green]
\define[1]\GlIndex{\index[glossar->#1]{\Word{#1}}}

\starttext

\samplefile{ward}
\index{something}
\index{anything}
\page

\samplefile{tufte}
\GlIndex{something}
\GlIndex{anything}

\page
\placeindex
\stoptext

"""

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: understanding units / dimensions

2024-08-25 Thread Henning Hraban Ramm

Am 25.08.24 um 15:52 schrieb Henning Hraban Ramm:

vh doesn't exist.


Ok, I had mis-noted vh from some older talk, meeting, or whatever, and 
forgot vs.


Stumbled upon it again:
At the end of https://www.tug.org/TUGboat/tb42-3/tb132hagen-dk.pdf
Hans wrote:

vw (relative to the \hsize), vh (relative to
the \vsize), maybe a percentage (but of what) and
ch (width of the current zero digit character).

As if that wasn’t official documentation…

WRT to funits see also 
https://www.tug.org/TUGboat/tb44-2/tb137egger-edith.pdf


HR
___
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: Is there a short-cut to adding sub-categories for index entries?

2024-08-25 Thread Henning Hraban Ramm

Am 25.08.24 um 15:38 schrieb Joel via ntg-context:

I have a document with thousands of index entries. Here’s a sample code:
Some people lived in 
\index{cliff-dwelling}\index{dwellings+cliff-dwelling}cliff-dwellings, 
while others lived in \index{lean-to}\index{dwellings+lean-to}lean-tos.




I’m wondering if there is a short-cut means to set this up, such that if 
I can tell the document that any time it sees “cliff-dwellings” in an 
index, it will also add its page numbers to under 
“dwellings+cliff-dwelling”? In other words, is there an easier way to 
add these categories, then to go through the entire document and mark 
them? I already have a list of all the words.


For instance, in my above code, I must find every \index{cliff-dwelling} 
entry and add a \index{dwellings+cliff-dwelling} next to it...which 
would take hundreds of hours if I did that for every word. Is there a 
quicker way to tell it always also add it under "dwellings" too?


If it’s just a few instances, define a macro:

\define[1]\DwIndex{\index{#1}\index{dwellings+#1}#1}

For a list of words, a lookup table and a Lua function make sense.

With a comparable problem, normalizing location names, I used this:

-- lookups.lua
userdata = userdata or { }

userdata.Mapping = {
  ["Albano"] = "Albano (Provinz Rom)",
  ["Altona"] = "Altona (Hamburg)",
  ["Aurich"] = "Aurich (Ostfriesland)",
-- …
}

function userdata.Lookup(name)
  context(userdata.Mapping[name] or name)
end


%%% environment

\loadluafile[lookups.lua]
\defineregister[Location][]
\define[1]\LocIndex{\expanded{\Location{%
  \ctxlua{userdata.Lookup("#1")


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: understanding units / dimensions

2024-08-25 Thread Henning Hraban Ramm

Am 25.08.24 um 14:15 schrieb Wolfgang Schuster:

Are there even more?


Yes, there are more of them.

Look into the lowlevel-registers document which describes how they are
created and also how you can define your own identifiers with \newuserunit.


Thank you! There must have been a manual, but I didn’t guess “registers” 
was relevant.



Questions:

How differs "1" from "2"?
* em fs



\NC em \EQ \the\dimexpr1em\relax \NC\NR % \emwidth
\NC fs \EQ \the\dimexpr1fs\relax \NC\NR % \globalbodyfontsize


Ok, so they can differ minimally; in my 10pt setup I get the same value.


* lw hs


lw stands for \linewidth which is the default value for rulethickness in 
\framed etc.


I mixed up \linewidth with \textwidth, thought the one was LaTeX and the 
other \ConTeXt, since we’re talking about rulewidth otherwise.



hs is just \hsize.


Then it makes sense.


* ph vh

ph is \paperheight.
vh doesn't exist.


Ok, I had mis-noted vh from some older talk, meeting, or whatever, and 
forgot vs.


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: Installation problem

2024-08-25 Thread Henning Hraban Ramm

Am 25.08.24 um 11:37 schrieb Thomas Meyer:

is it right that
https://wiki.contextgarden.net/Installation
for macOS X86
is not reachable?!


No.

But there were problems with the Pragma servers at least Thursday night 
and this morning, maybe continuously.


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] understanding units / dimensions

2024-08-25 Thread Henning Hraban Ramm
At the meeting I noted a few units that I didn’t know about, while I 
already knew many.


* general units: in, m, cm, mm (ft?)
* typographical units: pt, dd, bp, pc, cc, sp
* font related: em, ex, fs, fa, fd, fc, ch
* layout related: pw, ph, tw, th, cw, cd, lw, hs, vh
* frame related: fw, fh, fo
* funits: dk, es, tv, eu

Are there even more?

(Did you know all of them? This will be in the test…)


Questions:

How differs "1" from "2"?
* em fs
* lw hs
* ph vh


I want to update https://wiki.contextgarden.net/Dimensions

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: digits / units setup

2024-08-24 Thread Henning Hraban Ramm

Next try:

Apparently, \setupunit affects only \unit,
for \digits you still need \setdigitmode (and \setdigitorder).
Is this intentional?

Also, \spaceddigits works only with decimal point input and doesn’t 
react to any of the above settings, while \unit and \digits expect me to 
insert a thousands comma manually.

Does this make sense?

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: digits / units setup

2024-08-24 Thread Henning Hraban Ramm

Am 24.08.24 um 20:38 schrieb Henning Hraban Ramm:

According to docs,

\setupunit[method=3]

should change the rendering of numbers in

\unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”,

but it doesn’t.

\setdigitmode{3} works, though.


Seems to be a problem of my environment.

In a minimal example, \setupunit changes \unit, \setdigitmode changes 
\digits.


Sorry for the noise.

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] digits / units setup

2024-08-24 Thread Henning Hraban Ramm

According to docs,

\setupunit[method=3]

should change the rendering of numbers in

\unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”,

but it doesn’t.

\setdigitmode{3} works, though.


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: Does ConTeXt still support ePub output?

2024-08-24 Thread Henning Hraban Ramm

Am 24.08.24 um 17:12 schrieb Joel via ntg-context:
I recently learned I need to produce an ePub copy of my document, which 
will be used to produce braille and other versions of my file for people 
with limited or no vision. As I understand this is just like a ZIP file 
containing a bunch of HTML files with some links to each other. Though I 
could manually go and create tons of HTML files for it, I notice the 
ConTeXt Garden does mention ePub output as a possibility, but this page 
was updated in 2014, and I don't see any of hte sample code working.


Is ePub still a file format that ConTeXt can output? Does it require a 
significant rewrite of ConTeXt document code to be produced or is there 
a simple way to output this format?


Yes, I stopped working on ePub and updating the wiki pages, but did you 
even try?


You need
\setupbackend[export=yes] (see https://wiki.contextgarden.net/Export)
and probably
\setupexport[alternative=html],
that creates the necessary content files, and then

mtxrun --script epub yourdocument

creates an ePub, as documented in https://wiki.contextgarden.net/ePub

Unfortunately, the ePub at least doesn’t work with Calibre. I need to 
check what’s actually the problem.


When I last worked with ePub and created that wiki pages, I used my own 
scripts to make a working ePub from the export. I need to update that 
code and then the wiki. Don’t hold your breath.


The HTML export got much better recently, it now generates SVG for math 
and everything else where you use \startimage … \stopimage.

Maybe you can just use that HTML code without an ePub container.

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] OT: specifications and reality

2024-08-24 Thread Henning Hraban Ramm

Hi,

since Hans often refers to bad and changing “standards” (e.g. PDF, 
MathML, ePub…) and Taco told us about the mess of RTF: You’re not alone.


There’s the ONIX[1] XML standard for publication data, prominently used 
by the monopolist VLB (Verzeichnis lieferbarer Bücher, German catalogue 
of books in print).


A friend and I had the idea of an open book catalogue (for all 
publishers and bookshops that want to participate), and they’re setting 
up a proof of concept. Just got a message:


* The examples from the ONIX homepage have errors if you check against 
their “strict” schemas.
* The catalogue of our publishing house, exported as ONIX from VLB, has 
errors when checked against the “not strict” schema, i.e. VLB generates 
faulty data.


Beautiful standards…

Hraban

[1] https://www.editeur.org/83/Overview/
___
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: How should I be compiling my for-printers file?

2024-08-24 Thread Henning Hraban Ramm

Am 24.08.24 um 03:16 schrieb Joel via ntg-context:
I’m nearing the final stages of preparing a file for printing, which 
will be used to produce a textbook at a professional printer. The 
printer can accept PDF files, and I’ve been generating them using the 
|context filename.tex| command as part of my regular workflow.


I’m wondering if this approach is producing the highest quality output 
for printing purposes. Is there anything additional I should consider, 
such as installing LuaTeX or running specific commands, or command-line 
switches, to ensure the best possible print quality?


For context, when I installed ConTeXt standalone, it didn't seem to 
include LuaTeX by default, though after I installed, it asked me to run 
context --luatex commands which didn't function, so I worry my install 
isn't giving the best-possible output.


The current version of ConTeXt, LMTX, uses LuaMetaTeX which is a greatly 
enhanced version of LuaTeX. You don’t need the older program for 
anything, if LuaMetaTeX works for you.


PDFs generated by ConTeXt are usually as good as possible.

Additional stuff you must consider for professional printing are
– colors (better use CMYK; use images with proper ICC profiles)
- bleed (if you have elements that touch the margin of the paper, they 
must go ~3mm over the margin)
– crop marks (also make sense only if you have elements that go over the 
margin.

– imposition (ConTeXt speak: arranging) only if your printer can’t do it

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: Problem with Cambria

2024-08-16 Thread Henning Hraban Ramm

Am 16.08.24 um 09:47 schrieb Lutz Haseloff:

the latest ConTeXt lmtx seems to have a problem with MS Cambria.


For me, Cambria only works after a forced reload of the font database:

mtxrun --script font --reload --force

Otherwise everything is Cambria bold (from the same TTC).

I don’t know if your problem is related.



➜  ~ mtxrun --script font --list --pattern=cambria --all
identifier   familyname    fontname
filename    subfont   instances


cambriamathnormal    cambriamath   cambriamath 
/home/lutz/fonts/winfont/cambria.ttc    2
cambriamathregular   cambriamath   cambriamath 
/home/lutz/fonts/winfont/cambria.ttc    2



'/home/lutz/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-cambria.mkiv'
fonts   > defining > forced type 'ttf' of 'cambria' not found
fonts   > defining > unable to define 'cambria.ttf' as 
'cambria-12pt-rm-tf-0--0'

fonts   > defining > forced type 'ttf' of 'cambmath' not found
fonts   > defining > unable to define 'cambmath.ttf' as 


I’m not sure if "cambmath" or "cambria.ttf" relates to "cambria.ttc".

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: problem with location={right,high} in latest LMTX

2024-08-15 Thread Henning Hraban Ramm

Am 14.08.24 um 23:24 schrieb Wolfgang Schuster:


Line 1154 in strc-flt.mkxl:

\def\strc_floats_analyze_variables_two
   {...
-    \ifinset\v!high    \floatlocation\global  \plusone  \fi
+    \ifinset\v!high    \floatlocation\global\c_page_sides_skipmode 
\plusone  \fi
  \ifinset\v!low \floatlocation\global\c_page_sides_skipmode 
\plustwo  \fi
  \ifinset\v!fit \floatlocation\global\c_page_sides_skipmode 
\plusthree\fi
  \ifinset\v!tolerant 
\floatlocation\global\c_page_sides_tolerance\plusone  \fi

\ifinset\v!verytolerant\floatlocation\global\c_page_sides_tolerance\plustwo \fi
    ...}


Thank you, it works (of course).

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] problem with location={right,high} in latest LMTX

2024-08-14 Thread Henning Hraban Ramm

There seems to be a regression with sidefloats:

"""
\useMPlibrary[dum]

\starttext

\startplacefigure[title={problem},location={right,high}]
\externalfigure[dummy][width=.3\textwidth]
\stopplacefigure
\samplefile{ward}

\stoptext
"""

results in

tex error   > tex error on line 8 in file 
de/_tests/sidefloattest.tex: Missing number, treated as zero




\global

...80=>\global \c_strc_floats_rotation \commalistelement \relax 
,270=>\global \c_strc_floats_rotation \commalistelement \relax ]\fi 
\ifinset \v!paragraph \floatlocation \global \c_page_sides_force_shape 
\conditionaltrue \else \global

\c_page_sides ...
 \p_crossreference
...ation \floatlocationdefault \let \forcedfloatmethod 
\floatlocationdefault } \donothing \fi \ifempty \forcedfloatmethod \let 
\forcedfloatmethod \v!here \fi \fi \fi \strc_floats_check_extra_actions 
\strc_floats_analyze_variables_two

\strc_floats_ ...

\stopplacefigure

 1
 2 \useMPlibrary[dum]
 3
 4 \starttext
 5
 6 \startplacefigure[title={problem},location={right,high}]
 7 \externalfigure[dummy][width=.3\textwidth]
 8 >>  \stopplacefigure
 9 \samplefile{ward}
10
11 \stoptext
12



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: regular online meet-up

2024-08-14 Thread Henning Hraban Ramm

Reminder: This is tonight (or whatever time at your place).
HR

Am 10.08.24 um 12:48 schrieb Henning Hraban Ramm:

Even if it’s just a few days before our in-person context meeting:

You’re invited to our regular online meet-up, this upcoming
Wednesday, August 14, 19:00 CEST (UTC+2)

at https://lecture.senfcall.de/hen-rbr-rku-oke
(same, but shorter: https://u.mtxrun.eu/ctxmtg)

ConTeXt users of all levels are welcome!

Do you have a subject that you’d like to talk about?
Is there something we should discuss before the Lutten meeting?

Looking forward to seeing you,
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] no escaping with scite highlighting any more?

2024-08-11 Thread Henning Hraban Ramm

Hi, this used to work:

"""
\usemodule[scite]

% the setup doesn’t change the behavior, I think it used to.
\setuptyping[TEX][
  option=tex, % scite sets "cld"
]

\starttext

\startTEX[escape=yes]
\definemeasure[PageWidth][165mm]  /BTEX\hfill{\ss Dimensions}/ETEX
\definemeasure[PageHeight][239mm]

\definepapersize[DANTE][  /BTEX\hfill{\ss Paper size}/ETEX
  width=\measure{PageWidth},
  height=\measure{PageHeight},]
\setuppapersize[DANTE]
\stopTEX

\stoptext
"""

Without the scite module, escaping in \startTEX works, but I need the 
module for some other highlighters.


Is there a solution?

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] regular online meet-up

2024-08-10 Thread Henning Hraban Ramm

Even if it’s just a few days before our in-person context meeting:

You’re invited to our regular online meet-up, this upcoming
Wednesday, August 14, 19:00 CEST (UTC+2)

at https://lecture.senfcall.de/hen-rbr-rku-oke
(same, but shorter: https://u.mtxrun.eu/ctxmtg)

ConTeXt users of all levels are welcome!

Do you have a subject that you’d like to talk about?
Is there something we should discuss before the Lutten meeting?

Looking forward to seeing you,
Hraban


(Same blurb as always:)

[Howto]
* No special software installation required; most modern browsers should 
work (WebRTC required).

* Open the URL above, accept the privacy statement,
* enter your name,
* click "join" (or "start" if you’re the first),
* click "with microphone", allow your browser to access it, check the audio.
* Your microphone is muted if you join. Activate microphone and/or 
camera with the buttons at the bottom.

* Minimize the default presentation with the "screen" button, bottom right.

* If you’d like to share your screen or upload a file, you can make 
yourself the presenter: Click on your user name, change the setting, 
then you’ll see the "screen sharing" button beside the camera button; 
also there’s now "manage presentations" behind the "plus" button.
Beware there is only one presenter at a time, so don’t kill someone 
else’s presentation.


[Technical hints]
* Sound is usually better if you use a headset (less noise for everyone).
* Connection problems are mostly due to low bandwidth or high latency on 
your side, e.g. with mobile connections.

* Sometimes leaving and re-entering helps.
* If audio/video doesn’t work for you, you can still use the text chat.
* Screen sharing needs a lot of bandwidth.
* BigBlueButton documentation applies: 
https://bigbluebutton.org/teachers/tutorials/


[Netiquette]
* Please use a name that we recognize from here. Some feel uncomfortable 
with anonymous lurkers.

* Mute your microphone while you’re not talking.
* It’s nice to show your face at least when you join.
* If there are connection problems, stop camera sharing.
* The room is set to “everyone’s a moderator“, I trust you...
___
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: Nāgarī for Academics

2024-08-10 Thread Henning Hraban Ramm

Am 10.08.24 um 11:10 schrieb Jürgen Hanneder via ntg-context:
\language[sa]{yoga}    % the word "yoga" is typeset in 
Nagari as expected,
test  % but the word "test" 
is still typeset in Nagari


Does it work if you say

{\language[sa]yoga}
test

?
I know \language only as a switch, but Hans changed several macros so 
that they work both ways. And the next \language should still switch, 
but perhaps \setuplanguage[en][setups=latin] or similar is necessary.


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] OT: lead chemistry

2024-08-08 Thread Henning Hraban Ramm
Guido Kühn, a design professor, caricaturist and avid manual typesetter, 
recently bought an old, empty cabinet for lead fonts. In that, he found 
a leftover piece of chemistry typesetting, made out of Berthold 
chemistry letters – nowadays exceptionally rare, since they were smelt 
down even earlier than other lead type.


source with photos:
https://mastodon.social/@GuidoKuehn/112922576039332335
https://mastodon.social/@GuidoKuehn/112927659972511919
https://cartoons.guido-kuehn.de/category/druckwerkstatt/
___
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] workflow tool: add to git

2024-08-07 Thread Henning Hraban Ramm

In case you organize your ConTeXt projects in git repositories:
"addtogit.py" is a little script that checks your log (or jlg) file for 
the local files used and adds them to the git stage. (No automatical 
commit so that you can check if you want these files.)

Leaves out auto-generated files like "m_k_i_v_*".
Needs Python and GitPython (pip install gitpython).

https://codeberg.org/fiee/context-tools

Have fun,
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: Customizing chapter titles

2024-08-06 Thread Henning Hraban Ramm

Am 06.08.24 um 21:26 schrieb Shiv Shankar Dayal:

What is the general method of customizing chapter titles? For example,
I would like something like the attachment. Is it achievable without
using Metapost?


If you can create it with a macro, you can use it for a title.

This looks just like \framed and \rotate with \offset.

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: placement of float captions in margin

2024-08-01 Thread Henning Hraban Ramm

Am 01.08.24 um 16:48 schrieb Henning Hraban Ramm:
Hi, I think this related to Gerion’s problem, but I don’t want to occupy 
the thread.


I’m trying to get captions in the (inner) margin.

With the setup below it works for left (even) pages; on right pages, the 
caption is placed beside the image, but over the text and not in the 
margin. (Yes, the big distance of image and caption is suboptimal, but 
leftfloats are worse, and the layout in question doesn’t have much space 
in the outer margin.)


If I uncomment %command to use \margincaption, and comment location 
instead, the caption is correctly inside the inner margin, but the width 
is always that of the left margin, i.e. too small on left pages.

I didn’t find a combination of options that completely works.


I solved it with an explicit width value.

Sometimes the caption just disappears.

You will see it at the meeting or in the journal…

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] placement of float captions in margin

2024-08-01 Thread Henning Hraban Ramm
Hi, I think this related to Gerion’s problem, but I don’t want to occupy 
the thread.


I’m trying to get captions in the (inner) margin.

With the setup below it works for left (even) pages; on right pages, the 
caption is placed beside the image, but over the text and not in the 
margin. (Yes, the big distance of image and caption is suboptimal, but 
leftfloats are worse, and the layout in question doesn’t have much space 
in the outer margin.)


If I uncomment %command to use \margincaption, and comment location 
instead, the caption is correctly inside the inner margin, but the width 
is always that of the left margin, i.e. too small on left pages.

I didn’t find a combination of options that completely works.

Hraban


\showframe
\usemodule[visual]
\useMPlibrary[dum]

\setuplayout[
  backspace=40mm,
  rightmargin=20mm,
  leftmargin=30mm,
  width=fit,
  height=fit,
]
\setuppagenumbering[alternative=doublesided]

\definemargindata[margincaption][inner][
  margin=margin,
  %width=\innermarginwidth,
  align=flushleft,
  stack=yes,
  voffset=-.5em,
]
\setupmarginframed[inmargin][
  align={flushleft,low},
]

\definefloat[rightfigure][figure]
\setupfloat[rightfigure][
  default=right,
  width=.33\textwidth,
]

\setupcaption[rightfigure][
  align={flushleft},
  width=\innermarginwidth,
  location=innermargin, % comment this
%command={\margincaption[inner]}, % uncomment this
  frame=on,
  framecolor=red,
  style={\ss\tfx},
]

\starttext

\dorecurse{20}{

\section{\fakewords{1}{5}}

\fakewords{10}{100}

\startplacerightfigure[title={\fakewords{2}{10}}]
\externalfigure[dummy][width=.33\textwidth,lines=5]
\stopplacerightfigure

\fakewords{10}{100}

}

\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: Alignments of margin notes

2024-08-01 Thread Henning Hraban Ramm

Am 01.08.24 um 14:50 schrieb Taco Hoekwater:

Something seems wrong with the align processing inside \setupmargindata, 
because using a macro like


I also got the impression that something must be wrong from my 
experiments with inmargin captions (see my architectural guides article 
in the current journal) but couldn’t yet make a minimal example.


E.g. I needed \outermarginwidth for inner margin, the vertical placement 
is irregular, and I couldn’t always get the alignment that I wanted.


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: upload

2024-08-01 Thread Henning Hraban Ramm

Am 31.07.24 um 19:55 schrieb Hans Hagen via ntg-context:

Hi,

end of the month update:

- we are still working on the math manual so updates there (we want the 
manual to stable for the upcoming meeting)


- we also work on the export (some changes and additions there but we 
will conver that plus some new tools later when we're done, read: are 
satisfied with what browsers can handle sort of well)


- wolfgang updated the setups (command definitions) so plenty of 
improvements and completion in there (he also did some quality assurance)


- all kind of small thingies (some to be introduced at the upcoming 
meeting were as usual we also discuss development and priorities)


- there are some new \setupalign options, like 'notwins', 'notoddlers' 
and 'noorphans' in case someone wants to be surprised


as usual when we run into unforseen issues we'll fix it,


I dared to update, since Hans’ & Mikael’s article for the journal 
required the latest version. (I wonder what \startimage is about…)


Being careful, I did a parallel install, but all looks good so far.

My book went from 490 to 484 pages, must investigate, might just be 
better paragraph/page/table breaking or something like that. Or is 
automatical nonsense-removal now included?


My usual TTC problem (all Cambria is Bold Cambria) didn’t show after 
installation of the distribution, but resurfaced after installing all 
modules. ("mtxrun --script font --reload --force" helped as usual.)


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: upload

2024-07-31 Thread Henning Hraban Ramm

Sound great, thanks!

I just don’t dare to update with printing deadlines approaching…

Hraban

Am 31.07.24 um 19:55 schrieb Hans Hagen via ntg-context:

Hi,

end of the month update:

- we are still working on the math manual so updates there (we want the 
manual to stable for the upcoming meeting)


- we also work on the export (some changes and additions there but we 
will conver that plus some new tools later when we're done, read: are 
satisfied with what browsers can handle sort of well)


- wolfgang updated the setups (command definitions) so plenty of 
improvements and completion in there (he also did some quality assurance)


- all kind of small thingies (some to be introduced at the upcoming 
meeting were as usual we also discuss development and priorities)


- there are some new \setupalign options, like 'notwins', 'notoddlers' 
and 'noorphans' in case someone wants to be surprised


as usual when we run into unforseen issues we'll fix it,

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 / 
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
___


___
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: combining float counters

2024-07-31 Thread Henning Hraban Ramm

Am 31.07.24 um 20:49 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 31.07.2024 um 20:43:
Hi, I defined new float types for special figure/caption placement, 
but would like to use the general figure counter. I didn’t find a 
setup for that. How can I do this?



\definefloat[myfigure][figure]


Uh, of course! Thank you, I was “standing on the hose” ;)

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] combining float counters

2024-07-31 Thread Henning Hraban Ramm
Hi, I defined new float types for special figure/caption placement, but 
would like to use the general figure counter. I didn’t find a setup for 
that. How can I do this?


pseudocode:

\setupfloat[myfigure][
  counter=figure,
]

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: How to hide any content?

2024-07-25 Thread Henning Hraban Ramm

Am 25.07.24 um 10:41 schrieb Taco Hoekwater:




On 25 Jul 2024, at 10:29, Joel via ntg-context  wrote:

I have a strange issue with some macros that are creating extra spaces between 
paragraphs. Note these macros shouldn’t create any content, as they define 
content that will be sent to registers and content that is used for page 
references. Its more like invisible data, perhaps the word is “metadata” and 
other parts of the document need to know it and refer to it, but nothing should 
be rendered there.


You will have to post a true minimal example including the correct definition 
of one of your macros.


Besides that, try a % at the end of each line of your macro and a comma 
after each setting.


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: spacing in columns

2024-07-23 Thread Henning Hraban Ramm

Am 23.07.24 um 11:36 schrieb Hans van der Meer via ntg-context:

The first screenshot has its items neatly stacked and  is made with
\startsimplecolumns[n=2]
\placenotes[endnote]
\stopsimplecolumns

The second screenshot has its items wide apart and  is made with
\startcolumns[n=2,blank=1pt]
\placenotes[endnote]
\stopcolumns

Question: how do I get rid of the interline space in the last case.
Whatever I fill in for blank= doesn't make a difference, the output is always 
the same.


Did you try \setupnote[footnote][n=2] to get columns?

Did you try \setupnote[footnote][inbetween=,spaceinbetween=,]?
(I didn’t check, trying footnote options is still on my todo list.)

https://wiki.contextgarden.net/Command/setupnote

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: Install urbanist fonts

2024-07-22 Thread Henning Hraban Ramm

Am 22.07.24 um 10:33 schrieb alan.caruanam...@gmail.com:

Hello, I was trying to install the urbanist fonts 
(https://github.com/coreyhu/Urbanist) but I couldn't get it to load and save 
the fonts in the system folder and in the ConTeXt folder without success, I 
could only get it to load when saving them in the current working directory but 
that is annoying, help me by telling me the correct way to install it... I 
leave you my code so you can review it and give me advice to improve it


Did you update the font cache?
mtxrun --script font --reload

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: request for talk/article on writing modules

2024-07-22 Thread Henning Hraban Ramm

Am 22.07.24 um 09:10 schrieb Taco Hoekwater:

Hi,


On 19 Jul 2024, at 17:06, Henning Hraban Ramm  wrote:

Hi wizards,
I’d really appreciate an introduction “how to write a ConTeXt module” at the 
meeting and in the next journal.


I’ll try to find some knowledgeable people for you.


Perhaps we can make it a workshop/discussion – take my new Chat module 
(because it’s not very involved module-wise) and discuss how to make it 
better (in the sense of a good ConTeXt citizen).

https://codeberg.org/fiee/context-chat

I can write a “lessons learned” article afterwards, if nobody else steps up.

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] spreadsheet module

2024-07-20 Thread Henning Hraban Ramm
Hi, I checked the spreadsheet module for the first time (in my own 
invoices I do everything in Lua and don’t need it).


In the attached example, I setup a decimal comma, as usual in German:
\setupspreadsheet[rechnung][
period={,}, comma={\,}, split=yes]

Unfortunately, this also replaces all dots in the text strings.

Is there a workaround (beside using \getspr in a “real” table)?

Apparently, \startrow or \startcell don’t understand the period setting.

Hraban

spreadsheet.tex
Description: TeX document
___
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: list of used files

2024-07-20 Thread Henning Hraban Ramm

Hans provided me with a patch that allows
\enabledirectives[system.dumpfiles=json]

It will be in the next update, I guess.

I’m using it with the new tool "addtogit.py"
in https://codeberg.org/fiee/context-tools
to add all files that are necessary for a
ConTeXt job to the current git repository.

Of course I could have parsed the log file.

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: list of used files

2024-07-20 Thread Henning Hraban Ramm

Am 20.07.24 um 10:04 schrieb Hans Hagen:

subconscious you know the answer:

    look at the log file


Not only sub*; I forgot to mention I’d like to avoid parsing that.


of course you can also try

\enabledirectives[system.dumpfiles=lua]

and stare at the resulting job log file (jlg)


Thank you!

Now my downsampling bites me:

  {

["filename"]="…/img/m_k_i_v_Fenster_jpg_2ec2682ee73b38bbc98c6d1432bf1bcb.lowres.jpg",

["foundname"]="…/img/m_k_i_v_Fenster_jpg_2ec2682ee73b38bbc98c6d1432bf1bcb.lowres.jpg",

["fullname"]="…/img/m_k_i_v_Fenster_jpg_2ec2682ee73b38bbc98c6d1432bf1bcb.lowres.jpg",
   ["usedmethod"]="direct",
  },

I can disable it:

  {
   ["filename"]="…/img/Fenster.jpg",
   ["foundname"]="…/img/Fenster.jpg",
   ["fullname"]="…/img/Fenster.jpg",
   ["usedmethod"]="direct",
  },

But images lack the "filetype" entry that other file types have, it 
would have been useful. But checking the file extension is good enough 
for my task.



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] list of used files

2024-07-20 Thread Henning Hraban Ramm

Hi,

is there some mechanism (directive?) that gives me a list of files that 
were involved in making a PDF? Preferably only those outside of the 
texmf trees, but I could filter that myself.


(With "latexmk -recorder somelatexfile" I get the file list as a .fls file.)

My goal is to commit all used images to my git repo, while I often have 
a big collection of images that I didn’t use in the end and don’t need 
in the repo.


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] request for talk/article on writing modules

2024-07-19 Thread Henning Hraban Ramm

Hi wizards,
I’d really appreciate an introduction “how to write a ConTeXt module” at 
the meeting and in the next journal.


* How does this namespace and setup stuff work?
* When does it make sense to use variables, macros or parameters?
* Should I use the namespace for internally used MP graphics, 
environments, buffers etc.?


I guess I can figure out most of it on my own, but I think we should 
have some easily understandable documentation.


Or do we already have something and I didn’t find it?

I can contribute the part about distribution.

Best, 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: Fwd: expansion and variables

2024-07-17 Thread Henning Hraban Ramm

Am 17.07.24 um 23:10 schrieb Hans Hagen:

\setevariable


Thank you, works!

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] expansion and variables

2024-07-17 Thread Henning Hraban Ramm

Something’s wrong with my code.
I’ll try to keep a status to output a certain marker only the first time 
after a change. With the code below I get it never.


I guess it’s an expansion problem again, but I didn’t find the right 
places for \expanded – if I use it in front of every \getvariable, I get 
the output every time.


Please help…
Hraban



\setvariable{Thing}{Status}{1}
\setvariable{Thing}{PreviousStatus}{0}

\define[1]\startThing{
  \setvariable{Thing}{PreviousStatus}{\getvariable{Thing}{Status}}
  \setvariable{Thing}{Status}{#1}
  <<< %

\doifnot{\getvariable{Thing}{Status}}{\getvariable{Thing}{PreviousStatus}}{%
\bold{\getvariable{Thing}{Status}}%
  }%
}

\def\stopThing{>>>\par}

\starttext

\startThing{A} a \stopThing
\startThing{B} b \stopThing
\startThing{A} c \stopThing
\startThing{C} d \stopThing
\startThing{C} e \stopThing
\startThing{A} f \stopThing
\startThing{A} g \stopThing
\startThing{A} h \stopThing

\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: Zed editor

2024-07-15 Thread Henning Hraban Ramm

Am 15.07.24 um 16:09 schrieb luigi scarso:


https://zed.dev/ 

It supports Tree-sitter.


Looks interesting, and I’ll check it out, but they’re already including 
“AI” and collect the users’ data (even if you still can disable 
telemetry etc.). They’re private-equity owned, and these owners want to 
see profit (or at least marketable data) at some time.


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] Context Journal: last call for articles / proofreaders wanted

2024-07-14 Thread Henning Hraban Ramm

Hi all,

with the articles by Massimiliano and Willi, we have already more than 
40 pages, more would be welcome, but please deliver within the next two 
weeks (until end of July)!


I would appreciate the help of English native speakers for 
proofreading/editing, you could start immediately with the existing 
articles.


I’m very sorry that I procrastinated for too long, so that we’re now in 
a hurry to get the journal printed in time for the meeting.


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: table float split behavior

2024-07-10 Thread Henning Hraban Ramm

Am 17.06.24 um 18:36 schrieb Henning Hraban Ramm:

Table floats split in odd places, independent of top/page/here location.

There’s always a first part, then some not-float text, then the other 
parts.


Even if the table would fit on two pages (with location=page), it always 
gets split into three.


Can I influence this anyhow?


Hans explained in today’s online meeting:

The float location "split" cannot be combined with other locations 
(here, top, bottom, page). "split" alone is like "here"; for "page", use


\startpostponing
\startplacetable[location=split]
\bTABLE
% long table
\eTABLE
\stopplacetable
\stoppostponing

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: regular online meet-up

2024-07-10 Thread Henning Hraban Ramm

Reminder: this is tonight!


I have questions about …
* table floats (is there a solution or workaround for the odd splitting 
behavior?),
* consecutive environments (can we know if this is the first or last of 
its kind in a series?)

* and a few details for documentation.

Would like to show my current solution to typesetting messenger chats 
and discuss how to make it better.


CU Hraban


Am 04.07.24 um 20:25 schrieb Henning Hraban Ramm:

You’re invited to our regular online meet-up, this upcoming
Wednesday, July 10th, 19:00 CEST (UTC+2)

at https://lecture.senfcall.de/hen-rbr-rku-oke
(same, but shorter: https://u.mtxrun.eu/ctxmtg)

ConTeXt users of all levels are welcome!

Do you have a subject that you’d like to talk about?

Looking forward to seeing you,
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: https://behdad.org/text2024/

2024-07-08 Thread Henning Hraban Ramm

Am 09.07.24 um 07:13 schrieb luigi scarso:


https://behdad.org/text2024/ 

A lot of stuff.


The author is quite opinionated against ConTeXt/LuaTeX, knows only the 
HarfBuzz version and can’t appreciate an independent, complete OpenType 
renderer, it seems.


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: table float split behavior

2024-07-08 Thread Henning Hraban Ramm

Am 08.07.24 um 15:48 schrieb vm via ntg-context:

There is a reason that the \recurselevel do not work in this context;
all \recurselevel show up as zero


   {\bTABLE
    \dorecurse{100}{
    \bTR \bTD \recurselevel \eTD \bTD one \eTD \eTR
    \bTR \bTD two \eTD \bTD \recurselevel \eTD \eTR
    }
    \eTABLE}


Any hint?


Something about expansion and maybe buffers.

Try #1, it often works where \recurselevel fails.

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: table float split behavior

2024-07-08 Thread Henning Hraban Ramm

Am 08.07.24 um 14:39 schrieb Bruce Horrocks:




On 7 Jul 2024, at 19:34, Henning Hraban Ramm  wrote:

Am 07.07.24 um 20:22 schrieb Bruce Horrocks:

On 7 Jul 2024, at 10:51, Henning Hraban Ramm  wrote:

Also, is it possible to have different captions in first and other parts?

This previous thread might help.
<https://www.mail-archive.com/ntg-context@ntg.nl/msg102641.html>


Thank you, but that doesn’t fit my use case: In my ConTeXt book, there are many 
long tables of parameters. The caption says “Parameters of \setupsomething”, 
but I’d also give hints like “You can also use the parameters of \setupframed, 
see p.123.”. I’d like to have these hints only in the first caption, and 
they’re different for each table.

It’s not that important, I can move the text somewhere else, but often enough 
in ConTeXt there are obscure features for advanced stuff.


If I understand you correctly then this does what you want. It's a bit of a 
hack though.

\defineselector [caption] [max=2]

\starttext

\setupfloatsplitting [inbetween={\setupselector[caption][n=2]}]

\setupselector[caption][n=1]
\placetable[split]
   {\select{caption}
 {Parameters of \type{\setupsomething}. You can also use the parameters of 
\type{\setupframes}, see page. 123}
 {Parameters of \type{\setupsomething}.}
   }
   {\bTABLE
\dorecurse{100}{
\bTR \bTD One \eTD \bTD two \eTD \eTR
\bTR \bTD One \eTD \bTD two \eTD \eTR
}
\eTABLE}

\stoptext


Thank you, that’s a good idea. (Another mechanism in ConTeXt that I 
didn’t know and need to document…)


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: table float split behavior

2024-07-07 Thread Henning Hraban Ramm

Am 07.07.24 um 20:22 schrieb Bruce Horrocks:




On 7 Jul 2024, at 10:51, Henning Hraban Ramm  wrote:

Also, is it possible to have different captions in first and other parts?



This previous thread might help.
<https://www.mail-archive.com/ntg-context@ntg.nl/msg102641.html>


Thank you, but that doesn’t fit my use case: In my ConTeXt book, there 
are many long tables of parameters. The caption says “Parameters of 
\setupsomething”, but I’d also give hints like “You can also use the 
parameters of \setupframed, see p.123.”. I’d like to have these hints 
only in the first caption, and they’re different for each table.


It’s not that important, I can move the text somewhere else, but often 
enough in ConTeXt there are obscure features for advanced stuff.


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: documenting itemize specials

2024-07-07 Thread Henning Hraban Ramm

Am 07.07.24 um 18:03 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 07.07.2024 um 10:54:

Hi,
* can anyone give me an example where \noitem makes sense?


This is why the command exists:

\starttext

\startitemize[repeat,n][width=0pt]
\noitem
   \startitemize[a,broad]
   \item First item
   \item Second item
   \stopitemize
\noitem
   \startitemize[a,broad]
   \item First item
   \item Second item
   \stopitemize
\stopitemize

\stoptext



* is the + symbol of \sub configurable?


No.

Wolfgang


Thank you!
I added the example to the wiki (Enumerations).

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: processor for index sub-entry?

2024-07-07 Thread Henning Hraban Ramm

Am 07.07.24 um 18:01 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 05.07.2024 um 22:36:

Hi,
is it possible to apply a processor to an index sub-entry?

\index{Modules+\type{filter}}
looks good, but "filter" is sorted under "type".

\defineprocessor[type][style=mono]
\index{Modules+type->filter}
results in a "Modules / type->filter" entry.

\index[Modules+filter]{Modules+\type{filter}}
works and looks good, but the code feels bad…


1. Complete your example to test them without adding stuff.


Sorry.

2. Use \setregisterentry which allows you to set processors for each 
entry level.


\defineprocessor[type][style=mono]

\starttext

xxx\setregisterentry[index][entries:1=Modules,entries:2=filter,processors:2=type]


Oh wow, another command that I didn’t know. Might make sense to use in 
macros or automated setups.


Thank you!

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: table float split behavior

2024-07-07 Thread Henning Hraban Ramm

This is a long-time open issue. Am I the only one affected by this?

Also, \bTABLEfoot doesn’t repeat – I’d like to use it e.g for a line (rule).

Also, is it possible to have different captions in first and other parts?

Hraban

Am 17.06.24 um 18:36 schrieb Henning Hraban Ramm:

Table floats split in odd places, independent of top/page/here location.

There’s always a first part, then some not-float text, then the other 
parts.


Even if the table would fit on two pages (with location=page), it always 
gets split into three.


Can I influence this anyhow?

Hraban


\usemodule[visual]

\starttext

\samplefile{tufte}

\startplacetable[location={top,split},title=table split test]
\bTABLE%[setups=twoparamstable]
\bTABLEhead
\bTR\bTH One \eTH\bTH Two\eTH\bTH Three \eTH\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{60}{%
\bTR\bTD #1\eTD\bTD \fakewords{1}{10}\eTD\bTD \fakewords{1}{10}\eTD\eTR
}
\eTABLEbody
\eTABLE
\stopplacetable

\samplefile{knuth}

\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: index sort order (de)

2024-07-07 Thread Henning Hraban Ramm

Would any of the German users object to a change of the default?

Am 14.05.24 um 18:57 schrieb Henning Hraban Ramm:

Hi,
I checked the German index sorting rules, and as far as I can tell, all 
of them are somewhat wrong.


– de, default, or no setting (just mainlanguage de)
– Duden
- DIN 5007-1(:2005)
- DIN 5007-2(:1996)
- de-AT

IMO, "Duden" is obsolete, should be the same as default; it makes no 
sense to have a default setting that doesn’t adhere to the official 
rules. If I’m not mistaken it’s also the same as DIN 5007-1; maybe there 
was a difference before 2005. (DIN 5007-2 and de-AT have their uses.)


The order of umlauts etc. should be ok.

[ß]
In tex/context/base/mkiv/sort-lan.lua, ß is replaced by s, while it 
should be sorted like ss in default and both DIN versions. (de-AT sorts 
ss after ß.)


[upper-/lowercase]
While casing is not mentioned in Wikipedia 
(https://de.wikipedia.org/wiki/Alphabetische_Sortierung), Duden „Satz 
und Korrektur“ says:


Uppercase characters get sorted the same as lowercase (i.e. mixed), but 
if both appear, lowercase comes first.


ATM all German settings sort lowercase behind uppercase.



Generally, default method seems to be not "default" but "before". Does 
this make sense?


If we look at the method presets, there’s none for {zm,pm,zc,zm,uc} 
(upper like lower, ignore diacritics – basic default for German).


"""
\mainlanguage[de]
\setupregister[index][language=de]

\starttext

\index{Apfel}
\index{Äpfel}
\index{apfel}
\index{äpfel}
\index{aepfel}
\index{Aepfel}
\index{Ápfel}
\index{ápfel}

\page
\completeindex

\stoptext
"""

default order should be:

aepfel
Aepfel
apfel
Apfel
äpfel
Äpfel
ápfel
Ápfel
aqua

DIN 5007-2 sorts like:

aepfel
Aepfel
äpfel
Äpfel
apfel
Apfel
ápfel
Ápfel
aqua

de-AT sorts like:

aepfel
Aepfel
apfel
Apfel
aqua
äpfel
Äpfel
ápfel
Ápfel




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
___


___
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] documenting itemize specials

2024-07-07 Thread Henning Hraban Ramm

Hi,
* can anyone give me an example where \noitem makes sense?
* is the + symbol of \sub configurable?


\startitemize[n,packed]
\startitem oins \stopitem
\noitem zwoi
\startitem droi \stopitem
\sub droi ond ebbes
\stopitemize


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] processor for index sub-entry?

2024-07-05 Thread Henning Hraban Ramm

Hi,
is it possible to apply a processor to an index sub-entry?

\index{Modules+\type{filter}}
looks good, but "filter" is sorted under "type".

\defineprocessor[type][style=mono]
\index{Modules+type->filter}
results in a "Modules / type->filter" entry.

\index[Modules+filter]{Modules+\type{filter}}
works and looks good, but the code feels bad…


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: Anyone working on a treesitter grammar?

2024-07-05 Thread Henning Hraban Ramm

Am 05.07.24 um 12:33 schrieb Jethro Djan:

Hi,

I tried to write one some time ago but it seems my knowledge of ConTeXt 
was insufficient. I gave up. I also think it would be nice.


Well, obviously, Paul managed to do it:
https://github.com/pmazaitis/tree-sitter-context


Maybe we could benefit from pre-converting the source file to an 
XML-like tree before applying the grammar? At which point you 
are venturing into LSP territory...


You know about the XML interface files?
See texmf-context/tex/context/interface/mkiv/


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: Anyone working on a treesitter grammar?

2024-07-04 Thread Henning Hraban Ramm

Am 04.07.24 um 22:31 schrieb juh+ntg-context--- via ntg-context:

Am 04.07.24 um 21:39 schrieb Henning Hraban Ramm:

https://github.com/pmazaitis/tree-sitter-context_en


Thanks a lot.


Now, if you could explain me how to install this in Pulsar?


I am struggling with emacs and neovim.


If you get it working, please document how.

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: Anyone working on a treesitter grammar?

2024-07-04 Thread Henning Hraban Ramm

Am 04.07.24 um 21:22 schrieb juh+ntg-context--- via ntg-context:
no mention here https://tree-sitter.github.io/tree-sitter/ and searching 
for treesitter on the Wiki gives no match?


Many texteditors have treesitter support builtin so having a ConTeXt 
grammar would be nice.


https://github.com/pmazaitis/tree-sitter-context_en

Now, if you could explain me how to install this in Pulsar?

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
___


  1   2   3   4   5   6   7   8   9   10   >