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

2020-11-06 Thread Ramkumar KB
Hi,

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

Thank you very much!
Ramkumar

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

> On Fri, 6 Nov 2020, thierry horsin wrote:
>
> > Hi Ramkumar,
> >
> > Maybe you could have some scripts that check when the JSON file is
> modified
> > and if so launches the compilation. I did that sort of script in order
> to have
> > a continuous compilation process by checking every second if my current
> .tex
> > file is modified.
>
> Here is a script which does this for general tasks:
>
> http://users.fred.net/tds/lab/ftp/atchange
>
> It is also possible to build something on top of inotifywait on linux.
>
> Aditya
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt Linux installation issues (due to GLIBC dependency) - Solved!

2020-11-06 Thread Ramkumar KB
Hello All,

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

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

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

How can I go about contributing to the wiki?

Thank you,
Ramkumar

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

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

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


Re: [NTG-context] new upload

2020-11-06 Thread Floris van Manen

this is my script for a daily update check which seems to do the job


#!/usr/bin/env bash
cd  ~/context
context --version | grep "current version"
echo ""
mtxrun --script cache --erase >ctx.log
rm tex/*.tma
sh ./install.sh >ctx.log
context --version | grep "current version"

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

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


[NTG-context] expansion and protrusion working again

2020-11-06 Thread Pablo Rodriguez
Dear list,

one of the features I noticed in current latest (from yesterday
[2020.11.06]) is that hz and hanging are working again.

Huge thanks to Hans and Wolfgang for enabling this again.

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new upload

2020-11-06 Thread Pablo Rodriguez
On 11/7/20 12:02 AM, mf wrote:
> [...]
> I can confirm that on my Debian 10 64bit: no update until I removed
>
> texmf-context.tma
> texmf-linux-64.tma
> texmf.tma
>
> in the tex subdir.

I had to remove these files to update from LMTX from 2020.10.20 to
version from 2020.11.05.

But I had to remove these files again to upgrade from 2020.11.05 to
2020.11.06.

I wonder whether the same happens in Windows (I haven’t checked it yet).

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] messages on undefined control sequences

2020-11-06 Thread Pablo Rodriguez
Hans,

this is a standard eror message now:

 tex error   > tex error on line 9 in file cont-yes.mkiv: Undefined
 control sequence

  \strc_sectioning_empty_correction \ifconditional
 \c_strc_sectioning_empty \penalty \plustenthousand \vskivskip
 -\lineheight \kern \zeropoint \prevdepth \strutdepth \fi
  \strc_sectioning_after_yes ...l \c_strc_sectioning_auto_break
 \spac_vspacing_same_page \currentheadlevel \plusone \fi
 \strc_sectioning_empty_correction
 \headparameter \c!after \strc_sectioning_depth_correction \fi
  \strc_sectioning_handle ...synchonization \let \getheadtitle
 \fullheadtitle \strc_rendering_place_head_text \dostoptagged
 \strc_sectioning_after_yes
 \orelse \ifconditional \c_strc_sectioning_hidden
 \strc_sectioning_register {#1}{#2}{#3}\strc_sectioning_report \let
 \gethe...

  \syst_modes_set_yes #1->\settrue \c_syst_modes_set_done #1
 \doifelsenextoptionalcs \syst_modes_set_start \syst_modes_set_quit

  \CoverPageTitle \startmodeset [**en, **uk] {\hiddentitle
 {[Cover page]}}[**es] {\hiddentitle {[Portada]}}
 [**deo,**de,**de-de,**de-at,**de-ch] {\hiddentitle
 {[Bildtitelseite]}}\stopmodeset

  \22>:coverpage ...,**de,**de-de,**de-at,**de-ch] {\hiddentitle
 {[Bildtitelseite]}}\stopmodeset }\doifdefined
 {hiddentitle}{\CoverPageTitle }
 \setupbodyfont [svb]{\scale [width=.35\textwidth ]{\sc
 \getvariable {coverpage}{author}}}\vfill \scale [width=\textwidth]...
 \setuppapersize[A6]

Would it be possible that LMTX adds the undefined command at the end of
the tex error line? I mean something similar to:

 tex error   > tex error on line 9 in file cont-yes.mkiv: Undefined
 control sequence (vskivskip)

It would help a lot to detect wrong commands.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new upload

2020-11-06 Thread mf

Il 06/11/20 22:03, Pablo Rodriguez ha scritto:

I’m afraid that I cannot update unless I remove tex/texmf*.tma.

I’m on Linux-64bit and I wonder whether I’m the only user affected by
this issue.


I can confirm that on my Debian 10 64bit: no update until I removed

texmf-context.tma
texmf-linux-64.tma
texmf.tma

in the tex subdir.

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

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


Re: [NTG-context] new upload

2020-11-06 Thread Rik Kabel

On 11/6/2020 16:03, Pablo Rodriguez wrote:

On 11/6/20 8:42 PM, Hans Hagen wrote:

Hi,

Again a new lmtx upload. As these days are all about counting and
numbers ... of the 19K visible macros some 14K are now flagged.

Many thanks for the new release, Hans.

I’m afraid that I cannot update unless I remove tex/texmf*.tma.

I’m on Linux-64bit and I wonder whether I’m the only user affected by
this issue.


Question: do we really need all these 'named characters'  or can we at
some point ditch many .. I assume that users who key in greek and
cyrillic use unicode nowdays (no hurry, just wondering).

As for Greek enconding, I never used anything else than UTF-8.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Same problem on WIndows 10. I have taken to simply doing a fresh install 
to get updates. Minor frustration.


--
Rik

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

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


Re: [NTG-context] new upload

2020-11-06 Thread Pablo Rodriguez
On 11/6/20 8:42 PM, Hans Hagen wrote:
> Hi,
>
> Again a new lmtx upload. As these days are all about counting and
> numbers ... of the 19K visible macros some 14K are now flagged.

Many thanks for the new release, Hans.

I’m afraid that I cannot update unless I remove tex/texmf*.tma.

I’m on Linux-64bit and I wonder whether I’m the only user affected by
this issue.

> Question: do we really need all these 'named characters'  or can we at
> some point ditch many .. I assume that users who key in greek and
> cyrillic use unicode nowdays (no hurry, just wondering).

As for Greek enconding, I never used anything else than UTF-8.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] new upload

2020-11-06 Thread Hans Hagen

Hi,

Again a new lmtx upload. As these days are all about counting and 
numbers ... of the 19K visible macros some 14K are now flagged.


Question: do we really need all these 'named characters'  or can we at 
some point ditch many .. I assume that users who key in greek and 
cyrillic use unicode nowdays (no hurry, just wondering).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] color epub reader

2020-11-06 Thread Hans Hagen

Hi,

Playing with a pocketbook color epub reader (I just put some manuals on 
it):


- the colors are not bright enough, also not with lights on, why rgb and 
not cmyk (i only tested pdf)


- the viewer is buggy and freezes, color demands more mem i think, but 
after an upodate it got a bit better


- resolution not good enough (yet)

But we keep hoping ...

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] store data in the first run for later runs?

2020-11-06 Thread Pablo Rodriguez
Dear list,

I have the following sample:

  \starttext
  \startTEXpage[offset=1em]

  \startmode[*first]
  \startluacode
  io.write(" What’s your name?")
  document.user_name = io.read()
  document_data = { "\\def\\UserName{" .. document.user_name .. "}" }
  io.savedata(tex.jobname.."_document-tmp-data.txt", document_data)
  \stopluacode
  \stopmode

  \input{\jobname_document-tmp-data.txt}
  \UserName, nice to meet you.
  \stopTEXpage
  \stoptext

This prompts user input on the first run, but I have to save to an
external file to be able to read it in next runs.

Just in case you might wonder, the actual code requires "--purgeall".

Is there no way to save that in the .tuc file for later runs?

I have tried
https://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Multi-pass_data
(as Aditya suggested to me), but runs after the first one see to empty
the data in the Lua table.

Adapting a sample from the wiki:

  \starttext

  \definedataset[somedataset]
  \startmode[*first]
  \setdataset[somedataset][wantscake=yes, wantsdeath=no]
  \stopmode

  Do you want cake? \datasetvariable{somedataset}{1}{wantscake}.\\
  BTW, do you want death? \datasetvariable{somedataset}{1}{wantsdeath}.
  \stoptext

I wonder whether there is no cleaner way to do this.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] install.sh not working on Linux (Ubuntu 20.04)?

2020-11-06 Thread Pablo Rodriguez
On 11/6/20 5:14 PM, Floris van Manen wrote:
> On 06/11/2020 16:49, Jairo A. del Rio wrote:
>> Is anyone else having problems with recent ConTeXt updates on Linux?
>> Since last month, install.sh isn't doing anything. However, when I go to
>> Pragma ADE's website, I can download newer releases and they work fine
>> (e.g. --permitloadlib works now). I'm not so picky about manual
>> downloads, but I think install.sh is (or was) quite better. I'm on
>> Ubuntu 20.04, in case it helps. Thank you very much.
>
> yes I had a similar experience.
> After downloading a fresh install.sh new updates became available again.
> (Pop!OS 20.10)

Hi Jairo and Floris,

I reported a similar issue some days ago.

I think I have solved it (no extensive checking yet) by deleting the
three texmf*.tma files on the tex/ directory.

If you still have a copy of your older installation, you may try this
(but please make a backup of the older installation first).

Just in case it might help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] math symbol for "is an element of"

2020-11-06 Thread Sylvain Hubert
If you happen to use ibus on a linux, there's a emoji/unicode picker
,
where you can type `elem` and pick one from the
candidates “∈∉∊⋲⋳⋴⋵⋶⋷⋸⋹⟒⫙” .

On Thu, 5 Nov 2020 at 21:25,  wrote:

> A quick question for the ConTeXt mailing list:
>
> Other than typing it directly (or cutting and pasting it), how does one get
> the character ∈ (in case this gets garbled in emailing, this is supposed to
> be the mathematical symbol that looks more or less like an epsilon, and
> which is the mathematical symbol for "is an element of" a set).
>
> \showmathfontcharacters gives the following information about it:
>
> U+02208: ∈ ∈ element of
> width: 524262, height: 426798, depth: 33798, italic: 0
> mathclass: relation, mathname: in
>
> I'm not completely sure how to read this information, but if I read it
> correctly, perhaps this character should be gotten with \in. Also, the
> Basic
> Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states
> that you should be able to type this character with "\in". But that doesn't
> work (even inside a formula), since \in is used for references in ConTeXt.
> And in fact the link on the Basic Math page for \in takes you to the
> explanation of \in as used for ConTeXt references.
>
> This is a very common character in mathematics, so I wanted to ask: what is
> the recommended way to type this character? (I'm hoping to avoid having to
> cut and paste the character into the document every time I want to use it.
> And I don't have a utf enabled keyboard that would allow me to type this
> symbol readily from the keyboard.)
>
> Thanks in advance,
>
>
> Sciurus
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] math symbol for "is an element of"

2020-11-06 Thread type
Thank you for your extremely thorough and helpful response, Hans! I'm still 
fairly new to ConTeXt, but I'm learning, and I have been helped greatly by all 
the support that is generously provided on this email list.

With thanks,


Sciurus

-Original Message-
From: Hans Hagen  
Sent: Friday, November 6, 2020 12:10 AM
To: mailing list for ConTeXt users ; 
t...@projectivespace.com
Subject: Re: [NTG-context] math symbol for "is an element of"

On 11/6/2020 12:24 AM, t...@projectivespace.com wrote:

> In this particular case, as Wolfgang pointed out, \in actually does work to 
> get the desired symbol in math mode. But it is good to know how to use text 
> substitutions too.
WHen you are in doubt you can do this:

\meaning\in

it will show you that the commands is adapting itself to math mode. 
There are a few such commands with 'clashing' names.

A variant on this is \NC which is the column separator but has a 
different meaning depending on where it's used. That one gets set to 
some meaning in environments.

Another overloaded one is \\ and it could be a space or newline or ...

Actually the last two are candidates for protectiopn against overload.

btw, users can run context with

--overloadmode=warning
--overloadmode=error

to see if their usage of commands or definitions bring conflicts. 
Currently \in is not yet protected against overload but it will be.

Hans



-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

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

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


Re: [NTG-context] install.sh not working on Linux (Ubuntu 20.04)?

2020-11-06 Thread Floris van Manen



On 06/11/2020 16:49, Jairo A. del Rio wrote:
Is anyone else having problems with recent ConTeXt updates on Linux? 
Since last month, install.sh isn't doing anything. However, when I go to 
Pragma ADE's website, I can download newer releases and they work fine 
(e.g. --permitloadlib works now). I'm not so picky about manual 
downloads, but I think install.sh is (or was) quite better. I'm on 
Ubuntu 20.04, in case it helps. Thank you very much.


yes I had a similar experience.
After downloading a fresh install.sh new updates became available again.
(Pop!OS 20.10)


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

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


[NTG-context] install.sh not working on Linux (Ubuntu 20.04)?

2020-11-06 Thread Jairo A. del Rio
Hi everybody.

Is anyone else having problems with recent ConTeXt updates on Linux? Since
last month, install.sh isn't doing anything. However, when I go to Pragma
ADE's website, I can download newer releases and they work fine (e.g.
--permitloadlib works now). I'm not so picky about manual downloads, but I
think install.sh is (or was) quite better. I'm on Ubuntu 20.04, in case it
helps. Thank you very much.

Regards,

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

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


[NTG-context] Problem using a TTF font

2020-11-06 Thread ntg
This, I'm certain, used to work with an LMTX from the beginning of the year but 
I've upgraded to "ConTeXt  ver: 2020.11.05 23:01 LMTX  fmt: 2020.11.6  int: 
english/english" and now it doesn't. 

I have a single .tex file in a directory, containing:

---begin---
\definefont [TwelveC] [file:Bondi12CPlus.TTF at 14pt]
\starttext
Keycaps: \TwelveC 123.45 \tf and back again
\stoptext
---end---

In the same directory I have the TTF font file which can be obtained from 
. It is calculator keycap images for use 
in documentation.

In the PDF I get just blank space where the keycaps should be and Adobe 
Reader's document info seems to think there is only one font in the file i.e. 
the keycap font didn't get embedded. However, the console output includes the 
lines:

mkiv lua stats  > result saved in file: 12C_test.pdf, compresslevel 3, 
objectcompresslevel 1
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, 
lmroman12-regular.otf, bondi12cplus.ttf
mkiv lua stats  > font engine: otf 3.111, afm 1.513, tfm 1.000, 8 instances, 3 
shared in backend, 3 common vectors, 0 common hashes, load time 0.132 seconds 
mkiv lua stats  > font embedding time: 0.006 seconds, 2 fonts

which suggests LMTX thinks it loaded the font but decided not to embed it for 
some reason.

I'm probably doing something silly since it's been several months since I last 
looked at this but I can't see what I might be doing wrong :-(  so any and all 
help much appreciated.

PS: The font installs and displays in MacOS fine.

I've also tried
  \definefont [TwelveC] [Bondi12CPlus at 14pt]
and that fails the same way.

--
Bruce Horrocks
Hampshire, UK

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

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


Re: [NTG-context] index issues

2020-11-06 Thread Henning Hraban Ramm
> Am 06.11.2020 um 12:22 schrieb Henning Hraban Ramm :
> 
> (2)
> Page/column breaking is odd in that the preferred breaking point seems to be 
> one entry too early, i.e. the last entry of one letter end up in the next 
> column and the previous column is one line too short.
> It doesn’t change with balance=yes/no.

If one of the \index{D...} lines is commented in the following example, the 
last D entry goes into the second column, the columns get balanced, and the 
second line of the last K entry is broken to the next page.
If you uncomment that line, it looks as intended (no balancing, full left 
column).
What’s wrong? Can I influence this e.g. with penalties?

(Screenshots were too big...)

Hraban


\setuppapersize[A6]
\setupbodyfont[16pt]
\setupregister[index][balance=no,indicator=no]
\showframe

\starttext

%\setinjector[index][10][{\column}]
%\showinjector[index] % ERROR!
\index{Danold}
\index{Drum}
%\index{Dapper} % uncomment to test
\index{Kankra}
\index{Kookaburra}

\placeregister[index][criterium=all]
\page

\startregister[index][test]{Knuth}
  \input tufte
  \index{Donald}\index{Drom}\index{Divine}
  \page\index{Dummy}
  \input knuth
  \index{Donald}\index{Dom}\index{Dunno}
  \page
\stopregister[index][test]

\input darwin\index{Darwin}
\page

\dorecurse{5}{
\input knuth
\index{Knuth}\index{Donald}\index{Dixit}
\page\index{Knothing}
}

\stoptext

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

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


Re: [NTG-context] index issues

2020-11-06 Thread Henning Hraban Ramm


> Am 06.11.2020 um 15:48 schrieb Duncan Hothersall :
> 
> I don't think \showinjector needs an argument. My MWE when I was looking at 
> this has just \showinjector after the register definition but before the 
> \setinjector[...] commands.

Docs say otherwise.
Without argument, I don’t get an error, but also nothing happens.

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

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


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

2020-11-06 Thread Aditya Mahajan
On Fri, 6 Nov 2020, thierry horsin wrote:

> Hi Ramkumar,
> 
> Maybe you could have some scripts that check when the JSON file is modified
> and if so launches the compilation. I did that sort of script in order to have
> a continuous compilation process by checking every second if my current .tex
> file is modified.

Here is a script which does this for general tasks:

http://users.fred.net/tds/lab/ftp/atchange

It is also possible to build something on top of inotifywait on linux.

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

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


Re: [NTG-context] index issues

2020-11-06 Thread Duncan Hothersall
On Fri, 6 Nov 2020 at 14:31, Henning Hraban Ramm  wrote:

>
>
> > Am 06.11.2020 um 12:54 schrieb Duncan Hothersall :
> >
> > Without MWE try \showinjector and \setinjector.
> >
> > I would add to that that when experimenting with \showinjector you need
> to have at least one \setinjector as well otherwise it doesn't show the
> numbers.
> >
>
> It doesn’t work for me:
>
> lua error   > lua error on line 24 in file inhalt/99anhang.tex:
>
> registered function call [421]:
> ...-06/tex/texmf-context/tex/context/base/mkiv/typo-inj.lua:63: attempt to
> index a nil value (field '?')
> stack traceback:
> ...-06/tex/texmf-context/tex/context/base/mkiv/typo-inj.lua:63: in
> function <...-06/tex/texmf-context/tex/context/base/mkiv/typo-inj.lua:57>
> (...tail calls...)
>
> 23 \setinjector[Person][10][{\column}]
> 24 >>  \showinjector[Person]
>
>
> Regardless what I try as parameter of \showinjector (e.g. register, index,
> my own registers, one or a list) and where (in the environment or before
> \placeregister), I always get this error.
>
> Bug?
>
> LMTX version: 2020.09.20 23:02
>
> Hraban
>
>
I don't think \showinjector needs an argument. My MWE when I was looking at
this has just \showinjector after the register definition but before the
\setinjector[...] commands.

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

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


Re: [NTG-context] index issues

2020-11-06 Thread Henning Hraban Ramm


> Am 06.11.2020 um 12:54 schrieb Duncan Hothersall :
> 
> Without MWE try \showinjector and \setinjector.
> 
> I would add to that that when experimenting with \showinjector you need to 
> have at least one \setinjector as well otherwise it doesn't show the numbers.
> 

It doesn’t work for me:

lua error   > lua error on line 24 in file inhalt/99anhang.tex:

registered function call [421]: 
...-06/tex/texmf-context/tex/context/base/mkiv/typo-inj.lua:63: attempt to 
index a nil value (field '?')
stack traceback:
...-06/tex/texmf-context/tex/context/base/mkiv/typo-inj.lua:63: in 
function <...-06/tex/texmf-context/tex/context/base/mkiv/typo-inj.lua:57>
(...tail calls...)

23 \setinjector[Person][10][{\column}]
24 >>  \showinjector[Person]


Regardless what I try as parameter of \showinjector (e.g. register, index, my 
own registers, one or a list) and where (in the environment or before 
\placeregister), I always get this error.

Bug?

LMTX version: 2020.09.20 23:02

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

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


Re: [NTG-context] index issues

2020-11-06 Thread Henning Hraban Ramm


> Am 06.11.2020 um 12:54 schrieb Duncan Hothersall :
> 
> 
> 
> On Fri, 6 Nov 2020 at 11:52, Jano Kula  wrote:
> 
> On Fri, 6 Nov 2020 at 12:24, Henning Hraban Ramm  wrote:
> Hello again,
> 
> still struggling with indexes.
> 
> I’ll prepare MWEs, but maybe you can answer some of these without?
> 
> Hello Hraban!
> 
> Without MWE try \showinjector and \setinjector.
> 
> Jano
> 
> I would add to that that when experimenting with \showinjector you need to 
> have at least one \setinjector as well otherwise it doesn't show the numbers.
> 
> Duncan 


Jano, Duncan, thank you!

Injectors were mentioned recently, of course I forgout about them... Will try.

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

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


Re: [NTG-context] index issues

2020-11-06 Thread Duncan Hothersall
On Fri, 6 Nov 2020 at 11:52, Jano Kula  wrote:

>
> On Fri, 6 Nov 2020 at 12:24, Henning Hraban Ramm  wrote:
>
>> Hello again,
>>
>> still struggling with indexes.
>>
>> I’ll prepare MWEs, but maybe you can answer some of these without?
>>
>
> Hello Hraban!
>
> Without MWE try \showinjector
>  and \setinjector
> .
>
> Jano
>
> I would add to that that when experimenting with \showinjector you need to
have at least one \setinjector as well otherwise it doesn't show the
numbers.

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

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


Re: [NTG-context] index issues

2020-11-06 Thread Jano Kula
On Fri, 6 Nov 2020 at 12:24, Henning Hraban Ramm  wrote:

> Hello again,
>
> still struggling with indexes.
>
> I’ll prepare MWEs, but maybe you can answer some of these without?
>

Hello Hraban!

Without MWE try \showinjector
 and \setinjector
.

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

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


[NTG-context] index issues

2020-11-06 Thread Henning Hraban Ramm
Hello again,

still struggling with indexes.

(1)
\setupregister’s before and after go around the indicator.
e.g. \setupregister[][indicator=no,after={XX}]
never shows that XX, since after is only used after the indicator, while before 
also works without.

I was hoping for a hook at the end of a section (to add \testcolumn, \blank 
etc. to work around no.2). Is there any?


(2)
Page/column breaking is odd in that the preferred breaking point seems to be 
one entry too early, i.e. the last entry of one letter end up in the next 
column and the previous column is one line too short.
It doesn’t change with balance=yes/no.

E.g.

p.1
A   A
A   A
A
A   B
A   B
A   B
A   !?

p.2
B   C
B   C
B   C
C
C   
C   D
C   D


(3)
(How) can I otherwise influence page/column breaking? E.g.
- always keep multi line entries together
- break before or after some entry


(4)
Is it possible to combine entries from \index and \startregister[index]?

If I use \start/stopregister and have the same index entry within the range or 
on the same page, I get duplicate pages or page ranges, like 10-12 from 
\startregister and additionally 11, 12-13 from \index entries, makes at the 
moment 10-12, 11, 12-13 instead of just 10-13.



I’ll prepare MWEs, but maybe you can answer some of these without?

Thank you in advance,

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

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


[NTG-context] ConTeXt Linux installation issues (due to GLIBC dependency)

2020-11-06 Thread Ramkumar KB
Hello All,

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

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

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

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

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

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

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

\let
<
...
(That makes 100 errors; please try again.)resolvers   | formats |
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

2020-11-06 Thread thierry horsin

Hi Ramkumar,

Maybe you could have some scripts that check when the JSON file is 
modified and if so launches the compilation. I did that sort of script 
in order to have a continuous compilation process by checking every 
second if my current .tex file is modified.


Best

Thierry

On 06/11/2020 09:38, Ramkumar KB wrote:

Hans,

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


Best,
Ramkumar

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


On 11/4/2020 4:48 AM, Ramkumar KB wrote:
> Hans,
>
> Thank you so much for the kind response.
>
> Apologies that I was not very clear in my initial query. I have -
>
>  1. MyStatement.tex, with all the necessary fonts, static text,
images,
>     header, footer etc
>  2. MyStatement.tex reads from a JSON file for certain sections
of the
>     document for the dynamic content
>  3. context MyStatement.tex produces MyStatement.pdf
>
> How do I do the above steps 1 to 3 in a continuous fashion such
that -
>
>   * Output is MyStatement_1.pdf (reads from data_1.json),
>     MyStatement_2.pdf (reads from data_2.json) and so on
>   * The tex processing is fast as fonts etc are loaded once (as
the Tex
>     template is same for all the MyStatement_n.pdf)
>
>  From the sample code that you gave, I get a hint that this can be
> possibly done using ConTeXt Lua Document approach. Is this correct?
i'd just write a script that calls context like

context mystatement.tex --myjsonsection=1 --batch
context mystatement.tex --myjsonsection=2 --batch
context mystatement.tex --myjsonsection=3 --batch

etc .. maybe --once if no multipass is needed, or --runs=2 if you
know
how many runs are needed

to stay in a run and kind of restart is asking for troubles
because what
should be reset? of course i could context make do that buit it
doesn't
pay off

an alternative that you generate one document with all statements and
use mutool to split of the pages

but anyway, nowadays machines are fast enough to have separate
runs (and
one can run them in parallel)

Hans


-
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl
 | www.pragma-pod.nl

-


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] lmt_axis

2020-11-06 Thread thierry horsin

Dear list,

I am currently trying to test the lmt_axis exemple in luametafont.pdf. I 
am working on linux/ubuntu. The exemple leads to compilation errors 
below. The current version of context that I am using is from last july.


I have succeeded with other examples, e.g. surfaces or lmt_text

Any insight about this issue ?

Many thanks.

Thierry


metapost log    > >> unknown path p
metapost log    > >> 0
metapost log    > ! Equation cannot be performed (unknown path=numeric).
metapost log    > 
metapost log    >    (path)
metapost log    > 
metapost log    >    ;
metapost log    >  ...nts"(getparameterdefault"close"false);
metapost log > draw.p.withcolor.c;pushpar...
metapost log    >  ...i;popparameters;popparameters;endfor
metapost log > ;popparameters;fi;popparam...
metapost log    >
metapost log    > image->...ture;currentpicture:=nullpicture;(TEXT3)
metapost log > ;currentpicture.if.str(SUF...
metapost log    >
metapost log    > lmt_do_axis->...r;popparameters;fi;popparameters;)
metapost log > xyscaled(getparameter"axis...
metapost log    >  lmt_do_axis
metapost log    >
metapost log    > <*> ...gment 1", "segment 2", "segment 3" } ] }, ]
metapost log >    ; ;
metapost log    >
close source    > level 2, order 3, name './CoursCSC214.tex'
pages   > flushing realpage 78, userpage 131, subpage 78
close source    > level 1, order 3, name 'cont-yes.mkiv'

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

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


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

2020-11-06 Thread Ramkumar KB
Hans,

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

Best,
Ramkumar

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

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

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


Re: [NTG-context] math symbol for "is an element of"

2020-11-06 Thread Hans Hagen

On 11/6/2020 12:24 AM, t...@projectivespace.com wrote:


In this particular case, as Wolfgang pointed out, \in actually does work to get 
the desired symbol in math mode. But it is good to know how to use text 
substitutions too.

WHen you are in doubt you can do this:

\meaning\in

it will show you that the commands is adapting itself to math mode. 
There are a few such commands with 'clashing' names.


A variant on this is \NC which is the column separator but has a 
different meaning depending on where it's used. That one gets set to 
some meaning in environments.


Another overloaded one is \\ and it could be a space or newline or ...

Actually the last two are candidates for protectiopn against overload.

btw, users can run context with

--overloadmode=warning
--overloadmode=error

to see if their usage of commands or definitions bring conflicts. 
Currently \in is not yet protected against overload but it will be.


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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