Re: [NTG-context] Ignored spacings are ignored

2020-03-17 Thread Hans Hagen

Hi,

I forgot to add an example (the \Umathspacingmode will be in the next 
lmtx upload, but I'm not sure when that is).


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
-


todo-spacing.pdf
Description: Adobe PDF document
___
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] Issue with rendering arrows in lmtx

2020-03-17 Thread Taco Hoekwater


> On 17 Mar 2020, at 15:51, Jan-Erik Hägglöf  wrote:
> 
> Hi All!
> 
> When I invoke this command
> 
> \startMPcode 
> picture p ; p := lmt_svg [ filename ="pil.svg" ];
> draw p;
> \stopMPcode
> 
> I get weird results, the arrowhead points in wrong direction


That one is because lmt_svg does not properly consider the 

> orient=“auto"

in the marker definition. I played with setting it to actual angles,
and then the output is ok.

> and is very tiny compared to the size it was meant to have.

The path in the marker has its own transform, and that seems to be
ignored by lmt_svg. (I do not see how a scale of (-1.1,-1.1) would
make it that much bigger, but I know that manually altering the values 
does nothing, so I guess that must be it).

No solution, but I hope this helps Hans somewhat...

Best wishes,
Taco

___
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] Issue with rendering arrows in lmtx

2020-03-17 Thread mf

Il 17/03/20 15:51, Jan-Erik Hägglöf ha scritto:

Hi All!

When I invoke this command

\startMPcode
picture p ; p := lmt_svg [ filename ="pil.svg" ];
draw p;
\stopMPcode

I get weird results, the arrowhead points in wrong direction and is very 
tiny compared to the size it was meant to have.




Keep in mind this:

- SVG rendering in metapost started as an experiment and it is still 
under development, even if you can already do some very interesting 
things with it


- inkscape SVG is different from standard SVG, so the first thing you 
can try is saving as plain SVG


- markers are borderline elements, even Inkscape did not support them 
well for a long time; i.e. i noticed a strange behavior in rectangles 
with slightly rounded corners


- in general, try using the simplest elements: i.e. transform 
rectangles, ellipses, markers?, etc. into paths


- you could experience problems also with text, especially with less 
common or uninstalled fonts


Best wishes,
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
___


[NTG-context] Issue with rendering arrows in lmtx

2020-03-17 Thread Jan-Erik Hägglöf
Hi All!

When I invoke this command

\startMPcode 
picture p ; p := lmt_svg [ filename ="pil.svg" ];
draw p;
\stopMPcode

I get weird results, the arrowhead points in wrong direction and is very tiny 
compared to the size it was meant to have.

Here is the .svg code from the saved file (pil.svg) made in Inkscape 0.92 for 
Mac OS




http://purl.org/dc/elements/1.1/;
   xmlns:cc="http://creativecommons.org/ns#;
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#;
   xmlns:svg="http://www.w3.org/2000/svg;
   xmlns="http://www.w3.org/2000/svg;
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd;
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape;
   inkscape:version="1.0beta2 (2b71d25, 2019-12-03)"
   id="svg8"
   version="1.1"
   viewBox="0 0 462.85062 100.67344"
   height="100.67344mm"
   width="462.85062mm"
   sodipodi:docname="pil.svg">
  

  


  


  

  
  
  

  
image/svg+xml
http://purl.org/dc/dcmitype/StillImage; />

  

  
  

  



Is there som incompatibility issues with reading those files? 

I’ve tested to open the file in SVGMaker and it renders correct there.

Regards

Janne___
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] Ignored spacings are ignored

2020-03-17 Thread Hans Hagen

On 3/17/2020 10:08 AM, Henri Menke wrote:

Dear list,

Sorry for the stupid title, I couldn't resist. :-)

LuaTeX has the option to adjust spacing between different classes of
math atoms.  However, looking in the TeXbook, page 170, in the table for
spacings between adjacent atoms, we find that some of those spacing are
undefined (* in the table) and therefore, when TeX encounters this
combination, spacing is just skipped.

This also translates to the parameters in LuaTeX.  For example the
combination Open-Bin is skipped by TeX and therefore setting the
corresponding parameter just does nothing.

\Umathordrelspacing\textstyle=50mu
\Umathopenbinspacing\textstyle=50mu
$a = (-2)$
\bye

So my question is, what is the point of the parameters that describe
these skipped combinations?  Shouldn't they just be deleted?
Alternatively, they could actually be implemented to do something.


When that system was set up we decided to keep these 'unused slots' 
becauseit makes the code nicer and also prevents errors in case one 
decided to implement some matrix like approach to settings. Making the 
engine bark on them would be comparable silly as having the empty slots 
that we now have in some unicode math alphabets (which forces all 
programs that do something with them to deal with the exceptions).


Anyway, these parameters have their limitations anyway. Say that we have 
this:


\def\whatevera
  {\Umathordrelspacing \textstyle=50mu
   \Umathopenbinspacing\textstyle=50mu}

\def\whateverb
  {\Umathordrelspacing \textstyle=25mu
   \Umathopenbinspacing\textstyle=25mu}

$\whatevera a = (-2)$

$\whateverb a = (-2)$

$ {\whatevera a = (-2)}\quad
  {\whateverb a = (-2)}\quad
  {\whatevera a = (-2)}
$

I presume that you can predict what you get given your question.
Now, to come to your question / remark, it is trivial to introduce a 
parameters, say \mathspacingmode, that obeys these spacing options 
(apart from possible weird side effects) but they are global.


However, in luametatex we can do this:

\def\whatevera
  {\frozen\Umathordrelspacing \textstyle=50mu
   \frozen\Umathopenbinspacing\textstyle=50mu}

\def\whateverb
  {\frozen\Umathordrelspacing \textstyle=25mu
   \frozen\Umathopenbinspacing\textstyle=25mu}

$\whatevera a = (-2)$

$\whateverb a = (-2)$

$ {\whatevera a = (-2)}\quad
  {\whateverb a = (-2)}\quad
  {\whatevera a = (-2)}
$

Read: we can save the state of parameters. So, as a quick and dirty 
experiment I added a feature that controls the spacing, think of:


$ {\whatevera a = ( -2)}\quad
  {\whateverb\frozen\Umathspacingmode\textstyle1 a = (-2)}\quad
  {\whatevera\frozen\Umathspacingmode\textstyle1 a = (-2)}
$

But ... the mentioned \frozen parameter feature is experimental and 
awaiting decisions / comments / suggestions of usefullness by Aditya, 
who has no time, so no hurry with that. After all, given the always 
acclaimed perfect math in tex (okay, according to some persistent 
naratives, context can't do math) all such extensions are debatable anyway.


One tricky part of these spacing issues is that these get applied 
selectively based on what goes left or right as well as circumstances. 
There's always the danger of 'fixing' this and a while later 'getting 
complains about some edge case that fails'. Which (I think) is why tex 
plays safe and assumes an occasional injected user space.


There are a few more edge cases with spacing but for now I leave these 
to your imagination.


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] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hello,
I would like to make files with statements of exercises and correction
where it would be enough to click on "correction" to access the correction
at the end of the file. I'm running out of time, does anyone have a model
to share ?
Thank you so much.
Fabrice
___
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] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hi Pablo,
Thank you very much, it's a great base to start with.
Fabrice

Le mar. 17 mars 2020 à 22:09, Pablo Rodriguez  a écrit :

> On 3/17/20 9:14 PM, Fabrice Couvreur wrote:
> > Hello,
> > I would like to make files with statements of exercises and correction
> > where it would be enough to click on "correction" to access the
> > correction at the end of the file. I'm running out of time, does anyone
> > have a model to share ?
>
> Hi Fabrice,
>
> I don’t have a model, but the following sample could give you a hint:
>
>   \setupinteraction[state=start, focus=standard]
>   \starttext
>   \startbodymatter
>   \chapter[lesson-1]{Lesson 1}
>   \section[exercises-1]{Exercises 1}
>   These are the exercises.
>
>   Here you have their key (\about[key-1]).
>   \stopbodymatter
>   \startappendices
>   \section[key-1]{Key to Lesson 1}
>   This is the key
>
>   Back to exercises (\about[exercises-1])
>   \stopappendices
>   \stoptext
>
> I hope 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
>
> ___
>
___
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] Issue with rendering arrows in lmtx

2020-03-17 Thread Jan-Erik Hägglöf
Ok, thanks for your advice. It seems that it is better to do framework in 
MetaFun and use svg picture as a component instead of opposite.

Best wishes to you all

Janne

> 17 mars 2020 kl. 16:58 skrev Taco Hoekwater :
> 
> 
> 
>> On 17 Mar 2020, at 15:51, Jan-Erik Hägglöf  
>> wrote:
>> 
>> Hi All!
>> 
>> When I invoke this command
>> 
>> \startMPcode 
>> picture p ; p := lmt_svg [ filename ="pil.svg" ];
>> draw p;
>> \stopMPcode
>> 
>> I get weird results, the arrowhead points in wrong direction
> 
> 
> That one is because lmt_svg does not properly consider the 
> 
>> orient=“auto"
> 
> in the marker definition. I played with setting it to actual angles,
> and then the output is ok.
> 
>> and is very tiny compared to the size it was meant to have.
> 
> The path in the marker has its own transform, and that seems to be
> ignored by lmt_svg. (I do not see how a scale of (-1.1,-1.1) would
> make it that much bigger, but I know that manually altering the values 
> does nothing, so I guess that must be it).
> 
> No solution, but I hope this helps Hans somewhat...
> 
> Best wishes,
> Taco
> 
> ___
> 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] Exercise file with statements and correction

2020-03-17 Thread Pablo Rodriguez
On 3/17/20 9:14 PM, Fabrice Couvreur wrote:
> Hello,
> I would like to make files with statements of exercises and correction
> where it would be enough to click on "correction" to access the
> correction at the end of the file. I'm running out of time, does anyone
> have a model to share ?

Hi Fabrice,

I don’t have a model, but the following sample could give you a hint:

  \setupinteraction[state=start, focus=standard]
  \starttext
  \startbodymatter
  \chapter[lesson-1]{Lesson 1}
  \section[exercises-1]{Exercises 1}
  These are the exercises.

  Here you have their key (\about[key-1]).
  \stopbodymatter
  \startappendices
  \section[key-1]{Key to Lesson 1}
  This is the key

  Back to exercises (\about[exercises-1])
  \stopappendices
  \stoptext

I hope 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
___


Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Otared Kavian
Hi Fabrice,Here is a model written with the help of Wolfgang Schuster.Let me know if you need more help.

interactive-question-hint-answer-2.tex
Description: TeX document


interactive-question-hint-answer-2.pdf
Description: Adobe PDF document
On 17 Mar 2020, at 21:14, Fabrice Couvreur  wrote:Hello,I would like to make files with statements of exercises and correction where it would be enough to click on "correction" to access the correction at the end of the file. I'm running out of time, does anyone have a model to share ?Thank you so much.Fabrice
___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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : 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] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hi Kavian,
Thank you so much. I don't even have time to offer examples !
Fabrice

Le mar. 17 mars 2020 à 22:56, Fabrice Couvreur 
a écrit :

> Hi Wolfgang,
> Is it possible to adapt your code with the environment that you proposed
> to me ?
> Thank you.
> Fabrice
>
> https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html
>
>  \defineframed
> [EXFRAME]
> [frame=off,
>  offset=0pt,
>  location=low,
>  width=\struttotal,
>  background=color,
>  backgroundcolor=black,
>  foregroundcolor=white,
>  forgroundstyle=bold]
>
>   \defineprocessor[ACPROCESSOR][command=\EXFRAME]
>   \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
>   \defineenumeration
>[ex]
>[text=,
> width=fit,
>numberconversionset=ACCONVERSION,
>alternative=serried,
>number=yes]
>
> Le mar. 17 mars 2020 à 22:14, Fabrice Couvreur <
> fabrice1.couvr...@gmail.com> a écrit :
>
>> Hi Pablo,
>> Thank you very much, it's a great base to start with.
>> Fabrice
>>
>> Le mar. 17 mars 2020 à 22:09, Pablo Rodriguez  a écrit :
>>
>>> On 3/17/20 9:14 PM, Fabrice Couvreur wrote:
>>> > Hello,
>>> > I would like to make files with statements of exercises and correction
>>> > where it would be enough to click on "correction" to access the
>>> > correction at the end of the file. I'm running out of time, does anyone
>>> > have a model to share ?
>>>
>>> Hi Fabrice,
>>>
>>> I don’t have a model, but the following sample could give you a hint:
>>>
>>>   \setupinteraction[state=start, focus=standard]
>>>   \starttext
>>>   \startbodymatter
>>>   \chapter[lesson-1]{Lesson 1}
>>>   \section[exercises-1]{Exercises 1}
>>>   These are the exercises.
>>>
>>>   Here you have their key (\about[key-1]).
>>>   \stopbodymatter
>>>   \startappendices
>>>   \section[key-1]{Key to Lesson 1}
>>>   This is the key
>>>
>>>   Back to exercises (\about[exercises-1])
>>>   \stopappendices
>>>   \stoptext
>>>
>>> I hope 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
>>>
>>> ___
>>>
>>
___
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] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hi Wolfgang,
Is it possible to adapt your code with the environment that you proposed to
me ?
Thank you.
Fabrice

https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html

 \defineframed
[EXFRAME]
[frame=off,
 offset=0pt,
 location=low,
 width=\struttotal,
 background=color,
 backgroundcolor=black,
 foregroundcolor=white,
 forgroundstyle=bold]

  \defineprocessor[ACPROCESSOR][command=\EXFRAME]
  \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]

  \defineenumeration
   [ex]
   [text=,
width=fit,
   numberconversionset=ACCONVERSION,
   alternative=serried,
   number=yes]

Le mar. 17 mars 2020 à 22:14, Fabrice Couvreur 
a écrit :

> Hi Pablo,
> Thank you very much, it's a great base to start with.
> Fabrice
>
> Le mar. 17 mars 2020 à 22:09, Pablo Rodriguez  a écrit :
>
>> On 3/17/20 9:14 PM, Fabrice Couvreur wrote:
>> > Hello,
>> > I would like to make files with statements of exercises and correction
>> > where it would be enough to click on "correction" to access the
>> > correction at the end of the file. I'm running out of time, does anyone
>> > have a model to share ?
>>
>> Hi Fabrice,
>>
>> I don’t have a model, but the following sample could give you a hint:
>>
>>   \setupinteraction[state=start, focus=standard]
>>   \starttext
>>   \startbodymatter
>>   \chapter[lesson-1]{Lesson 1}
>>   \section[exercises-1]{Exercises 1}
>>   These are the exercises.
>>
>>   Here you have their key (\about[key-1]).
>>   \stopbodymatter
>>   \startappendices
>>   \section[key-1]{Key to Lesson 1}
>>   This is the key
>>
>>   Back to exercises (\about[exercises-1])
>>   \stopappendices
>>   \stoptext
>>
>> I hope 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
>>
>> ___
>>
>
___
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] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hi Otared,

https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html

Thanks
Fabrice

Le mar. 17 mars 2020 à 22:56, Fabrice Couvreur 
a écrit :

> Hi Wolfgang,
> Is it possible to adapt your code with the environment that you proposed
> to me ?
> Thank you.
> Fabrice
>
> https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html
>
>  \defineframed
> [EXFRAME]
> [frame=off,
>  offset=0pt,
>  location=low,
>  width=\struttotal,
>  background=color,
>  backgroundcolor=black,
>  foregroundcolor=white,
>  forgroundstyle=bold]
>
>   \defineprocessor[ACPROCESSOR][command=\EXFRAME]
>   \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
>   \defineenumeration
>[ex]
>[text=,
> width=fit,
>numberconversionset=ACCONVERSION,
>alternative=serried,
>number=yes]
>
> Le mar. 17 mars 2020 à 22:14, Fabrice Couvreur <
> fabrice1.couvr...@gmail.com> a écrit :
>
>> Hi Pablo,
>> Thank you very much, it's a great base to start with.
>> Fabrice
>>
>> Le mar. 17 mars 2020 à 22:09, Pablo Rodriguez  a écrit :
>>
>>> On 3/17/20 9:14 PM, Fabrice Couvreur wrote:
>>> > Hello,
>>> > I would like to make files with statements of exercises and correction
>>> > where it would be enough to click on "correction" to access the
>>> > correction at the end of the file. I'm running out of time, does anyone
>>> > have a model to share ?
>>>
>>> Hi Fabrice,
>>>
>>> I don’t have a model, but the following sample could give you a hint:
>>>
>>>   \setupinteraction[state=start, focus=standard]
>>>   \starttext
>>>   \startbodymatter
>>>   \chapter[lesson-1]{Lesson 1}
>>>   \section[exercises-1]{Exercises 1}
>>>   These are the exercises.
>>>
>>>   Here you have their key (\about[key-1]).
>>>   \stopbodymatter
>>>   \startappendices
>>>   \section[key-1]{Key to Lesson 1}
>>>   This is the key
>>>
>>>   Back to exercises (\about[exercises-1])
>>>   \stopappendices
>>>   \stoptext
>>>
>>> I hope 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
>>>
>>> ___
>>>
>>
___
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] Ignored spacings are ignored

2020-03-17 Thread Henri Menke
Dear list,

Sorry for the stupid title, I couldn't resist. :-)

LuaTeX has the option to adjust spacing between different classes of
math atoms.  However, looking in the TeXbook, page 170, in the table for
spacings between adjacent atoms, we find that some of those spacing are
undefined (* in the table) and therefore, when TeX encounters this
combination, spacing is just skipped.

This also translates to the parameters in LuaTeX.  For example the
combination Open-Bin is skipped by TeX and therefore setting the
corresponding parameter just does nothing.

\Umathordrelspacing\textstyle=50mu
\Umathopenbinspacing\textstyle=50mu
$a = (-2)$
\bye

So my question is, what is the point of the parameters that describe
these skipped combinations?  Shouldn't they just be deleted?
Alternatively, they could actually be implemented to do something.

More context: https://tex.stackexchange.com/questions/532758

Kind regards,
Henri
___
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] Quizz

2020-03-17 Thread Hans Hagen

On 3/16/2020 7:46 PM, Otared Kavian wrote:



On 16 Mar 2020, at 11:14, Hans Hagen  wrote:

On 3/15/2020 10:34 AM, Fabrice Couvreur wrote:

[…]


there are some examples of form stuff in the test suite (widgets)

i'll send you a file from 2000 that does some mpc magic (including feedback and 
score calculations) but it's mkii (so you need to run pdftex). Maybe I should 
check it with mkiv too.


Could you please tell us where to find that file, even if it is only with mkii? 
(I need to prepare some material for my students, for the same reason as 
Fabrice…).
Where? On my machine, in various places. The problem with such things 
has always been that publishers are not really interested in it (or not 
ready, or whatever) so experiments end up as orphan files. Take for 
instance


http://www.pragma-ade.com/itdemos/external/ex-files/ex-files.pdf

We have all the examns from the mid 90's that way. That version doesn't 
have the selection part (choose examns and questions and generate 
remotely a set of examn files). Lack of interest in these matters made 
is drop all kind of support files for that.


Other experiments involve testing based on pdf documents, and/or student 
progress reports using pdf files (basically forms but not that 
recognizable as such) where after a click the student got an updated 
document that (s)he could store and expand later on. Again, we have 
basically all the building blocks in context (the sql database as well 
as the service itself were controlled by luatex).


Currently we're playing with yet another technology where a complete 
(already around for a while, free) math school method is available as 
pdf ad well as web but again, not something for publishers so hard to 
even break even (most of this, also tex related, stuff is kind of a 
bottomless drain of time and therefore money, so doing it is mostly 
hobyism).


Anyway, I'll mail a few files (no upload yes, maybe later).

I have no problem coming up with additional styles of code for remote 
learning and student support but it has to have some 'direction' and not 
be too random.


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] Quizz

2020-03-17 Thread luigi scarso
On Tue, Mar 17, 2020 at 9:40 AM Hans Hagen  wrote:

>
> I have no problem coming up with additional styles of code for remote
> learning and student support but it has to have some 'direction' and not
> be too random.
>
>
one constrain could be "it works under google chrome > Version
79.0.3945.130"
At least some it's some  grade of cross platforms, as  chrome seems to be
quite ubiquitous .
Kind of least common denominator.

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