Re: [NTG-context] new units

2023-05-06 Thread skyhorse--- via ntg-context



Hans Hagen via ntg-context  wrote:
>..
> Oh, so a bug, I'll fix the message. Not really a unit but then, feet
> is also not one.
>

That is incorrect.  Feet is an establish and proper unit of measurement, which 
consists of 12 inches.  It is used by, at least, several hundred million 
people.  It can be said that the ability to grok and manipulate fractions has 
many benefits, which the metric system sorely lacks.

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

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


Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread skyhorse--- via ntg-context

The context wiki says:
  "When no file extension is specified the extension .tex is assumed."

Yes an error message should be displayed.
By chance, do you have a file named "bar.tex" that would prevent this from 
being an error?

skyhorse


-

Otared Kavian via ntg-context  wrote:

> Hi Marco,
> 
> If I create a file named « bar.txt » then
> 
> \starttext
> Nothing to say\dots
> 
> \typefile{bar.txt}
> 
> \stoptext
> 
> gives the correct result. However ConTeXt seems to dislike \typefile{bar} 
> when the filename has no suffix.
> 
> Best regards : Otared
> 
> > On 17 Dec 2022, at 16:06, Marco Patzer via ntg-context  
> > wrote:
> > 
> > Hi!
> > 
> > In the following example the file “bar” is not included:
> > 
> > # create file “bar”
> > echo Bar > bar
> > 
> > # t.tex
> > \starttext
> >  Foo
> >  \typefile{bar}
> > \stoptext
> > 
> > Then run
> > 
> >  context --errors='*' t.tex
> > 
> > The text “bar” is not included in the PDF, only Foo is. The log file
> > shows:
> > 
> >  verbatims   > file 'bar' does not exist
> > 
> > However, the file “bar” clearly does exist. Furthermore, context
> > exits with no error in the log file and a successful exit value:
> > 
> >  context --errors='*' t.tex > /dev/null; echo $?
> >  0
> > 
> > Is this working as intended?
> > 
> > Marco
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> > 
> > maillist : ntg-context@ntg.nl / 
> > https://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : https://contextgarden.net
> > ___
> 
> Otared Kavian
> e-mail: ota...@gmail.com
> Phone: +33 6 88 26 70 95
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread skyhorse--- via ntg-context


I have a need to use a logo graphics file several times in a document.
I somethings need to update to a newer graphics file.
I only want to make one change to the original variable value definition.

I've tried using \define.. but it's not working for me.
Here is my MWE:



\define[]\logofile{an_image_file.png}   % Here defining the variable with the 
filename to use.

\definelayer[stillimage]
\setlayer[stillimage]{\externalfigure[\logofile]}  % Here trying to use the 
\logofile macro.
\setupbackgrounds[page][background=stillimage]

\starttext
\input knuth
\stoptext




What's the accepted way to do this or are macro arguments not allowable?


Thanks
___
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] unknown script

2021-11-16 Thread skyhorse--- via ntg-context

OS: Linux (Ubuntu 20.04.3)
/opt/context-lmtx   and all directories and files in it are owned by user 
and not root.

I've had this problem before but forgot how to deal with it and neglected to 
make a not of it.
I deleted all old context files and did a fresh install of context-lmtx without 
su priveledges today. When attempting to typeset a lmtx source file I get an 
'unknown script' error.

Here's what pops up on my display screen:

$ context simple-example.lmtx
resolvers   | resolving | configuration files already identified
resolvers   | resolving | loading configuration file 
'selfautoparent:/texmf/web2c/texmfcnf.lua'
resolvers   | resolving |
resolvers   | resolving | locating list of '/opt/context-lmtx/tex/texmf' 
(runtime) (tree:opt/context-lmtx/tex/texmf)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'tree', argument 'tree:opt/context-lmtx/tex/texmf'
resolvers   | trees | locator '/opt/context-lmtx/tex/texmf' found
resolvers   | resolving | hash '/opt/context-lmtx/tex/texmf' appended
resolvers   | resolving |
resolvers   | methods | resolving, method 'generators', how 'uri', handler 
'file', argument '/opt/context-lmtx/tex/texmf'
resolvers   | expansions | using cached scan of path 
'/opt/context-lmtx/tex/texmf', branch '/opt/context-lmtx/tex/texmf'
resolvers   | methods | resolving, method 'generators', how 'uri', handler 
'file', argument '/opt/context-lmtx/tex/texmf'
resolvers   | expansions | using cached scan of path 
'/opt/context-lmtx/tex/texmf', branch '/opt/context-lmtx/tex/texmf'
resolvers   | resolving |
resolvers   | resolving | not saving runtime tree 
'/opt/context-lmtx/tex/texmf'
resolvers   | resolving | not saving runtime tree 
'/opt/context-lmtx/tex/texmf'
resolvers   | resolving | remembered file 'mtx-context.lua'
resolvers   | resolving | remembered file 'mtx-contexts.lua'
resolvers   | resolving | remembered file 'mtx-context.lua'
resolvers   | resolving | remembered file 'mtx-t-context.lua'
resolvers   | resolving | remembered file 'mtx-t-contexts.lua'
resolvers   | resolving | remembered file 'mtx-t-context.lua'
resolvers   | resolving | remembered file 'context.lua'
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

# END

Can anyone shed some light on how this should be handled?

Thanks

-
___
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] mwe (font proble) SOLVED

2021-11-14 Thread skyhorse--- via ntg-context

Solved.  Well almost.  I do know that it's an access problem of some sort.
I used 'font-manager' to look at fonts and it showed  'DejaVu Math Tex Gyre' as 
"disabled"
For su is shows the font as usable.
When context is run su, it compiles successfully.
So the fonts are there.  The example does work, but, not for me as user.
I for some reason have the some fonts disabled.
I'll figure out how to enable them.

Thank you all for your time.  I'll post back when I know what to do in case any 
future user has this problem.

Thank you

Hans Hagen via ntg-context  wrote:

> On 11/14/2021 12:26 AM, skyhorse--- via ntg-context wrote:
> > Here is the minium not-working example which I took from the
> > Wikigarden a few minutes ago.
> >
> > \def\T#1{%
> >\startitemize[#1,joinedup]
> >  \item This is a bullet of type #1.
> >\stopitemize
> > }
> > \starttext
> >\dorecurse{9}{\T\recurselevel}
> > \stoptext
> >
> > Compiling this into a pdf file with context produces an error.
> > I've pasted the complete context typesetting run to show the error, in 
> > hopes that it will shed some light on what's wrong with my setup.   I have 
> > a feeling that the stand along install is missing some vital part of the 
> > installation regarding fonts, and that it's not noticed by the majority of 
> > you since those items are still on your system from legacy versions.
> nornally it means that you have no math font loaded (i.e. you do
> something before \starttext
>
> Hans
>
>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] minimum working example plus (output)

2021-11-14 Thread skyhorse--- via ntg-context
Hans Hagen via ntg-context  wrote:

> On 11/14/2021 12:26 AM, skyhorse--- via ntg-context wrote:
> > Here is the minium example which I took from the
> > Wikigarden a few minutes ago.
> >
> > \def\T#1{%
> >\startitemize[#1,joinedup]
> >  \item This is a bullet of type #1.
> >\stopitemize
> > }
> > \starttext
> >\dorecurse{9}{\T\recurselevel}
> > \stoptext
> >
> > Compiling this into a pdf file with context produces an error.
> > I've pasted the complete context typesetting run to show the error, in 
> > hopes that it will shed some light on what's wrong with my setup.   I have 
> > a feeling that the stand along install is missing some vital part of the 
> > installation regarding fonts, and that it's not noticed by the majority of 
> > you since those items are still on your system from legacy versions.
>
> nornally it means that you have no math font loaded (i.e. you do
> something before \starttext
>
> Hans

Nothing is done before the sample shown above.That is all that is in the 
.lmtx source file.

From looking at the errors, I agree, it looks like there are no math fonts or, 
they are not visiable to context.

I need advice on how I can remedy that.
What do I need and what do I need to do to install them if I don't have them 
already on disk.
I assume that they are not distributed with the   shelll script.


Thanks
___
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] minimum working example plus (output)

2021-11-13 Thread skyhorse--- via ntg-context

Here is the minium not-working example which I took from the Wikigarden a few 
minutes ago.


\def\T#1{%
  \startitemize[#1,joinedup]
\item This is a bullet of type #1.
  \stopitemize
}

\starttext
  \dorecurse{9}{\T\recurselevel}
\stoptext



Compiling this into a pdf file with context produces an error.
I've pasted the complete context typesetting run to show the error, in hopes 
that it will shed some light on what's wrong with my setup.   I have a feeling 
that the stand along install is missing some vital part of the installation 
regarding fonts, and that it's not noticed by the majority of you since those 
items are still on your system from legacy versions.

Regards

-

* OS: ubuntu 20.04.3 LTS

* Context current version: 2021.11.13 20:36

  $ context bullet-style-example-iteration.lmtx


resolvers   | formats | executing runner 'run luametatex format': 
/opt/context-lmtx/tex/texmf-linux-64/bin/luametatex 
--jobname="./bullet-style-example-iteration.lmtx" 
--fmt=/opt/context-lmtx/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/opt/context-lmtx/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./bullet-style-example-iteration.lmtx" 
--c:input="./bullet-style-example-iteration.lmtx" --c:kindofrun=1 
--c:maxnofruns=9 --c:texmfbinpath="/opt/context-lmtx/tex/texmf-linux-64/bin"

system  > callbacks > not registering frozen 'local_box_filter'
system  >
system  > ConTeXt  ver: 2021.11.13 20:36 LMTX  fmt: 2021.11.13  int: 
english/english
system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/opt/context-lmtx/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/opt/context-lmtx/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './bullet-style-example-iteration', input 
'./bullet-style-example-iteration.lmtx', result 
'./bullet-style-example-iteration'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './bullet-style-example-iteration.lmtx'
fonts   > preloading latin modern fonts (second stage)
fonts   > defining > font with asked name 'lmroman12-regular' is not 
found using lookup 'file'
fonts   > defining > unable to define 'lmroman12-regular' as 
'modern-designsize-12pt-rm-tf-0--0'
fonts   > defining > forced type 'otf' of 'latinmodern-math-regular' 
not found
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mr--3'
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mr--2'
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mr--1'
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mb--3'
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mb--2'
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mb--1'
fonts   > 'fallback modern-designsize rm 12pt' is loaded
tex error   > tex error on line 9 in file 
./bullet-style-example-iteration.lmtx: \textfont0 is undefined in (text) char, 
font id 0, character 63)

 \textormathchar
...ar \scratchcounter \else \ifconditional \prefermathovertextchar 
\setfontid \fontid \textfont \c_font_fam_mr \fi \iffontchar \font 
\scratchcounter \char \scratchcounter \else \normalstartimath \char 
\scratchcounter \normalstopimath
\fi \fi \endg ...
 \symb_place_indeed
#1->\settrue \c_symb_found \begingroup \the \everysymbol \csname \??symbol 
#1\endcsname
\relax \endgroup
 \symb_place_retry
#1->\ifcsname \??symbol :#1\endcsname \symb_place_indeed {:#1}
\else #1\fi
 \currentsymbol
\setfalse \c_symb_found \the \t_symb_setups \ifconditional \c_symb_found 
\else \symb_place_retry \currentsymbol
\fi
 \symb_place_argument
#1->\dontleavehmode \edef \currentsymbol {#1}\ifcsname \??symbol 
\currentsymbolset :#1\endcsname \symb_place_indeed {\currentsymbolset :#1}\else 
\symb_place_normal
\fi
 \symb_place_indeed
#1->\settrue \c_symb_found \begingroup \the \everysymbol \csname \??symbol 
#1\endcsname
\relax \endgroup
 ...


  \dorecurse{9}{\T\recurselevel}

 1
 2 \def\T#1{%
 3   \startitemize[#1,joinedup]
 4 \item This is a bullet of type #1.
 5   \stopitemize
 6 }
 7
 8 \starttext
 9 >>\dorecurse{9}{\T\recurselevel}
10 \stoptext


"Somewhere in the math formula just ended, you used the stated character from an
 undefined font 

Re: [NTG-context] Font Problem

2021-11-10 Thread skyhorse--- via ntg-context


I'm using the linux version which is about a week to two weeks old.
I've installed in in:
 /opt/context-lmtx

Which now contains the directories:
$ ls /opt/context-lmtx
  -->   bin  context-linux-64.zip  installation.pdf  install.sh  tex

Does this help in getting closer to solving the font problem for ubuntu that 
I'm using with the stand alone?


Wolfgang Schuster  wrote:

> skyhorse--- via ntg-context schrieb am 07.11.2021 um 22:06:
> > I am a beginner and not well versed on font processing needs yet.
> >
> > I tried the following simple example, but get an error.
> > I am using the standalone context: "txrun  | ConTeXt TDS Runner 
> > Tool 1.32"
>
> Which one, there is one available from the ConTeXt wiki [1] and
> another one from the Pragma website [2].
>
> [1] https://wiki.contextgarden.net/Installation
> [2] https://www.pragma-ade.nl/install.htm
>
> It helps also to tell us which system you're using (Windows, Linux etc.).
>
> Wolfgang
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] font problem

2021-11-07 Thread skyhorse--- via ntg-context

I am a beginner and not well versed on font processing needs yet.

I tried the following simple example, but get an error.
I am using the standalone context: "txrun  | ConTeXt TDS Runner Tool 
1.32"
Here is my example:


\starttext

\startformula
   c^2 = a^2 + b^2
\stopformula

\stoptext
%

The error I get back from context is:

"   Sorry, but I can't typeset math unless various parameters have been set. 
This is
normally done by loading special math fonts into the math family slots. 
Your font
set is lacking at least the parameter mentioned earlier.
mtx-context | fatal error: return code: 256
"

I don't know what special math fonts there are or what a math family slot is.
Can you help me out.   Or point me to a document that will clear this up for me.

Thank you.

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

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