[NTG-context] Re: which parameter is for adjust the distance between items in a list?

2024-04-25 Thread Henning Hraban Ramm

Am 25.04.24 um 10:46 schrieb h...@hongfeng.ch:

thank you.

just tried, not worked out yet.

Here it is my text:

```
setuplist[height=0]
\startitemize[n]
\item It's impossible --- don't waste my time.
\item It's possible, but not worth doing.
\item I said it was a good ideal all along.
\stopitemize
```

Now the distance between the items is equal to the blank space between 
paragraphs.
I want to reduce it equal to the distance between the lines of a paragraph.


You asked for a list, that is e.g. a table of contents (list of numbered 
items like sections or floats).


If you want to affect itemizations, use \setupitemize (same as 
\setupitemgroup[itemize]).

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

Besides, height is a different parameter.

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: which parameter is for adjust the distance between items in a list?

2024-04-25 Thread Henning Hraban Ramm

Am 25.04.24 um 10:20 schrieb h...@hongfeng.ch:
which parameter in `\setuplist` is used for adjusting the distance 
between the items of a list?


Usually it’s the general line height.
You can use "inbetween=\blank[3pt]" to insert extra space.
(Untested)

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: documentation: parameters of \setuplist

2024-04-24 Thread Henning Hraban Ramm

Am 23.04.24 um 23:14 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 23.04.2024 um 21:43:

Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm:
I tried to complete https://wiki.contextgarden.net/Command/setuplist, 
but I don’t understand all parameters.


Can anyone explain these please:

* state (start stop): what does this en-/disable? collecting entries?
* label (yes no none Name): language dependent labels? as a prefix or 
what?


You can use the key to set language dependent texts for the section 
counters in the list entry, with "yes" the values from the document are 
used but you can also set whatever label you want.


Thank you!
So it is related to \setuplabeltext as I suspected, while I didn’t 
understand why we need label _and_ prefix, until I recognized there’s 
only pageprefix… (I had prefix in my list of parameters, maybe some MkII 
leftover).



\setuplabeltext
   [en]
   [chapter=Chapter ,
    appendix=Appendix ,
    hraban=Hraban ]

%\setuplist[chapter][label=hraban,width=3cm]
\setuplist[chapter][label=yes,width=3cm]


Yes, now I understand.

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: documentation: parameters of \setuplist

2024-04-24 Thread Henning Hraban Ramm

Am 24.04.24 um 01:00 schrieb Bruce Horrocks:

In the source there is a comment relating to location:

%D Regular list entries are bound to a specific location in order to get the 
right
%D pagenumber etc.\ associated. When pushing something inbetween (in mkiv) it 
ends
%D up directtly in the list. This is the default because otherwise users will 
wonder
%D why spacing might get messed up (due to an unseen but present node). It is
%D possible to force a location by explicitly setting \type {location} to \type
%D {here}.
%D
%D Another way to force a certain order is to set the \type {order} variable 
when
%D placing a list. The \type {command} option only pushes commands into the 
right
%D order, and \type {all} orders all entries (which might be too much). In this 
case
%D no specific location is needed with the inbetween method. Maybe additional
%D mechanisms show up some day. See \type {inbetween-001.tex} for an example.

I don't really understand what capability the comment is referring to let alone 
be able to create an example demonstrating the difference.


Thank you, so it looks like "location=here" is only used with 
\writebetweenlist to get the current page number.


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: documentation: parameters of \setuplist

2024-04-23 Thread Henning Hraban Ramm

Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm:
I tried to complete https://wiki.contextgarden.net/Command/setuplist, 
but I don’t understand all parameters.


Can anyone explain these please:

* state (start stop): what does this en-/disable? collecting entries?
* label (yes no none Name): language dependent labels? as a prefix or what?
* location (none, here): disable placement? when makes this sense?
* symbol (one two three none default): where is this used?


One solved, still 4 to go… Please, anyone who used these?

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: documentation: parameters of \setuplist

2024-04-22 Thread Henning Hraban Ramm

Am 22.04.24 um 18:30 schrieb Duncan Hothersall:

Hi Hraban,

I can help with one - aligntitle means an unnumbered section will align 
in the table of contents under the number rather than the title. So for 
example if you have a TOC combining \section and \subject entries, they 
would look like this:


1 ... A section
A subject

rather than

1 ... A section
.. A subject


Thank you! I added it 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] documentation: parameters of \setuplist

2024-04-22 Thread Henning Hraban Ramm
I tried to complete https://wiki.contextgarden.net/Command/setuplist, 
but I don’t understand all parameters.


Can anyone explain these please:

* state (start stop): what does this en-/disable? collecting entries?
* label (yes no none Name): language dependent labels? as a prefix or what?
* location (none, here): disable placement? when makes this sense?
* aligntitle (yes no): align which part to what?
* symbol (one two three none default): where is this used?


Expect more questions…

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] [off topic] non-English programming languages: Arab and Cuneiform

2024-04-20 Thread Henning Hraban Ramm

Came across this, I guess some of you might find it interesting:

https://nas.sr/%D9%82%D9%84%D8%A8/

https://github.com/MrLogarithm/emeszida


___
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: Wiki - test/proposal to further clarify documentation

2024-04-18 Thread Henning Hraban Ramm

Am 17.04.24 um 23:25 schrieb Garulfo:
- exactly, it's not a question of proposing new documents, but of 
proposing another complementary way of accessing and browsing existing 
ones.


- Actually, the wiki is (or can be) a hub for the 4 needs:
   - "Reference" like https://wiki.contextgarden.net/Command/setuphead
   - "How-To Guides" like https://wiki.contextgarden.net/Titles
   - "Tutorials":
 - hosted https://wiki.contextgarden.net/Detailed_Example
 - linked https://github.com/mpsmath/stepbystep
   - "Explanation" : mostly linked manuals and books


https://wiki.contextgarden.net/Command/setuphead
and https://wiki.contextgarden.net/Titles
are examples of how difficult it can be to understand where to find a 
particular information.


It might be worth keeping only the key examples on reference pages
like https://wiki.contextgarden.net/Command/***
and moving the "how-to" examples to a separate page (or pages).


I agree. Let’s accept this as a rule for further wiki editing.

Also, explain parameters with top priority in Command/setup* pages 
(keeping them in Command/define* pages etc. doesn’t hurt, but at least 
experienced users should know where to find something without searching).


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 isolate serious errors from warnings?

2024-04-18 Thread Henning Hraban Ramm

Am 18.04.24 um 02:09 schrieb Joel via ntg-context:
I'm about to have a lengthy (2,000+ page) document published. Normally 
if it compiles and looks okay, I regard that as meaning no errors 
appeared, but I've noticed that sometimes ConTeXt will still compile, 
even if something isn't displayed on screen as it should:


(1) I tried placing a table inside a startitemize environment, as 
instead of it not compiling, it left a message in the document warning 
that wasn't supported.


(2) In another case, I had an image that ConTeXt couldn't find, as I 
mispelled the filenmame, and it fully compiled and made a PDF, without 
me noticing.


(3) Or maybe in some case, a font couldn't be found for a specific 
character, so a single character in the file isn't displaying.


Those are just some examples; I intended for something to be printed on 
the PDF, but it isn't showing there.


Since a document of this size will have a lot of messages, is there a 
way to adjust the settings, from "show everything" to "show some" to 
"show only serious errors"? Or maybe to use > to send the errors to 
another file for careful study? (using Linux if that matters)


You can enable trackers like

\enabletrackers[figures.*]

But that just gives more log messages for debugging.

You get the list of all trackers with:

context --global m-trackers.mkiv


For your use case, directives are more helpful, like

\enabledirectives[logs.errors=*] (i.e. break at every error)

AFAIK that just handles missing characters, references and modules ATM, 
but this information might be outdated.


You get all directives with

context --global m-directives.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: Wiki - test/proposal to further clarify documentation

2024-04-17 Thread Henning Hraban Ramm

Am 17.04.24 um 13:57 schrieb Bruce Horrocks:

- There are at least two books, and a third being written but not yet released: 
these fit into the Tutorials and Explanation quadrants.


Which published books do you mean?

I know of Alan Braslau’s book, AFAIK that will be published in French 
“soon” and probably later in English.

My German book is still not ready, while I work on it regularly.

Of course there are a lot of PDFs (most with sources), not only in the 
distribution, but also in 
https://github.com/contextgarden/not-so-short-introduction-to-context


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: Wiki - test/proposal to further clarify documentation

2024-04-17 Thread Henning Hraban Ramm

Am 17.04.24 um 10:36 schrieb Hans Hagen:

On 4/17/2024 8:32 AM, Thomas A. Schmitz wrote:



On 16. Apr 2024, at 21:56, Peter Hopcroft via ntg-context 
 wrote:





On 17/04/2024, at 7:11 AM, Henning Hraban Ramm  wrote:

In my poster (still WIP) I wrote:
…


Excellent


No, I must admit I don’t like the first two paragraphs. The question 
is “what is ConTeXt,” and the answer is “we’re not LaTeX.” And why 
“infamous”?
I agree. It sounds the same as "we're not msword" or "we're not google 
docs". (In the end the only thing that latex and context have in common 
is that they use the tex language / ecosystem.)


In my experience, most people interested in ConTeXt know LaTeX, so it 
makes sense to compare.
And I actually just say “LaTeX is the most known command-based 
typesetting system” (that’s just true) to shortcut explaining what a 
cbts might be.


Your critique applies to JUH’s quote, though.

I used “infamous” as a funny way to say “not famous, but somewhat known” 
(and yes, I know Latin and what the words really mean).


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: Wiki - test/proposal to further clarify documentation

2024-04-16 Thread Henning Hraban Ramm

Am 14.04.24 um 21:45 schrieb Peter Hopcroft via ntg-context:

It would be great if the main page actually said what Context does.


In my poster (still WIP) I wrote:

start
---

The “infamous” alternative to LaTeX

While most designers use graphical tools, there are still areas where 
code-based typesetting systems are fun, make sense or are even superior. 
While LaTeX is the most known of these, ConTeXt is used by a growing 
minority of ambitioned enthusiasts around the world.


The small but active and creative community of ConTeXt users and 
developers is always driving TeX development over new frontiers:

NTS, MetaFun, Oriental TeX, LuaTeX, mplib, LuaMetaTeX…
They’re also dubbed the incisors (AKA cutting edge) of the dinosaur of 
Open Source.


ConTeXt is aimed at creative users, known for advanced features like 
extensive font control and direct XML processing, with a deep 
integration of Lua and MetaPost.


---

ConTeXt was invented in the 1990s by Hans Hagen and Ton Otten of the 
Dutch company “Pragma Advanced Document Engineering” for typesetting 
schoolbooks. Taco Hoekwater refactored the TeX source code to create 
LuaTeX which was further developed into LuaMetaTeX by Hans Hagen (and 
lately Mikael Sundqvist for refined math typography).


---

“To be fair, switching to the ConTeXt way of thinking and doing things 
was not an overnight process […]. But once I got used to it, I could not 
imagine going back to LaTeX. I’ll go even further and say that, in my 
view, ConTeXt is the future of TeX.

(Prof. Idris Samawi Hamid, 2009)
Source: www.tug.org/interviews/hamid.html

---

“ConTeXt is LaTeX done right. It is simple, flexible and powerful.”
(J. U. Hasecke on Mastodon, 2022)

---

Is ConTeXt for me?

If you want …
* to design your own layout
* best quality math typesetting
* to use Lua functions e.g. for processing data
* deep integration of a graphics language (MetaPost)
* to process XML input
* no package conflicts
* to use OpenType features
* consistent setup commands
* to place stuff on layers
* visual debugging features
* to have a lean, but mighty TeX system
* to typeset much faster than with LaTeX
* high quality Arabic typography
… then ConTeXt is for you!

---
stop

___
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: Most recent context doesn't like synctex?

2024-04-15 Thread Henning Hraban Ramm

I made it work with Pulsar and the pdfjs-viewer plugin:

The sourcecode of the plugin is broken but easily fixable: 
https://github.com/allefeld/atom-pdfjs-viewer/issues/15


Then pdf->tex works with synctex from TeX live, "--synctex=repeat" and a 
right click in the viewer.


Sigh, should I learn TypeScript to adopt the viewer plugin and enable my 
language-context-lmtx* plugin to run ConTeXt and SyncTeX? (I’ve already 
too many projects and not enough brain capacity.)


Hraban


*) https://codeberg.org/fiee/language-context-lmtx
___
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 TIFF image no longer supported?

2024-04-14 Thread Henning Hraban Ramm

Am 14.04.24 um 22:25 schrieb Denis Maier via ntg-context:
Thomas A. Schmitz > hat am 14.04.2024 22:18 CEST 
geschrieben:

On 4/14/24 22:11, Joel via ntg-context wrote:

I have a document with PNG, JPG, and TIFF. When I try using
\externalfigure[filename][frame=on, width=.\textwidth] it displays
JPG and PNG fine, but the TIFF files don't render. Is TIFF not supported
in ConTeXt anymore? --Joel

I don't think tiff has ever be supported?
Thomas

At least, this is what
https://wiki.contextgarden.net/Using_Graphics says.
But you can do implicit conversion of TIFF to PDF if you have the 
converter installed. (Maybe you've had that installed before?)


EPS, BMP, GIF, TIFF (and in MkIV, SVG) are only supported via conversion.
For EPS you need GhostScript (gs), for SVG Inkscape, and GraphicsMagick 
(gm convert) for the others.


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: Wiki - test/proposal to further clarify documentation

2024-04-14 Thread Henning Hraban Ramm

Hi Garulfo,

I’m not against the “new order”, but I’d keep the colorful subject 
tiles. Different accesses are good IMO (as long as it doesn’t get to 
convoluted).


I’d say updating, sorting, restructuring pages is more important than a 
new start page.


Yes, please sort out reference vs. tutorials!

Often examples make sense in the reference pages, so the distinction is 
a bit fuzzy, but there are enough where a subject/tutorial page would 
make more sense than examples spread over several single command pages.


We could also define if the “main” reference page (with examples) is 
\definestuff, \setupstuff, or \stuff – IMO \setupstuff makes the most 
sense, since usually the others inherit from it.


Often enough, parameters aren’t explained in the reference pages; 
sometimes you can find examples using them, but there are too many 
holes. I tried to fix that where I could, but too often I don’t 
understand enough of the sources to make sense of some setting.


For wiki contributors, it might make sense to combine the markup pages – 
in many pages e.g.  is used where  would 
make more sense; often \starttext … \stoptext is not necessary and just 
blows up examples; markup is generally somewhat chaotic (e.g. , 
, or ``?).


Hraban

Am 14.04.24 um 13:21 schrieb garu...@azules.eu:

I just discover the Diátaxis documentation framework :
- https://www.diataxis.fr/
- 30min video : "What nobody tells you about documentation", 
https://www.youtube.com/watch?v=t4vKPhjcMZg  , from Daniele Procida at PyCon 2017

As I understand it, it can help both readers and writers of the documentation 
by clarifying the purpose of each element.

So I started a potential new "welcome page" :  
https://wiki.contextgarden.net/Main_Page2

The main lines would be :
- Tutorials: installation pages, step by step examples
- How-to guides: most of the existing wiki pages which are not 
https://wiki.contextgarden.net/Commands/ ...
- Discussions and manuals: most of the existing manuals
- Reference : the pages dedicated to commands which already include link to 
mailing list, stack exchange, ConTeXt's source
   - https://wiki.contextgarden.net/Category:Commands
   - https://wiki.contextgarden.net/Special:PrefixIndex?prefix=Command%2F

To match the logic of Diátaxis, maybe some material from command pages should be moved from 
"Reference" to "How-to guides",
for example, when the examples go beyond "pure description" and begin to deal with 
"how-to" cases, e.g. :
- Reference for setuphead: https://wiki.contextgarden.net/Command/setuphead
- How-to guides for headings: https://wiki.contextgarden.net/Titles

If it make sense, and according to your feedbacks, I can continue to reallocate 
existing contents.

Thanks for your feedback and thoughts.
Garulfo
___
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: Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread Henning Hraban Ramm

Am 14.04.24 um 14:46 schrieb Wolfgang Schuster:

garu...@azules.eu schrieb am 14.04.2024 um 12:41:

Hi all,

Is it on purpose that 128 pages 
"https://wiki.contextgarden.net/Command/ " start with a space 
character ?

I didn't find an explanation in https://wiki.contextgarden.net/Command

For example, these two pages exist :
- https://wiki.contextgarden.net/Command/startbuffer
- https://wiki.contextgarden.net/Command/_startbuffer

If it is on purpose:
- What is the purpose, and which page should contain which documentation?


The command pages which start with an underscore are probably leftovers
when Taco changed a page from manual command descriptions to auto
generated tables.

In the process to change the page he makes a copy of the current page
with an underscore at the beginning which is deleted after the change
but it's possible he forgot to delete a few of them.

When you notice no difference between both versions of a command page
you can delete all of the forgotten pages.


No!

These are the general pages in opposite to instance pages, e.g. 
"startsection" and "startchapter" are instances of "_startsection"?


https://wiki.contextgarden.net/Command/_placefloat is the general page 
for the instances placefigure, placetable etc.


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: Most recent context doesn't like synctex?

2024-04-14 Thread Henning Hraban Ramm

Am 13.04.24 um 22:28 schrieb Mikael Sundqvist:

What will work will depend on the viewers. We noticed a few weeks ago
that synctex (pdf -> editor) was not working in a few viewers (okular)
while it was working in others. 


Could you please tell us which combinations of viewers and editors you 
checked and how to configure them to make it work?


Hraban

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

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


[NTG-context] Re: Figure reference failing

2024-04-10 Thread Henning Hraban Ramm

Am 10.04.24 um 14:21 schrieb Hans Hagen:

It fails for me as well, when "mode=columns" is used.

compare with and without mode columns:

\starttext

     \enablemode[columns]

     As we see \doifelsemode {columns} {in \in {table} [demo-1]} {below} 
we can have

     more than one cell in a row.

     \startplacetable[mode=columns,reference=demo-1]
     \externalfigure[cow][width=\textwidth]
     \stopplacetable

     \samplefile{tufte}

\stoptext

so basically we have an "at the spot" placement or a float


Is "mode" in floats something new? How is it related to “general” modes?

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-04-09 Thread Henning Hraban Ramm

reminder: this is tonight (in European perception).

Am 07.04.24 um 09:37 schrieb Henning Hraban Ramm:

You’re invited to our regular online meet-up, this upcoming
Wednesday, April 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: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Henning Hraban Ramm

Am 07.04.24 um 19:05 schrieb Hans Hagen:

\startMPpage
     picture tt ; tt := lmt_outline [
     kind = "fillup",
     text = "\definedfont[name:texgyrepagellabold*default]foo f o o",
     ] xsized 12cm ;

     path bb ; bb := boundingbox tt ;
     path pp ; pp := bb enlarged 2cm ;

     fill pp
     withshademethod "linear"
     withshadedirection down
     withshadecolors (red, blue) ;

     draw tt withcolor green ;
\stopMPpage

no need to loop over tt


But the intention was to get a gradient _within_ the text.

Might there be a problem with the latest changes to gradients?

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 apply gradient color to a piece of text?

2024-04-07 Thread Henning Hraban Ramm

Am 07.04.24 um 15:51 schrieb Keith McKay:
Have a look at the posts starting on the 2 March 2021 with the subject 
heading "Shaded Large Letters in LMTX". Hans gave a great solution.


Neither for the example in
https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/message/SNL5YJ3NKZNFYAPG3MCZXA2363GWEJA3/
nor for that in
https://wiki.contextgarden.net/Cover_Pages#Empty_or_Transparent_letters
I get any text in the gradient box. The font is loaded.

Does it work for you?

(ConTeXt LMTX 2024.04.01 08:59 with self-compiled binary)
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: PDF/UA-2, WTPDF

2024-04-07 Thread Henning Hraban Ramm

Am 07.04.24 um 11:17 schrieb Ulrike Fischer:

Am Sun, 7 Apr 2024 09:31:30 +0200 schrieb Henning Hraban Ramm:


Am 07.04.24 um 08:06 schrieb Hans Hagen:

On 4/6/2024 5:34 PM, Henning Hraban Ramm wrote:


1. PDF/UA-2
https://pdfa.org/iso-14289-2-pdfua-2/


looks likes one has to pay for it


Oh, as usual with PDF association…


Sorry that pdf/UA-2 costs something is due to ISO not to the PDF
association. The PDF association made the WTPDF document which is
for free (and is very similar to pdf/UA-2). And imho they are also
trying to get sponsors for PDF/UA-2 (something they already did for
the PDF 2.0 spec which you now can buy for 0€).


Ok, sorry for barking at the wrong tree!

And I guess DANTE as a member of PDF association has access to the 
documents 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] regular online meet-up

2024-04-07 Thread Henning Hraban Ramm

You’re invited to our regular online meet-up, this upcoming
Wednesday, April 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


(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: PDF/UA-2, WTPDF

2024-04-07 Thread Henning Hraban Ramm

Am 07.04.24 um 08:06 schrieb Hans Hagen:

On 4/6/2024 5:34 PM, Henning Hraban Ramm wrote:


1. PDF/UA-2
https://pdfa.org/iso-14289-2-pdfua-2/


looks likes one has to pay for it


Oh, as usual with PDF association…

That’s not how you promote open standards.

(Didn’t check, jost forwarded the message.)


2. Well-Tagged PDF (WTPDF)
https://pdfa.org/wtpdf/

well, tagging ...


Of course.

But you asked for wanted accessibility features:

We have \pdfbackendactualtext{visible}{alternative}, can we get 
alternative text (ActualText) for images?
Not automatically, of course (if someone wants AI descriptions they can 
implement a module), just as a keyword in \externalfigure?


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] PDF/UA-2, WTPDF

2024-04-06 Thread Henning Hraban Ramm
Quoting a post by Philipp Kiff, 
https://mastodon.social/@pkiff/11221949350928:



In amongst the release of PDF/UA-2 (PDF for Universal Accessibility) and 
the new Well-Tagged PDF (WTPDF) standard last month, some PDF 
professionals may have missed two other new resources that may help 
explain and view them:


1. Questions and Answers about Tagged PDF from PDF association

2. Acrobat Custom File Info Panels by Peter Wyatt


Last month saw the release of PDF/UA-2 and the new Well-Tagged PDF 
(WTPDF) standard - neither of which revokes PDF/UA-1. And none of those 
are the same as PDF 1.7 vs 2.0. To many, the landscape of PDF specs may 
now seem littered with confusing acronyms and versions!


For some help disentangling it all, the PDF association has a Questions 
and Answers about Tagged PDF:


https://pdfa.org/resource/tagged-pdf-q-a/


In related news, Peter Wyatt released Acrobat Custom File Info Panels. 
This is a free extension for Acrobat that adds new panels to the XMP 
metadata shown when you view File > Properties in Acrobat Pro.


The new panels allow you to view the additional conformance claims and 
dated revisions of ISO standards that can now be included in PDFs, but 
that aren't currently visible in the standard Acrobat panels.


https://pdfa.org/discovering-pdf-metadata/


One thing I realized in reading through the new standards and looking at 
various sample files this week is that I should probably spend some time 
learning LaTeX! Both LaTeX and LibreOffice are already capable of 
producing PDF/UA-2 files, and with some tweaking, LaTeX can produce what 
appear to be really good WTPDF files. Kudos to both those development teams!


https://github.com/latex3/tagging-project/discussions/72


Finally, in case you missed earlier posts from last month, here are 
links to the official sources for the two new PDF standards that these 
other resources relate to:


1. PDF/UA-2
https://pdfa.org/iso-14289-2-pdfua-2/

2. Well-Tagged PDF (WTPDF)
https://pdfa.org/wtpdf/
___
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: blank line and \placefigure

2024-04-06 Thread Henning Hraban Ramm

Am 06.04.24 um 12:48 schrieb Thomas Meyer:

how can I suppress a blank line between a text paragraph and \placefigure?
I get one there, but I don't want it.


Did you try
\setupfloat[figure][spacebefore=,]
?
or "none" or "{disable,nowhite,back}"

https://wiki.contextgarden.net/Command/setupfloat
https://wiki.contextgarden.net/Command/blank

HTH
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: incosistent output of --- dash

2024-04-06 Thread Henning Hraban Ramm

Am 06.04.24 um 11:43 schrieb madiazm.eo...@gmail.com:

Hi everyone,
I'm a bit puzzled because I usually don't get an em-dash when I type tree 
hyphens. If I use the command \emdash, no problem but when I use the hyphens 
some days it works... and somedays I see three small hyphens.
I tried it on overleaf and of ContextOnWeb with the same inconsistency. If I 
create a new file it usually works right; but when I overwrite an existing file 
subtituting a hyphen for three where the dash should be I sometimes get it 
right and sometimes wrong.
It is not the pdf viewer since I get good or bad results in all, the overleaf 
pdf preview tool, the context on web preview tool and the mozilla integrated 
pdf viewer.

Am I missing something on the use of this ligature? (the question is just out of 
curiosity, since I plan to create a command that adds a hairspace after or before the 
dash, since I don't like it to stick to some letters like "o".


Generally, “we” try to reduce active characters as much as possible, 
that’s why -- and --- usually /don’t/ produce en or em dashes. You can 
activate these ligatures as a font feature though (AFAIR "latexhyphens", 
can’t find it…).


Some editors and some fonts do automatical replacements.

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] statistical charts module re-published

2024-04-05 Thread Henning Hraban Ramm

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

I’ll also put it on modules.contextgarden.net

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

Also the sources for the documentation are missing.

Authors, please help me save your work!

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

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


[NTG-context] international type design

2024-04-04 Thread Henning Hraban Ramm

Have a look at these beautiful font designs:
https://esadtype.esad-amiens.fr/
Unfortunately the fonts are not available (yet).

Take your time to browse the papers about intention, design process etc.

I just browsed the dissertation about the (Vietnamese) "Dilinh" font and 
found the considerations interesting.


"Gul" has matching Devanagari & Latin, "Tarisel" has variations from 
readable text to abstracted lombardic unciale, and "Wierd" has matching 
deconstructivist outlines for Arabic & Latin…


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: what about "textdisplay"?

2024-04-01 Thread Henning Hraban Ramm

Am 01.04.24 um 18:54 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 01.04.2024 um 18:29:

Am 01.04.24 um 18:21 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 01.04.2024 um 17:19:
A while ago, I was pointed (by Wolfgang or Hans, I guess) to 
\start/stoptextdisplay to enhance whitespace handling around images.


My guess is Mikael because I saw the command the first time in the 
source of a presentation from him.


Oh, that’s probably where I saw it, too.


Here is a short example which two other solution to get a similar effect 
as \starttextdisplay.


\usemodule[visual]

\setupfloat[figure][location=left]

\starttext

\fakewords{10}{20}
\startlinecorrection
\fakeimage{4cm}{3cm}{6cm}{4cm}
\stoplinecorrection
\fakewords{10}{20}

\blank[2*line]

\fakewords{10}{20}
\startplacefigure[location={force,none}]
\fakeimage{4cm}{3cm}{6cm}{4cm}
\stopplacefigure
\fakewords{10}{20}

\blank[2*line]

\fakewords{10}{20}
\starttextdisplay
\fakeimage{4cm}{3cm}{6cm}{4cm}
\stoptextdisplay
\fakewords{10}{20}

\stoptext


Thank you!
And when would you suggest what?

A float I’d use only if I need caption/numbering or the floating feature.

When I tried line correction, it never helped; probably I used it wrong 
(e.g. around section titles).



I wanted to document it, but can’t find it in the sources:


The definition is in spac-ver.mkxl.


Thank you!

So, "context --find" does not what I thought it would.


AFAIR the find option searches only the manual sources.


Looks like it. So I should use grep (mtxrun --script grep).

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: what about "textdisplay"?

2024-04-01 Thread Henning Hraban Ramm

Am 01.04.24 um 18:21 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 01.04.2024 um 17:19:
A while ago, I was pointed (by Wolfgang or Hans, I guess) to 
\start/stoptextdisplay to enhance whitespace handling around images.


My guess is Mikael because I saw the command the first time in the 
source of a presentation from him.


Oh, that’s probably where I saw it, too.


I wanted to document it, but can’t find it in the sources:


The definition is in spac-ver.mkxl.


Thank you!

So, "context --find" does not what I thought it would.

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] what about "textdisplay"?

2024-04-01 Thread Henning Hraban Ramm
A while ago, I was pointed (by Wolfgang or Hans, I guess) to 
\start/stoptextdisplay to enhance whitespace handling around images.


I wanted to document it, but can’t find it in the sources:

$ context --find=textdisplay
mtx-context | 
…/tex/texmf-context/doc/context/sources/general/manuals/ontarget/ontarget-profiles.tex

mtx-context |
mtx-context |   196  \starttextdisplay
…
mtx-context |   277  \stoptextdisplay
mtx-context |
mtx-context | 
…/tex/texmf-context/doc/context/sources/general/manuals/ontarget/ontarget-standardize.tex

mtx-context |
mtx-context |   888  \starttextdisplay
…
mtx-context |   941  \stoptextdisplay
mtx-context |

These two documents use it and compile flawlessly.

What’s on?

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: OT: San Seriffe

2024-04-01 Thread Henning Hraban Ramm

Am 01.04.24 um 16:34 schrieb Hans Hagen via ntg-context:

On 4/1/2024 3:56 PM, Henning Hraban Ramm wrote:

in honour of Knuth and the current occasion:
https://realdougwilson.com/writing/san-serriffe

the subject title suggest that you found an open type version


Well, I found one, but it‘s not free:
https://commercialtype.com/catalog/guardian_sans

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: San Seriffe

2024-04-01 Thread Henning Hraban Ramm

in honour of Knuth and the current occasion:
https://realdougwilson.com/writing/san-serriffe


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 editor support / syntax highlighting for Pulsar

2024-04-01 Thread Henning Hraban Ramm

Hi Hans (et al.),

find attached a slightly extended version of the "interface" script that 
can also generate the list of commands in cson format for Pulsar/Atom.


It just creates a basic list of commands for syntax highlighting; for a 
complete plugin, "grammars" and "settings" are missing, see 
https://codeberg.org/fiee/language-context
(Yes, this approach is oldfashioned and a plugin could do a lot more, 
but I don’t speak TypeScript.)


The generated cson file is for "snippets", like in:
https://codeberg.org/fiee/language-context/src/branch/master/snippets/language-context.cson

There, I added information from the interface files and also from the 
wiki, if existing. I don’t know how to do that in the lua script.


---
function flushers.pulsar(collected)
for interface, whatever in next, collected do
local commands = whatever.commands
local environments = whatever.environments
local result, r = { }, 0
r = r + 1 ; result[r] = "'.text.tex.context':\n"
for i=1,#commands do
r = r + 1 ; result[r] = format("\t'\\%s':\n",commands[i])
r = r + 1 ; result[r] = format("\t\tprefix: 
'%s'\n",commands[i])

-- can we have some information?
--r = r + 1 ; result[r] = format("\t\tdescription: 'level: 
primitive; interface: i-tex.xml'",'')

-- no URL if command starts with "stop"
r = r + 1 ; result[r] = format("\t\tdescriptionMoreURL: 
'https://wiki.contextgarden.net/Command/%s'\n",commands[i])

end
io.savedata(format("language-context-%s.cson",interface), 
concat(result),"\n")

end
end
---

Also, the "en" interface is empty, everything is in "common", so the 
iteration over interfaces makes no sense here.



Actually, Atom/Pulsar could work with a tree sitter parser 
(https://github.com/pmazaitis/tree-sitter-context), but I don’t know how 
to use it.



[TextMate]
For TextMate and other editors that use TM bundles, it might make sense 
to update https://github.com/pgundlach/context.tmbundle
At least the list of commands could be automatically converted from the 
interface files, but it’s more involved than what mtx-interface does.



[Visual Studio Code / VSCodium]
BTW, is the ConTeXt language server for VS Code public anywhere? 
(Ramkumar KB promised…) Or is "mtxrun --script=vscode --lsfile" the same?


Hrabanif not modules then modules = { } end modules ['mtx-cache'] = {
version   = 1.001,
comment   = "companion to mtxrun.lua",
author= "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license   = "see context related readme files"
}

local concat, sort, insert = table.concat, table.sort, table.insert
local gsub, format, gmatch, find, upper = string.gsub, string.format, 
string.gmatch, string.find, string.upper
local utfchar, utfgsub = utf.char, utf.gsub
local sortedkeys, sortedhash, serialize = table.sortedkeys, table.sortedhash, 
table.serialize

local helpinfo = [[


 
  mtx-interface
  ConTeXt Interface Related Goodies
  0.14
 
 
  
   
generate context mkii interface 
files
   
   
equals   
   
   
generate scite interface
generate bbedit interface files
generate jedit interface files
generate pulsar/atom interface 
files
generate textpad interface files
generate vim interface files
create text files for commands and 
environments
report commands to the console
generate check file
report the meaning of commands
show the internal representation of 
commands
   
   
replace named characters by utf
preprocess mkvi files to tex files 
[force,suffix]
   
   
use given suffix for output files
force action even when in doubt
   
   
a pattern for meaning lookups
   
  
 

]]

local application = logs.application {
name = "mtx-interface",
banner   = "ConTeXt Interface Related Goodies 0.13",
helpinfo = helpinfo,
}

local report = application.report

scripts   = scripts   or { }
scripts.interface = scripts.interface or { }

local flushers  = { }
local userinterfaces= { 'en','cs','de','it','nl','ro','fr','pe' }
local messageinterfaces = { 'en','cs','de','it','nl','ro','fr','pe','no' }

local function collect(filename,class,data)
if data then
local result, r = { }, 0
for name, list in sortedhash(data) do
r = r + 1 ; result[r] = format("keywordclass.%s.%s=\\\n",class,name)
for i=1,#list do
if i%5 == 0 then
r = r + 1 ; result[r] = "\\\n"
end
r = r + 1 ; result[r] = format("%s ",list[i])
end
r = r + 1 ; result[r] = "\n\n"
end
io.savedata(file.addsuffix(filename,"properties"),concat(result))
io.savedata(file.addsuffix(filename,"lua"),serialize(data,true))
else
os.remove(filename)
end
end

function flushers.scite(collected)
local data 

[NTG-context] Re: How to get an image to fill the maximum available space?

2024-03-30 Thread Henning Hraban Ramm

Am 30.03.24 um 03:15 schrieb Joel via ntg-context:

I have code like this:

     \placefigure[here, force]{my caption}{%
         \externalfigure[#1][frame=on, maxheight=1.2\textwidth, 
maxwidth=\textwidth]%

     }%

I need some images to appear in a book. I need them to keep their proper 
ratios, but scale up to the maximize the available space.


The image can't be more than \textwidth wide, and can't ever be more 
than 1.2\textwidth high.


The problem I am getting with this code, and it does seem to be limiting 
the images to be not bigger than those two dimensions above, is some of 
the images, for reasons I can't understand, are appearing really tiny 
and aren't scaling up to fill as much space as is possible. I can't 
explain why this is happening--the images themselves are very very high 
resolution.


Is there any way to modify the code to make sure the image stretches up 
to be the biggest it can, without exceeding the sizes I've listed?


Hi Joel,

AFAIK, if you don’t set at least either height or width, ConTeXt uses 
the image’s resolution setting to calculate its size, and that is often 
useless.


(Maybe there’s also something wrong with ConTeXt’s max width/height, I 
don’t know; I’m still planning to carefully check all options of image 
processing…)


You could try if "factor=fit" or "factor=max" yields the results you want.

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

2024-03-27 Thread Henning Hraban Ramm

Am 26.03.24 um 17:12 schrieb Wolfgang Schuster:

 begin example
\showframe

\definetext
   [chapterheader] % identifier
   [header]    % vertical position (header/footer)
% [text]  % horizontal position (text/margin)
   [This is a custom header for \tex{chapter}] % content

\setuphead[chapter][header=chapterheader]


Thank you, I added that to https://wiki.contextgarden.net/Command/definetext

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-03-13 Thread Henning Hraban Ramm

Reminder: This is tonight!

Am 10.03.24 um 21:51 schrieb Henning Hraban Ramm:

You’re invited to our regular online meet-up, this upcoming
Wednesday, March 13th, 19:00 CET (UTC+1)

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: how to include an an svg file?

2024-03-13 Thread Henning Hraban Ramm

Am 13.03.24 um 13:14 schrieb Jean-Pierre Delange:

Hi Hraban & Seyal

I can confirm that converting the *.svg file into a *.pdf file displays 
the colour shades correctly ...

(I used Gimp to export the smile.svg file to a smile03.pdf file).


Gimp is a really bad choice in this case, since it converts vectors into 
pixels.

And if you place a PDF, no further conversion is needed.

If you have problems with SVGs, use Inkscape (or some commercial 
alternative like Affinity Designer or Adobe Illustrator) for PDF conversion.


The MWE below works correctly, even if you have to make finer 
adjustments to place the figure in a precise position on the page. As 
I'm in the process of enriching and clarifying a few pages of the 
ConTeXt wiki and the French wikibook, I'm interested in the details 
concerning the position of figures, images and photos etc. So please let 
me know (in private mail) how you make your documents (a MWE will do).


Position options:
* relative placement as floats, i.e. \placefigure
* absolute placement on layers, i.e. \setlayer
* relative corrections with \offset (also within floats)

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 include an an svg file?

2024-03-13 Thread Henning Hraban Ramm

Am 12.03.24 um 23:59 schrieb seyal zavira:
You are correct. when i convert this svg to pdf via inkscape it works 
like a charm.


But what is standard way of including an svg file with context if we 
want to inkscape render the images?


\externalfigure[smile]

without any other settings, but inkscape must be callable on the command 
line (which doesn’t work for me on MacOS any more, must investigate…).


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 include an an svg file?

2024-03-12 Thread Henning Hraban Ramm

Am 12.03.24 um 14:53 schrieb seyal zavira:

 > when i want to put some SVGs in my document the svg does not
render properly here is the code:
 >
 > \starttext
 > \startMPcode
 > draw lmt_svg [
 > filename = "smile.svg"]
 > \stopMPcode
 > \stoptext


I can confirm the problem also with the regular image call

\externalfigure[smile.svg][conversion=mp]

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: Creating a module for calligraphy practice templates

2024-03-12 Thread Henning Hraban Ramm

Am 12.03.24 um 08:57 schrieb Andres Conrado Montoya:

Hello, list!

I've been working on a module to typeset calligraphy practice templates 
using ConTeXt and MetaPost. You are welcome to check it out on github: 
https://github.com/conradolandia/pauta 



Hi Andrés,

this looks interesting (even if I don’t do calligraphy any more).

Sorry, I can’t help you with your questions.

The structure of the module looks good and should work well with the 
module system.


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] has the statistical charts module a new home?

2024-03-11 Thread Henning Hraban Ramm

Hi Tomáš et al.,

the site https://akela.mendelu.cz/~thala/statcharts/ and actually the 
whole server disappeared.


Is there a new download location for the charts module?

It would be nice if we could just host it on 
https://modules.contextgarden.net, then it could also get installed via 
the mtxrun script.


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-03-10 Thread Henning Hraban Ramm

You’re invited to our regular online meet-up, this upcoming
Wednesday, March 13th, 19:00 CET (UTC+1)

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


(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: \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Henning Hraban Ramm

Am 08.03.24 um 18:50 schrieb Pablo Rodriguez via ntg-context:

Dear list,

the following latest gets differents results when compiled with MkXL and
MkIV (in current latest from 2024.03.05 11:26):

   \definefontfamily[mainface][rm][TeX Gyre Termes]
 [features={default, quality},
  it={style: regular, features:{default, quality, slanted}},
  sl={style: regular, features:{default, quality, slanted}}]

   \setupbodyfontenvironment
   [default]
   [em=italic]

   \setupbodyfont[mainface]
   \starttext
   \startTEXpage[offset=1em]
   a\\
   \em b\\
   \em c\\
   \em d\\
   \stopTEXpage
   \stoptext

LMTX gets b, c and d in slanted form.

LuaTeX gets only b and c in slanted form.


With latest LMTX (2024.03.05), b and d are slanted, as I would expect.

This might be just a test case, but I’d avoid switches like \em without 
grouping.


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 can I do this?

2024-03-08 Thread Henning Hraban Ramm

Am 08.03.24 um 17:56 schrieb Otared Kavian:

Hi Ursula,

The reason for which you did not get the expected result is that you 
have « } » missing in your file, that is the closing brace after your 
italic command

« {\it » at the end of your document.
Moreover you did not have a \stoptext in your file, and a math command « 
\m » was not written correctly. Talking of math, I personnaly prefer to 
enclose in-line math between dollar signs $, that is writing « $\exists 
x \in H$ » instead of  « \m{\exists x \in H} ».


Well, better stay with the modern ConTeXt approach of \m{}.

Also, you can use

mtxrun --script check yourfile.tex

to look for missing braces, stops etc.

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: additional font faces

2024-03-08 Thread Henning Hraban Ramm

Am 08.03.24 um 18:02 schrieb Hans Hagen:

On 3/8/2024 5:55 PM, Henning Hraban Ramm wrote:
Hi, if I need an additional pair of upright and italic font faces, 
e.g. a Medium or Light version, would it make sense to define them 
like this:


I'd just define a new typeface / bodyfont, using fo rinstance

\starttypescript [sans] [AlegreyaMedium]

and then use

\switchtobodyfont[AlegreyaMedium]\sl

or

\AlegreyaMedium\sl

which is also more efficient than adding more variants


Ok, thank you – that’s what I was usually doing. So I won’t change 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] additional font faces

2024-03-08 Thread Henning Hraban Ramm
Hi, if I need an additional pair of upright and italic font faces, e.g. 
a Medium or Light version, would it make sense to define them like this:


% adapted from font-pre.mkxl

\definefontalternative[md]
\definefontalternative[mi]
\definefontalternative[ms]

\definealternativestyle [medium] [\md] []
\definealternativestyle [mediumitalic,italicmedium]  [\mi] []
\definealternativestyle [mediumslanted,slantedmedium][\ms] []

\definealternativestyle [sansmedium]  [\ss\md] []
\definealternativestyle [serifmedium] [\rm\md] []
\definealternativestyle [monomedium]  [\tt\md] []

%\definealternativestyle [mediumface][\mediumface][]

\unexpanded\def\normalmd{\let\fontalternative\md\font_helpers_synchronize_font}
\unexpanded\def\normalmi{\let\fontalternative\mi\font_helpers_synchronize_font}
\unexpanded\def\normalms{\let\fontalternative\ms\font_helpers_synchronize_font}

\let\md\normalmd
\let\mi\normalmi
\let\ms\normalms

\definehighlight[medium   ] [command=no,style=medium]
\definehighlight[mediumitalic ] [command=no,style=mediumitalic]
\definehighlight[mediumslanted] [command=no,style=mediumslanted]


Is that necessary? And is it enough?


\starttypescript [sans] [alegreya]
  \definefontsynonym[AlegreyaSans-Regular][name:AlegreyaSans-Regular]
  \definefontsynonym[AlegreyaSans-Italic][name:AlegreyaSans-Italic]
  \definefontsynonym[AlegreyaSans-Caps][name:AlegreyaSansSC-Regular]
  \definefontsynonym[AlegreyaSans-ItalicCaps][name:AlegreyaSansSC-Italic]
  \definefontsynonym[AlegreyaSans-Medium][name:AlegreyaSans-Medium]

\definefontsynonym[AlegreyaSans-MediumItalic][name:AlegreyaSans-MediumItalic]
  \definefontsynonym[AlegreyaSans-MediumCaps][name:AlegreyaSansSC-Medium]

\definefontsynonym[AlegreyaSans-MediumItalicCaps][name:AlegreyaSansSC-MediumItalic]
  \definefontsynonym[AlegreyaSans-Bold][name:AlegreyaSans-Bold]
  \definefontsynonym[AlegreyaSans-BoldItalic][name:AlegreyaSans-BoldItalic]
  \definefontsynonym[AlegreyaSans-BoldCaps][name:AlegreyaSansSC-Bold]

\definefontsynonym[AlegreyaSans-BoldItalicCaps][name:AlegreyaSansSC-BoldItalic]
\stoptypescript

\starttypescript [sans] [alegreya] [name]
  \definefontsynonym [Sans]   [AlegreyaSans-Regular] []
  \definefontsynonym [SansItalic] [AlegreyaSans-Italic]  []
  \definefontsynonym [SansSlanted][AlegreyaSans-Italic]  []
  \definefontsynonym [SansMedium]   [AlegreyaSans-Medium] []
  \definefontsynonym [SansMediumItalic] [AlegreyaSans-MediumItalic][]
  \definefontsynonym [SansMediumSlanted][AlegreyaSans-MediumItalic][]
  \definefontsynonym [SansBold]   [AlegreyaSans-Bold][]
  \definefontsynonym [SansBoldItalic] [AlegreyaSans-BoldItalic]  []
  \definefontsynonym [SansBoldSlanted][AlegreyaSans-BoldItalic]  []
  \definefontsynonym [SansCaps]   [AlegreyaSans-Caps] 
\stoptypescript

___
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: missing metadata in LMTX

2024-03-06 Thread Henning Hraban Ramm

Am 06.03.24 um 11:18 schrieb Marco Patzer:

On Tue, 5 Mar 2024 23:14:04 +0100
Wolfgang Schuster  wrote:


Here is the official solution:

\startxmlsetups xml:meta
\setupmetadata
  [author={\xmltext{#1}{/author}},
   title={\xmltext{#1}{/title}}]
\stopxmlsetups


So now we have:

\setupinteraction
   [title=FooBar]

\setupdocument
   [metadata:title=FooBar]

\setupmetadata
   [title=FooBar]

Are any of those deprecated or the preferred way? I'm starting to
get confused.


There’s also \settaggedmetadata; I actually didn’t know \setupmetadata.
Both are missing in the wiki yet.
Also https://wiki.contextgarden.net/Command/setupinteraction doesn’t 
talk about metadata. Sigh.


AFAIK the metadata from \setupinteraction is used for everything, as 
long as you don’t overwrite it elsewhere.


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: \showsymbolset is noop

2024-03-05 Thread Henning Hraban Ramm

Am 05.03.24 um 23:11 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 04.03.2024 um 21:24:
The \showsymbolset has no output any more, apparently already for some 
time.


I checked on COW (ConTeXt ver: 2022.12.22 22:17 LMTX fmt: 2022.12.23) 
and my local installation (ConTeXt ver: 2024.02.22 18:31 LMTX fmt: 
2024.2.22).


Can someone try on MkIV?

"""
\usesymbols[nav]
\starttext

\showsymbolset[nav]

\stoptext
"""


You pass the wrong name to \showsymbolset.

\usesymbols[nav]

\starttext

\showsymbolset[navigation 1]\page
\showsymbolset[navigation 2]\page
\showsymbolset[navigation 3]\page

\stoptext

Wolfgang


Ah, thank you! I’ll fix the wiki. Apparently this used to work differently.

To know which sets are included I must look into the sources, or is 
there another command?


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: Local alternative to \input

2024-03-05 Thread Henning Hraban Ramm

Am 04.03.24 um 10:43 schrieb Denis Maier via ntg-context:

Hi,

Aren’t environments used for setups (and not for textual content). Maybe 
a buffer may be what you want ?


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


Yes, buffers are the way to go for (textual) contents, while setups or 
environments are for settings – they handle whitespace differently.


Apparently I misunderstood the intention when I gave the answer about 
environments, sorry!


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] \showsymbolset is noop

2024-03-05 Thread Henning Hraban Ramm

The \showsymbolset has no output any more, apparently already for some time.

I checked on COW (ConTeXt ver: 2022.12.22 22:17 LMTX fmt: 2022.12.23) 
and my local installation (ConTeXt ver: 2024.02.22 18:31 LMTX fmt: 
2024.2.22).


Can someone try on MkIV?

"""
\usesymbols[nav]
\starttext

\showsymbolset[nav]

\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] enhancing documentation: initials

2024-03-05 Thread Henning Hraban Ramm
Hi, I tried to figure out what the "method" parameter of \setupinitial 
does – it changes the handling of quotation marks at the beginning of 
the text. It’s defined in context/base/mkiv/typo-drp.lua


But I found no difference between first, last, and none; just "auto" 
includes the mark in the initial, and it works only with a few 
languages, e.g. English and French, but not e.g. German or Dutch:


"""
\mainlanguage[de]
\setuppapersize[A6]
\setupinitial[n=2,color=orange,]

\starttext
\start
\setupinitial[method=first]
\placeinitial \quotation{Keine andere Kunst hat mehr Berechtigung, ihren 
Blick auf die zukünftigen Jahrhunderte zu richten als die 
Typographie.}\wordright{Giambattista Bodoni}

\stop

\start
\setupinitial[method=last]
\placeinitial \quotation{Nationalökonomie ist, wenn die Leute sich 
wundern, warum sie kein Geld haben.}\wordright{Kurt Tucholsky}

\stop

\start
\setupinitial[method=auto]
\placeinitial \quotation{Der Mensch wird auf natürlichem Wege 
hergestellt, doch empfindet er dies als unnatürlich und spricht nicht 
gern davon.}\wordright{Kurt Tucholsky}

\stop

\start
\setupinitial[method=none]
\placeinitial \quotation{Keine andere Kunst hat mehr Berechtigung, ihren 
Blick auf die zukünftigen Jahrhunderte zu richten als die 
Typographie.}\wordright{Giambattista Bodoni}

\stop

\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: Japanese

2024-03-01 Thread Henning Hraban Ramm

Am 01.03.24 um 16:23 schrieb Emanuel Han via ntg-context:
I made manual corrections to scrp-cjk.lua, but with no effect to the 
ConTeXt output of my example. Do I have to recompile ConTeXt first?


Not compile the engine (luametatex), but re-make the ConTeXt format with
context --make
and to be on the safe side, regenerate the file database with
mtxrun --generate

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

2024-02-28 Thread Henning Hraban Ramm

Am 28.02.24 um 20:51 schrieb Emanuel Han via ntg-context:

Thank you all for your suggestions and contributions to the wiki.

I don't intend to nag, but when looking at what ConTeXt is producing, I 
need to state that the result is still far away from a properly typeset 
Japanese text.


That’s the result of apparently nobody having an interest in it and the 
developers not knowing enough about CJK.
(Look at Arabic: Without Idris and the funding for OrientalTeX, the 
support would be just not there.)


Often enough people demand features but don’t stay long enough to evolve 
them until they’re “ready for prime time”.


Now it’s your chance to make it better.
Don’t give 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] Re: Japanese

2024-02-28 Thread Henning Hraban Ramm

Am 28.02.24 um 08:34 schrieb Otared Kavian:

Dear Dalyoung,

Thank you very much for your insight. I downloaded the Noto Serif JP 
fonts and set up a fontfamily as you indicated, by adding

\setscript[nihongo]
which solves a problem I had with line breakings. And everything works 
smoothly!


So, for the mail archive, here is what I have and what works fine:

%%% Noto Fonts

\definefontfamily[JapaneseFont][rm][Noto Serif JP]
   [   it={style:regular,features:{*,slanted}},
       sl={style:regular,features:{*,slanted}},
       bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][ss][Noto Serif JP]
   [   it={style:regular,features:{*,slanted}},
       sl={style:regular,features:{*,slanted}},
       bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][tt][Noto Serif JP]
   [   it={style:regular,features:{*,slanted}},
       sl={style:regular,features:{*,slanted}},
       bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][math][Tex Gyre Termes Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Pagella Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Aventor]



\setupbodyfont[JapaneseFont,12pt]
\setupruby[location=top,voffset=-2ex]
\setupwhitespace[big]
\setscript[nihongo]

\starttext
\ruby{早}{はや}く。
いきましょう。
\stoptext

Best regards: Otared


Thanks all contributors, I added this to 
https://wiki.contextgarden.net/Chinese_Japanese_and_Korean


I guess you also should set \mainlanguage[ja], I added it, also 
\mainlanguage[kr] for Korean.


I don’t know if the setups for Chinese and Korean are still valid, I 
just removed \setencoding.


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

2024-02-26 Thread Henning Hraban Ramm

Am 26.02.24 um 21:08 schrieb Otared Kavian:

Does anyone have a simple setup of fonts to write a small Japanese document 
(possibly with furagana) ? I am using MacOS and I have several Japanese fonts 
on the system.
I have some old examples which do not typeset correctly now, maybe because they 
use the old module simplefonts and  commands such as \setcjkmainfont and 
friends.


Try to replace the simplefonts calls with something like

\definefontfamily[myfonts][rm][SomeFont]
\definefontfamily[myfonts][ss][SomeOtherFont]

\setupbodyfont[myfonts,rm,12pt]

With Latin fonts, it usually 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] Re: FreeBSD 13.2

2024-02-26 Thread Henning Hraban Ramm

Am 26.02.24 um 12:22 schrieb Roger Mason:


resolvers   | resolving | variable 'SELFAUTOLOC' set to 
'/usr/home/rmason/context/tex/texmf-freebsd-amd64/bin'
resolvers   | resolving | variable 'SELFAUTODIR' set to 
'/usr/home/rmason/context/tex/texmf-freebsd-amd64'
resolvers   | resolving | variable 'SELFAUTOPARENT' set to 
'/usr/home/rmason/context/tex'
resolvers   | resolving | variable 'TEXMFCNF' set to ''
resolvers   | resolving | variable 'TEXMF' set to ''
resolvers   | resolving | variable 'TEXOS' set to 'texmf-freebsd-amd64'



resolvers   | resolving | found fallback configuration file 
'/usr/home/rmason/context/tex/texmf-context/web2c/contextcnf.lua'



Looks like the unset TEXMF and TEXMFCNF envars are a problem.   What
should they be set to and where should they be set?


Usually, you don’t need to set any variables.
The default configuration file is also fine.

Does "context --version" work?

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

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


[NTG-context] Re: FreeBSD 13.2

2024-02-25 Thread Henning Hraban Ramm

Am 25.02.24 um 20:24 schrieb Roger Mason:

Hello Hraban,

Henning Hraban Ramm  writes:


Am 25.02.24 um 17:08 schrieb Roger Mason:



Do I need mtxrun?  If so, where are the sources and how do I build
it?


Yes, you need it, but it’s just an alias to luametatex:

~/context/tex/texmf-osx-64/bin $ ll
total 7704
-rw-r--r--@ 1 hraban  staff   6,0K 14 Dez 19:11 .DS_Store
lrwxr-xr-x  1 hraban  staff10B 22 Feb 18:47 context@ -> luametatex
-rw-r--r--  1 hraban  staff   1,3K 10 Aug  2023 context.lua
-rwxr-xr-x  1 hraban  staff   2,9M 22 Feb 18:47 luametatex*
lrwxr-xr-x  1 hraban  staff10B 22 Feb 18:47 mtxrun@ -> luametatex
-rw-r--r--  1 hraban  staff   685K 22 Feb 18:47 mtxrun.lua

The mtxrun in ~/context/bin is only used during installation.


What else do I need in ~/context/tex?  Currently I have

.
├── texmf-context
│   └── web2c
│   └── contextcnf.lua
└── texmf-freebsd-amd64
 └── bin
 ├── context -> luametatex
 ├── context.lua
 ├── luametatex
 ├── mtxrun -> luametatex
 └── mtxrun.lua


I guess you’re lacking the main distribution package.

My installation (tree -dL 4, partly shortened):

.
├── bin (installation only)
└── tex
├── texmf-cache (necessary, but auto-created?)
│   ├── luametatex-cache
│   │   └── context
│   └── luatex-cache
│   └── context
├── texmf-context (main tree)
│   ├── colors
│   │   └── icc
│   ├── context
│   │   └── data
│   ├── doc
│   │   ├── context
│   │   └── fonts
│   ├── fonts// (etc.)
│   ├── metapost
│   │   └── context
│   ├── scripts
│   │   └── context
│   ├── source
│   │   └── luametatex
│   ├── tex
│   │   ├── context
│   │   └── generic
│   └── web2c
├── texmf-fonts (not necessary)
├── texmf-local (not necessary)
│   └── doc
│   └── context
├── texmf-modules (not necessary)
│   ├── doc// (etc.)
│   ├── fonts// (etc.)
│   ├── metapost
│   │   └── context
│   ├── scripts
│   │   ├── context
│   │   └── pgfplots
│   ├── source
│   │   ├── context
│   │   └── luatex
│   ├── tex
│   │   ├── context
│   │   ├── generic
│   │   └── luatex
│   └── tpm
├── texmf-osx-64
│   └── bin
└── texmf-project (not necessary)

HTH

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: FreeBSD 13.2

2024-02-25 Thread Henning Hraban Ramm

Am 25.02.24 um 17:08 schrieb Roger Mason:

I see that the build does not provide the mtxrun binary that the
installer uses.  Does that mean I dont need mtxrun?


Do I need mtxrun?  If so, where are the sources and how do I build it?


Yes, you need it, but it’s just an alias to luametatex:

~/context/tex/texmf-osx-64/bin $ ll
total 7704
-rw-r--r--@ 1 hraban  staff   6,0K 14 Dez 19:11 .DS_Store
lrwxr-xr-x  1 hraban  staff10B 22 Feb 18:47 context@ -> luametatex
-rw-r--r--  1 hraban  staff   1,3K 10 Aug  2023 context.lua
-rwxr-xr-x  1 hraban  staff   2,9M 22 Feb 18:47 luametatex*
lrwxr-xr-x  1 hraban  staff10B 22 Feb 18:47 mtxrun@ -> luametatex
-rw-r--r--  1 hraban  staff   685K 22 Feb 18:47 mtxrun.lua

The mtxrun in ~/context/bin is only used during installation.

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: FreeBSD 13.2

2024-02-25 Thread Henning Hraban Ramm

Am 25.02.24 um 13:12 schrieb Hans Hagen:
We could add a flag to the installer that doesn't update the binaries 
but intead (advices) to build the bins but it assumes Cmake and gcc to 
be installed (we could cheat and use an existing cmake made make file).


Yes please! A platform-independent download would be great.

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: typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm

Am 24.02.24 um 13:53 schrieb Henning Hraban Ramm:

Hi,

I’m trying to use escaping in a typing environment. It works until I 
load the scite module. I need that only for btx highlighting, but I 
can’t limit it to that.

What should I do?


\usemodule[scite]
\define[1]\SAY{\hfill{\rm #1}}

\setuptyping[TEX][
   option=tex,% scite sets cld
   escape=yes,
]

\starttext

\startTEX

\starttext/BTEX\SAY{Text starts here}/ETEX
\input tufte
\stoptext/BTEX\SAY{Text ends here}/ETEX

\stopTEX

\stoptext


I tried to load the module only in the section where I need it, that 
lead to strange errors in later sections, apparently there’s no 
encapsulation.


If I comment line 289 in m-scite.mkiv that reads
--visualizers.register("tex",   visualizer)
it works for me.

Would it be possible to unregister a visualizer, or is the call maybe 
unnecessary 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] Re: FreeBSD 13.2

2024-02-24 Thread Henning Hraban Ramm

Am 24.02.24 um 15:20 schrieb Roger Mason:

Hello,

I've been away from ConTeXt for some time but now I want to install it
on my FreeBSD 13.2 system(s) (I have not switched any machines to 14.0
yet).  After unpacking, running the install scripts results in:

ld-elf.so.1: /home/rmason/Software/Context/bin/mtxrun: Undefined symbol
"__libc_start1@FBSD_1.7"

I assume this is because mtxrun is compiled for FreeBSD 14.0.  Thus, I
need (I think) to compile it for 13.2.  Are there instructions somewhere
on how to do this?

If I get a working installation I'm happy to contribute the FreeBSD 13.2
binaries back to the project, if someone will tell me how.


Yes, we need to document it in the wiki…
But it’s easy:
cd into your tex/texmf-context/source/luametatex
and run build.sh
then copy the "luametatex" binary from build/native
into tex/texmf-/bin/

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] typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm

Hi,

I’m trying to use escaping in a typing environment. It works until I 
load the scite module. I need that only for btx highlighting, but I 
can’t limit it to that.

What should I do?


\usemodule[scite]
\define[1]\SAY{\hfill{\rm #1}}

\setuptyping[TEX][
  option=tex,% scite sets cld
  escape=yes,
]

\starttext

\startTEX

\starttext/BTEX\SAY{Text starts here}/ETEX
\input tufte
\stoptext/BTEX\SAY{Text ends here}/ETEX

\stopTEX

\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: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm

Am 22.02.24 um 18:35 schrieb Hans Hagen via ntg-context:

On 2/21/2024 7:47 PM, Henning Hraban Ramm wrote:

(I’m sure I already used that somewhere… Must document…)
ok, new feature dedicated to Hraban ... who then of course has to 
document it.


This is nice.
Thank you, will do.

(Actually I’m not much interested in dashed borders but to have lines 
affected by my sketchy style - courtesy of Aditya et al., see below)


Taco, will the syntax pages in the wiki update automatically to a newer 
version?



"""
\startuseMPgraphic{mp:sketchy}
input mp-sketch.mp;
sketchypaths;

sketch_amount := 1 + (uniformdeviate 2);
sketch_passes := 3;
sketch_segments := 2 + (uniformdeviate 3);
sketch_length := OverlayWidth / 3;

draw topboundary withpen pensquare withcolor lightgray;
naturalizepaths;
\stopuseMPgraphic

\defineoverlay[sketchylines][\useMPgraphic{mp:sketchy}]

\setupTABLE[r][first][style=bold]
\setupTABLE[r][each][
topoffset=1em,bottomoffset=0.5em,
background=sketchylines,
% would be nice if the background wouldn’t start at each column
]
\setupTABLE[c][each][frame=off]
\bTABLE[]
\bTR
\bTD{Stadt}\eTD
\bTD{Land}\eTD
\bTD{Fluss}\eTD
\eTR
\dorecurse{10}{
\bTR
\bTD\strut \eTD\bTD \eTD\bTD \eTD
\eTR
}
\eTABLE
"""


Hraban%D \module
%D   [   file=mp-sketch.mp
%Dversion=2021.05.13
%D  title=\CONTEXT\ \METAPOST\ graphics,
%D   subtitle=Sketch drawing,
%D author=Aditya Mahajan,
%D   date=\currentdate,
%D  copyright={Aditya Mahajan}]

%D This metapost module is inspired by a TeX.SE question:
%D http://tex.stackexchange.com/q/39296/323
%D
%D I thought that it would be fun to implement a similar feature in MetaPost.
%D
%D To use this package in MetaPost:
%D
%D \starttyping
%Dinput mp-sketch;
%D
%Dbeginfig(1)
%D  sketchypaths; % Make draw and fill sketchy
%D  ...
%D  naturalizepaths; % Restore the value of draw and fill
%D  ...
%Dendfig
%D \stoptyping
%D
%D The code is heavily inspired by Hans Hagen's Metafun macros.
%D
%D The macro \type{sketchypaths} is modeled after \type{visualizepaths} from
%D \filename{mp-tool}.

def sketchypaths =
let draw = sketchdraw ;
let fill = sketchfill ;
enddef ;

%D Check if \filename{mp-tool} is loaded
if not known context_tool :
  let normaldraw = draw;
  let normalfill = fill;

  def naturalizepaths =
  let fill = normalfill ;
  let draw = normaldraw ;
  enddef ;
fi

%D The variable \type{sketch_amount} determines the amount of randomness in the
%D drawing
numeric sketch_amount; sketch_amount := 0.75bp;

%D The variable \type{sketch_passes} determines the number of times the path
%D is drawn
numeric sketch_passes; sketch_passes := 1;

%D Based on \type{randomized}. Assumes p is path:
numeric sketch_segments; sketch_segments := 20;

%D Length (time) of line segments:
numeric sketch_length; sketch_length := 5mm;

primarydef p sketchrandomized s = (
if path p :
for t = 0 step 1/sketch_segments until 1-1/sketch_segments :
((point   (t*arclength(p)) on p) 
randomshifted s) .. controls
((postcontrol (t*arclength(p)) on p) 
randomshifted s) and
((precontrol  ((t+1/sketch_segments)*arclength(p)) on p) 
randomshifted s) ..
endfor
% TODO: beide Ansätze kombinieren. Eckpunkte erhalten!

%for t = 0 step sketch_length until arclength p:
%  (point (arctime t of p) of p) randomshifted s ..
%endfor
if cycle p : % funktioniert nicht
  cycle
else :
  ((point   (arclength(p)) on p) randomshifted 
s)
  %(point (arctime t of p) of p) randomshifted s
fi
else :
p
fi
) enddef ;



%D The macro \type{sketchdraw} draws the randomized path. The
%D \type{expr} ... \type{text} trick is copied from the definition of
%D \type{drawarrow}
def sketchdraw expr p =
   do_sketchdraw(p)
enddef;

def do_sketchdraw(expr p) text t =
  if (path p) :
  for i = 1 upto max(1,sketch_passes) :
normaldraw p
   sketchrandomized sketch_amount
   withtransparency ("multiply", 1/max(1,sketch_passes))
   t ;
  endfor;
  else :
  normaldraw p t;
  fi
enddef;

%D The macro \type{sketchfill} randomizes the path before filling it.
def sketchfill expr p =
  do_sketchfill(p)
enddef ;

def do_sketchfill(expr p) text t =
  if (path p) :
  for i = 1 upto max(1,sketch_passes) :
normalfill p
   sketchrandomized sketch_amount
   withtransparency ("multiply", 1/max(1,sketch_passes))
   t ;
  endfor;
  else :
  normalfill p t;
  fi
enddef;

picture NoisePattern;
NoisePattern := image(
  pickup pencircle xyscaled 0.5bp;
  numeric pmax ; pmax := 7 ;
  numeric x ; numeric y ;
for i = 1 upto pmax:
for j = 1 upto pmax:
  

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm

Am 21.02.24 um 19:43 schrieb Wolfgang Schuster:
… but it would be visible on a colored background. I’m sure you can 
show me a better way…


\startuseMPgraphic{dottedborder}
   draw bottomboundary OverlayBox withpen pencircle scaled 2 dashed 
withdots withcolor "red";

   setbounds currentpicture to OverlayBox;
\stopuseMPgraphic


Thank you!

(I’m sure I already used that somewhere… Must 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: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm

Am 19.02.24 um 23:15 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 19.02.2024 um 22:39:

I guess I asked this a while ago, but I can’t find an answer:
Is it possible to replace the lines of a TABLE with my own MetaPost 
graphics?


ATM I’m trying to place my MP lines behind a frame-less TABLE; it will 
probably work, but it’s a crutch…


The example below draws a custom border for the whole cell but you're 
free to draw only certain sides (leftboundary etc. helps) but don't 
forget to set the boundary box for the graphic (OverlayBox is the size 
of the cell).


 begin example
\startuseMPgraphic{dottedborder}
   draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor 
"red";

\stopuseMPgraphic

\defineoverlay[dottedborder][\useMPgraphic{dottedborder}]

\starttext

\bTABLE[frame=off,background=dottedborder]


Thank you!

Since I needed only horizontal lines, I forced the height with an 
“invisible“ line:


\startuseMPgraphic{dottedborder}
   draw (0,0)--(0,OverlayHeight) withpen pencircle scaled 0.001 
withcolor white;
   draw (0,0)--(OverlayWidth,0) withpen pencircle scaled 2 dashed 
withdots withcolor "red";

\stopuseMPgraphic

… but it would be visible on a colored background. I’m sure you can show 
me a better way…


My real life example (p.2 in https://yemaya.fiee.net/s/DEEHs5m49yftiqW) 
involves sketchy lines, and there it’s a bit annoying that the row is 
not its own frame that could get a continuous background… Well, it’s 
good enough, I’ll settle for 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: Text in Margin

2024-02-19 Thread Henning Hraban Ramm

Am 19.02.24 um 14:14 schrieb Jeroen:
In a textbook I am looking to place a large left margin at every page of 
each chapter. At left printed pages a left margin and at right printed 
pages a right margin, so like a double sided construction. In this 
margin I would like to place:


1. Keywords and small descriptions to emphasize some text from the textflow
2. Figures
3. An expansion of a table that is placed in the main textflow but that 
needs to cover a wider range then the text area so it expands into the 
margin


What is the the easiest way to achieve this?


Generally, you use \inmargin, \inouter etc.

Additional to Wolfgang’s suggestions:

If you need sidefloats that cover not only the margin but should 
decrease the text width, you can move sidefloats into the margin like:


\startplacefigure[title={},location=outer]
\offset[rightoffset=-\marginwidth]{\externalfigure[cow][width=0.5\textwidth]}
\stopplacefigure

Beware: it doesn’t work well with captions (I’ve still no solution that 
always works), and \offset understands only rightoffset and leftoffset, 
not outeroffset.
The example is on a right page; you must “pull” the image into the 
margin (rightmargin with negative value), if you try „pushing“ with 
leftoffset=\marginwidth, the text flow is 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] MetaPost lines in tables?

2024-02-19 Thread Henning Hraban Ramm

I guess I asked this a while ago, but I can’t find an answer:
Is it possible to replace the lines of a TABLE with my own MetaPost 
graphics?


ATM I’m trying to place my MP lines behind a frame-less TABLE; it will 
probably work, but it’s a crutch…


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: An announcement of my new book.

2024-02-15 Thread Henning Hraban Ramm
Don’t forget the articles from the context journal: 
https://articles.contextgarden.net/

(2022 is still missing)

Esp. Taco’s about MetaPost are very interesting and maybe that’s some 
low level stuff you’re missing.


You don’t need to look at Hans’ contributions – everything that’s still 
valid is in the distribution.


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: Re: Context lmtx for 32bit under LUBUNTU 18.04

2024-02-14 Thread Henning Hraban Ramm

Am 14.02.24 um 18:59 schrieb Angel M Alganza:

On 2024-02-14 18:10, Henning Hraban Ramm wrote:


But Hans’ latest upload includes 32bt Linux binaries again.


That's an excellent piece of news!  I'm dual booting Linux and OpenBSD 
in some of the boxes where I previously was only running OpenBSD when 
the OpenBSD version was dropped to be able to run ConTeXt.


But where can I find them, please?  I can's see a link on the Wiki 
Installation page.


I re-added the link to https://wiki.contextgarden.net/Installation

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] Fwd: Re: Context lmtx for 32bit under LUBUNTU 18.04

2024-02-14 Thread Henning Hraban Ramm

Sorry, I can’t help ATM.

But Hans’ latest upload includes 32bt Linux binaries again.

Hraban


 Weitergeleitete Nachricht 
Betreff:Re: [NTG-context] Re: Context lmtx for 32bit under LUBUNTU 18.04
Datum:  Wed, 14 Feb 2024 17:28:38 +0100
Von:Alain Delmotte 
An: Henning Hraban Ramm 



Dear Henning,

---
Your instructions:
PWD=`pwd`
cd tex/texmf-context/source/luametatex
sh build.sh
cp build/native/luametatex "$PWD/tex/texmf-linux/bin/"
cd "$PWD"
---
My actions:
I created a 'context' folder in my home/alain directory in which I 
extracted the contlm.zip file.



In context
I did in a console
     PWD='pwd'
then in context/source/luametatex
     sh build.sh

alain@alain:pwd$ sh build.sh
build.sh: 28: [: unexpected operator
build.sh: 37: [: unexpected operator
build.sh: 117: build.sh: cmake: not found
build.sh: 122: build.sh: cmake: not found

tex trees

so I commented lines:28-111 and 119 this seems instruction to take into 
account the different plateforms, I did leave the last instruction: 
lines 112-118

and installed cmake, which I didn't have.
then

alain@alain:~/context/source/luametatex$ sh build.sh
-- The C compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test limited_support
-- Performing Test limited_support - Success
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/alain/context/source/luametatex/build/native

Unknown argument --parallel
Unknown argument 8
Usage: cmake --build  [options] [-- [native-options]]
Options:
     = Project binary directory to be built.
   --target  = Build  instead of default targets.
    May only be specified once.
   --config  = For multi-configuration tools, choose .
   --clean-first  = Build target 'clean' first, then build.
    (To clean only, use --target 'clean'.)
   --use-stderr   = Ignored.  Behavior is default in CMake >= 3.0.
   -- = Pass remaining options to the native tool.

tex trees

resources like public fonts  : tex/texmf/
the context macro package    : tex/texmf-context/
the luametatex binary    : tex/texmf-native/bin/...
optional third party modules : tex/texmf-context/
fonts installed by the user  : tex/texmf-fonts/fonts/data/
styles made by the user  : tex/texmf-projects/tex/context/user/

binaries:

tex/texmf-/bin/luametatex : the compiled binary (some 
2-3MB)

tex/texmf-/bin/mtxrun : copy of or link to luametatex
tex/texmf-/bin/context    : copy of or link to luametatex
tex/texmf-/bin/mtxrun.lua : copy of 
tex/texmf-context/scripts/context/lua/mtxrun.lua
tex/texmf-/bin/context.lua    : copy of 
tex/texmf-context/scripts/context/lua/context.lua


commands:

mtxrun --generate : create file database
mtxrun --script fonts --reload    : create font database
mtxrun --autogenerate context ... : run tex file (e.g. from editor)

The binaries have not been created!

My cmake doesn't support --parallel (what is the use of parallèle?)
I erased everything and started again with canges made to build.sh
 >>> this is the instructions at lines 121-122
 >>> I commented the end of linee 122

alain@alain:~/context$ PWD='pwd'
alain@alain:pwd$ cd source/luametatex
alain@alain:~/context/source/luametatex$ sh build.sh
-- The C compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test limited_support
-- Performing Test limited_support - Success
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/alain/context/source/luametatex/build/native

Usage: cmake --build  [options] [-- [native-options]]
Options:
     = Project binary directory to be built.
   --target  = Build  instead of default targets.
    May only be specified once.
   --config  = For multi-configuration tools, choose .
   --clean-first  = Build target 'clean' first, then build.
    (To clean only, use --target 'clean'.)
   --use-stderr   = Ignored.  Behavior is default in CMake >= 3.0.
   -- = Pass remaining options to the native tool.

tex trees

resources like public fonts  : tex/texmf/
the context macro package    : tex/texmf-context/
the luametatex binary    : tex/texmf-native/bin/...
optional third party modules : tex/texmf-context/
fonts installed by the user  : tex/texmf-fonts/fonts/data/
styles made by the user  : tex/texmf-projects/tex/context/user/

binaries:


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

2024-02-14 Thread Henning Hraban Ramm

Reminder: This is today & quite soon!

Am 10.02.24 um 23:01 schrieb Henning Hraban Ramm:

You’re invited to our regular online meet-up, this upcoming
Wednesday, February 14th, 19:00 CET (UTC+1)

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?
(I hope I’ll manage to show a poster draft…)

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: Seeindex with zie instead of see?

2024-02-14 Thread Henning Hraban Ramm

Am 14.02.24 um 10:42 schrieb G.C.H.M. Verhaag via ntg-context:

Hi ConTeXt users,

Wondering whether there is a possibility to modify the word *see* into 
the Dutch word *zie* in the use of the \seeindex command?


Did you set \mainlanguage[nl]?

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 lmtx for 32bit under LUBUNTU 18.04

2024-02-13 Thread Henning Hraban Ramm

Am 13.02.24 um 17:29 schrieb Alain Delmotte:

Hi,

A month or so ago Hans provided a new upload (thanks I managed to get 
and install it on my Windows 10 64b). At that time I was struggling for 
having my computers back in order (that appends sometimes).


Now I'd like to have LMTX on an old but still used (when travelling) 
portable under lubuntu 18.04 32Bits.


There is no more executable available on pragma and I am using Context 
from TeX Live, but it is the 2017 version.


I can do with it, but it would be better to have Context lmtx latest.

Is it possible to have it? But if this a too complicate problem, I'll 
stand with the TeX Live Context.


Just compile it yourself.


In your installation root (where install.sh is):

PWD=`pwd`
cd tex/texmf-context/source/luametatex
sh build.sh
cp build/native/luametatex "$PWD/tex/texmf-linux/bin/"
cd "$PWD"


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-02-13 Thread Henning Hraban Ramm

Hi Willi,

I guess you already saw the other message that I really meant Wednesday, 
14th, regardless of Valentine and Ash Wednesday.


In Germany, this is a day when political parties have a very unfriendly 
conference with extra polemic speeches. We can do better ;)

https://de.wikipedia.org/wiki/Politischer_Aschermittwoch

Hraban

Am 12.02.24 um 19:48 schrieb Willi Egger:

Hi Hraban,

hm there is a incongruence of the date. Either it is Wednesday the 14th of 
February or Tuesday the 13th of February… Which correct?

Cheers
Willi


On 10 Feb 2024, at 23:01, Henning Hraban Ramm  wrote:

You’re invited to our regular online meet-up, this upcoming
Wednesday, February 13th, 19:00 CET (UTC+1)

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?
(I hope I’ll manage to show a poster draft…)

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

2024-02-11 Thread Henning Hraban Ramm

Oops, yes I meant 14th - Valentine and Ash Wednesday at the same time.

Hraban

Am 11.02.24 um 12:20 schrieb mf:

Hello Hraban,

February 13th is Tuesday.

Maybe you meant February 14th.

Best wishes,

Massimiliano

Il 10/02/24 23:01, Henning Hraban Ramm ha scritto:

You’re invited to our regular online meet-up, this upcoming
Wednesday, February 13th, 19:00 CET (UTC+1)

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?
(I hope I’ll manage to show a poster draft…)

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 meet-up

2024-02-10 Thread Henning Hraban Ramm

You’re invited to our regular online meet-up, this upcoming
Wednesday, February 13th, 19:00 CET (UTC+1)

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?
(I hope I’ll manage to show a poster draft…)

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: distance in \setupinitial

2024-02-09 Thread Henning Hraban Ramm

Am 09.02.24 um 22:06 schrieb Thomas Meyer:

Thank you, Pablo,

next question:
why does it say here
https://wiki.contextgarden.net/Command/setupinitial
default is 0pt?
Why does the information not match?
Crazy!


Either it changed since 2020, or Garulfo just assumed wrongly when they 
wrote it. Anyway, I changed it. You could have done it yourself.


Thank you, Pablo, for looking it 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] Re: OT: interview with John Warnock

2024-02-09 Thread Henning Hraban Ramm

Am 09.02.24 um 20:15 schrieb Pablo Rodriguez via ntg-context:

On 2/6/24 14:04, Henning Hraban Ramm wrote:

Hi, I came across this interview with John Warnock (founder of Adobe and
developer of PostScript):

https://archive.computerhistory.org/resources/access/text/2023/08/102738759-05-01-acc.pdf


Many thanks for the reference, Hraban.

This is the first part of the interview, which has a second part in:

https://archive.computerhistory.org/resources/access/text/2023/08/102738854-05-01-acc.pdf

Videos for both (almost five hours in total) are available at

 https://invidio.us/fB6UvJLKkWI
 https://invidio.us/mNhzjz3PhK4;

Many thanks again,


Thank you! I got the link to the first part on Mastodon and didn’t want 
to read even longer, so I didn’t look for more… ;)


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: Square right aligned

2024-02-08 Thread Henning Hraban Ramm

Am 08.02.24 um 12:23 schrieb Ursula Hermann:

Dear List,


I am at Home  and have the following example.:

klar.\startalignment[right]\square\stopalignment}\stoptext}

There should be a sign like this □ at the end of the proof.


What’s your problem – is the square missing? Then there’s probably an 
error message in the log that tells you about missing characters in your 
selected font.


I’d suggest \wordright{} instead of your alignment construction.

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] color profiles

2024-02-07 Thread Henning Hraban Ramm
Hi, I thought I could finally setup color management properly instead of 
converting all print PDFs with Acrobat Pro…


On the wiki, there’s something in https://wiki.contextgarden.net/PDFX; I 
updated it a bit, but we (I?) should combine it with 
https://wiki.contextgarden.net/PDF/A …


How can I add my own profiles to the distributed set in colorprofiles.xml?
Should I provide a colorprofiles.xml or .lua in texmf-local?

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: interview with John Warnock

2024-02-06 Thread Henning Hraban Ramm
Hi, I came across this interview with John Warnock (founder of Adobe and 
developer of PostScript):


https://archive.computerhistory.org/resources/access/text/2023/08/102738759-05-01-acc.pdf

Maybe you already know it. And there’s probably a video version.
While the first half about his personal history might not be that 
interesting, “how computer graphics came to be” surely is (a simulator 
for ship pilots played an important role).
And there’s a side blow to Don Knuth that his approach to fonts was 
wrong. ;)


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: chronological TOC

2024-01-30 Thread Henning Hraban Ramm

Am 29.01.24 um 21:45 schrieb jbf:
And indeed this is the best solution I could find, though it obviously 
meant that something like '29 April 2017' was no good for sorting on... 
it has to be the US date format YY-MM-DD


How did you expect a simple sorting algorithm to sort by verbose dates?
BTW, -MM-DD is ISO 8601.

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: chronological TOC

2024-01-27 Thread Henning Hraban Ramm

Am 26.01.24 um 23:46 schrieb jbf:
I wonder if someone can point me in the right direction for a separate 
TOC which needs to be in chronological order at the back of the book 
(i.e. not in page number order, although I need the page numbers to show 
up in the TOC. There is the normal TOC at the front of the book, 
according to chapter titles.


I have succeeded in defining a separate TOC to place at the back, but 
have not succeeded in the chronological order! Here is what I have done:


\definelist[chron][criterium=all,alternative=c]

At the back of the book:

\placelist[chron][criterium=all]

Then at an appropriate point after each \startchapter I have placed (as 
an example):


\writetolist[chron]{}{{\bf 29 April 2017,} Speech, Panama City}

This gives me my list, but in page number order. How do I get the date 
(e.g. 29 April 2017) to be the ordering factor in the list. I assume it 
will be something to do with criterium, but am clueless at the moment on 
how to indicate this.


I don’t know if it works this way (the wizards will know a way), but for 
special needs I’m (ab)using indexes:
just add something like \index[2017-04-29]{Speech, Panama City} to your 
chapter command and setup the index at will.


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: \starttable questions

2024-01-25 Thread Henning Hraban Ramm

Am 25.01.24 um 16:12 schrieb Jim:

Hi, I was wondering if anyone here could help me with these three things:

For a long time I have been using Wichura's TaBle macros (i.e., what one
gets with
 \input table
in plain TeX) and would like to use what appears to be ConTeXt's version of
those (i.e., what one gets with \starttable ... \stoptable).


However, https://wiki.contextgarden.net/Command/starttable says
 The environment \starttable ... \stoptable is and (sic) old and
 nearly obsolete way to handle tabular material

Q1: are there plans to remove \starttable ... \endtable from ConTeXt any
 time "soon", or is that wiki comment gratuitously pessimistic?



Hans suggests to use tabulate as long as it fits.

tabulate uses mostly the same syntax as table(s), but as far as I looked 
into the sources, it’s a different (and probably better) implementation.


I’m quite sure \starttable will stay, it’s just discouraged since 
\startTABLE (natural tables) is better if you need more than \starttabulate.




In a recent answer on this list, Mikael helped someone by pointing out the
\HF[...] command.  The \HF command is not listed in the \starttable wiki page.

Q2: Is \HF[] documented anywhere?  If so, can someone point me to that/those
 document(s)?


I also don’t know anything about \HF and didn’t find it in the source.
Are you sure it wasn’t just used in a math context?


Perhaps an answer to Q2 will answer this one too, but in case it doesn't...

When using Wichura's \BeginTable ... \EndTable macros, I occasionally
use the \\+nm feature to add n points above the current line and/or m
points below the current line.

Q3: Does ConTexT's \starttable ... \endtable have this feature?
 If so, how does one access this feature?


Probably not, you don’t use \\ in a ConTeXt table.
There’s \TB[] that understands the same parameters as \blank

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: OpenBSD install failed

2024-01-22 Thread Henning Hraban Ramm

Am 23.01.24 um 00:34 schrieb Damien Thiriet via ntg-context:

Hello,

I tried to install OpenBSD 7.4 binaries but failed.
What I did:
download the zip from pragma
unpack it in /usr/local/context
chmod 744 install.sh
./install.sh

After running it, there is no file in

/usr/local/context/tex/texmf-openbsd7.4-amd64/


Did you try to compile your own binaries?
You need CMake and a C compiler.

PWD = your installation directory
PLATFORM = openbsd7.4-amd64 (if that’s still right)

cd $PWD/tex/texmf-context/source/luametatex
sh build.sh
cp build/native/luametatex "$PWD/tex/texmf-$PLATFORM/bin/"

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: context version 20240118 ("Registerhaltigkeit")

2024-01-22 Thread Henning Hraban Ramm

Am 22.01.24 um 11:46 schrieb Thomas Meyer:
I might get a bit impatient if I have the impression that others get an 
answer faster. Sorry for that.


It’s not unusual to get that impression. It depends on the current 
attention, capacity and mood of the few who can answer your questions.


So the problem 
is still \hfill that the last paragraph is not on grid in the new and 
the old version (and comma).


Grid is not as easy as it looks first. Low level tricks like fills or 
skips can mess it up.



Maybe \startlinecorrection helps… (No, it doesn’t.)

It also doesn’t help to add a \blank or \par after \vfill.


Hans, how about adding \blank[fill] for a vertical fill that keeps the 
grid (in grid mode, of course)?




https://wiki.contextgarden.net/Grid_typesetting is not very helpful, 
some links are dead, “someone” should change that.


The details manual has some hints about grid typesetting, but it’s not 
an easy read.


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: Why LuaMetaTex is so slow?

2024-01-19 Thread Henning Hraban Ramm

Am 19.01.24 um 10:31 schrieb Hans Hagen:

(that said: luametatex runs fine on my mobile phone)


What’s the smallest/oldest device someone tried LMTX on?
(We were joking about “Hans’ thermostate and Alan’s fridge“…)
Would it run on some 8 bit homecomputer? (I’d guess the RAM is too 
limited, and loading from datasette would need hours…)


Just curious.

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: Why LuaMetaTex is so slow?

2024-01-18 Thread Henning Hraban Ramm

Am 18.01.24 um 18:47 schrieb Pablo Rodriguez via ntg-context:

On 1/18/24 18:24, Shiv Shankar Dayal wrote:

I can process TeXBook in almost an instant using PDFTeX which is about
450+ pages but my math book takes around 30 seconds averaging ~40
pages/second.


Hi Shiv Shankar Dayal,

I guess that “The TeXbook” (having been written by Knuth himself) may be
optimized for speed.

Your math book may use features (I’m guessing again) that require more
resources than the features used by “The TeXbook”.


Why LuaMetaTeX is so slow? How can I speed it up?


https://www.pragma-ade.com/general/manuals/musings.pdf#page=96 might
explain why Lua(Meta)TeX is slower.

Other chapters in that document from Hans might give you some insight on
the reasons why LMTX has to pay a price for being more feature-rich. I
got such impression when I read it.

Just in case it might help,


In comparison to LaTeX with LuaHBTeX, ConTeXt with LuaMetaTeX is 
lightning fast.


pdfTeX is 8bit, and Knuth’s plain TeX is very low level – for a fairer 
comparison, try the TeXbook on LuaMetaTeX (I don’t know if “plain” 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: [ \copypages ]

2024-01-17 Thread Henning Hraban Ramm

Am 17.01.24 um 22:20 schrieb vm via ntg-context:


Is there a (hidden) option that allows for changing the font color of 
external included pdfs


\copypages[file.pdf][color=blue]

does not work as intended ;-)


No, it can’t.

You can try to use transparency: put a colored area on top of the PDF 
and find the right transparency mode (15 or 13, I guess).


https://wiki.contextgarden.net/Transparency

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: issue with fonts in current latest (2024.01.08 11:23)

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 21:43 schrieb Mikael Sundqvist:

Try this:
\definebodyfontenvironment[16pt]


Yes, 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] Re: Looking for itemize help

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 17:15 schrieb Jim:

"after" does the trick, but not in an automatic way.  I would like
something which automagically "does the right thing".


With “automagically”, do you mean for all instances?

\setupitemgroup[itemize][nowhite,after]


Sorry, then you need "nowhite". Usually that’s synonymous to
"packed,joineup", but apparently not if whitespace is active.


"Usually" is in the eye of the beholder.  ;-)

I would have thought that having non-zero whitespace between paragraphs is
common.  For example, Aditya's blog linked to above has whitespace between
paragraphs.  Are you suggesting that is uncommon, or (showing my
Context-noobness) is \setupwhitespace not the usual ConTeXt way to do this?


Yes, it’s common, and \setupwhitespace is right.

I just don’t remember all the setups in my many environments all the time.


I added a few comments to
https://wiki.contextgarden.net/Command/setupitemgroup
Unfortunately, this is one of the areas where we have a plethora of options
and no documentation about them.


Thanks for adding them.  I see you did not document the all-important (to
me) "after" (or "before") in the wiki.  Would you like to add that?  If
you don't have time right now, I'd be happy to do so.


It’s there now.
I’m not sure about the options regarding width

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: issue with fonts in current latest (2024.01.08 11:23)

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 18:16 schrieb Pablo Rodriguez via ntg-context:

I guess there might be an issue here. Could anyone confirm this?


Yes, same beta from last week (2024.01.08).

No error in the console output.

mkiv lua stats  > loaded fonts: 4 files: latinmodernmath-companion.otf, 
latinmodern-math.otf, texgyrepagella-bold.otf, texgyrepagella-regular.otf


Apparently Pagella bold is loaded, but not used.


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: special ToC

2024-01-15 Thread Henning Hraban Ramm


I came across a table of contents style that’s hardly possible with TeX:

https://historians.social/@dbellingradt/111760591144801241
(image is too big for the ML)


(Yes of course you can do it with manual references and MetaPost lines…)


;D
___
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: Looking for itemize help

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 15:36 schrieb Jim:

\startitemize[packed,joinedup] should be the right combination.


I won't argue about "should", but I will point out it isn't, at least on my
computer with a recently updated context.

Here is a non-minimal but short non-working example.


Sorry, then you need "nowhite". Usually that’s synonymous to 
"packed,joineup", but apparently not if whitespace is active.


I added a few comments to 
https://wiki.contextgarden.net/Command/setupitemgroup
Unfortunately, this is one of the areas where we have a plethora of 
options and no documentation about them.


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 problem in formula

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 13:21 schrieb Hans Hagen:

On 1/15/2024 8:00 AM, Shiv Shankar Dayal wrote:

Thanks a lot Mikael.


in addition: in context lmtx {} are grouping symbols not (ordinary) 
empty atoms


Only in math, or generally?

\startquotation
{}[…] Here I need the empty group, otherwise the brackets belong to \start…
\stopquotation

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: Looking for itemize help

2024-01-14 Thread Henning Hraban Ramm

Am 15.01.24 um 01:42 schrieb Jim:


Some text preceding the list of items:
a. Item one.
b. Second item.
This sentence is part of the same paragraph.

The next paragraph starts here...


\startitemize[packed,joinedup] should be the right combination.

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: "Registerhaltigkeit"

2024-01-14 Thread Henning Hraban Ramm

Am 14.01.24 um 10:30 schrieb Thomas Meyer:

which settings are necessary to achieve "Registerhaltigkeit"?


\setuplayout[grid=yes]

You might like \showgrid, and please read the manual details.pdf WRT to 
placement of elements that don’t fit the grid.


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   >