[NTG-context] \version[temporary] fatal error

2023-07-23 Thread Jacob Kauffmann via ntg-context
Hi all,

\version[temporary] produces an error for me (see below).
Is this a permanent change, or is this version really just temporary? ;)

All the best,
Jacob

Missing number, treated as zero



r

 \currentnote
\vskip 6\points \hbox to \makeupwidth {\infofont \getmessage \m!system 
{27}:\space \currentdate \quad \donefalse \ifcstok \currentproject
\currentproduct \ifcstok \currentproduct \currentcomponent \donetrue \fi 
\fi \ifdone \donefalse \else \ifempty \
 \page_info_add_to_box
#1->\scratchdimen \wd #1\setbox \b_page_versions \vpack to \ht #1{\vfill 
\settexthoffset \hsize \dimexpr \scratchdimen -2\texthoffset \relax \hkern 
\texthoffset \vbox to \zeropoint {\vss \page_info_place_info
}\vkern \bodyfontsize }\dp \b_page_versio
 \page_boxes_constructed_page_body
... \bgroup \boxmaxdepth \maxdimen \dontcomplain 
\page_marks_synchronize_page {#2}\page_boxes_construct_content \pagebox 
{#1}{#2}\page_backgrounds_add_to_main \pagebox \page_boxes_apply_offsets 
\pagebox \page_info_add_to_box \pagebox
\ifcase \page ...
 \page_boxes_constructed_page
...everybeforepagebody \starttextproperties \checkmarginblocks \expand 
\beforeeverypage \normalexpanded {\global \beforepage \emptytoks \expand 
\beforepage }\inpagebodytrue \pagebodymode \plusone 
\page_boxes_constructed_page_body #1#2
\normalexpand ...
 ...


\stoptext

1 >>  \version[temporary]
2
3 \starttext
4 \input{tufte}
5 \stoptext
6
A number should have been here; I inserted '0'. (If you can't figure out why I
needed to see a number, look up 'weird error' in the index to The TeXbook.)
mtx-context | fatal error: return code: 1


signature.asc
Description: Message signed with OpenPGP
___
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] Re: Fira Math: goodies needed?

2023-07-23 Thread Leah Neukirchen
Mikael Sundqvist  writes:

> Hi Leah,
>
> On Sat, Jul 22, 2023 at 12:19 AM Leah Neukirchen  wrote:
>>
>> Hi,
>>
>> I'm trying to use Fira Math (https://github.com/firamath/firamath).
>>
>> But this small example yields both limits on the same horizontal axis,
>> i.e. the 0 is far away from the integral sign:
>>
>>
>> \definefontfamily [mainface] [mm] [Fira Math]
>> \setupbodyfont[mainface]
>>
>> \starttext
>> \startformula
>>   \int_0^1 e^x
>> \stopformula
>> \stoptext
>>
>>
>> Meanwhile, when I use LaTeX, the 0 is moved to the left and close to
>> the integral sign:
>>
>>
>> \documentclass{article}
>> \usepackage{amsmath}
>> \usepackage[mathrm=sym]{unicode-math}
>> \setmathfont{Fira Math}
>>
>> \begin{document}
>> \[
>>   \int_0^1 e^x
>> \]
>> \end{document}
>>
>>
>> In both cases
>> /opt/texlive/2023/texmf-dist/fonts/opentype/public/firamath/FiraMath-Regular.otf
>> is used...
>>
>
> As far as I remember, we did not consider firamath usable last time we
> tested. Is it OK?

It's not exactly great, but I like the font itself for slides; I guess
it works for simple math.

> Attached you find a very basic goodie file that 1) set the
> primeshiftup parameter and 2) enables presets.moveintegrals. Also add
>
> \definefontfeature[default][default][goodies=fira-math.lfg]
>
> to use it.

Thanks, that works!

-- 
Leah Neukirchenhttps://leahneukirchen.org/
___
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
___