Re: [NTG-context] new units

2023-05-06 Thread Alan Braslau via ntg-context
On Sat, 06 May 2023 16:10:31 -0800
skyhorse--- via ntg-context  wrote:

> 
> 
> 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.

The inch is properly defined as *exactly* 2.54cm.
So the foot is a proper unit defined as 12*2.54cm.

Manipulating fractions, I stated, is the entire point of Imperial
measurements.

Now go figure: Physical Review Letters once objected to my publishing a
graph without units on the abscissa. I satisfied the editor by adding
$[m\times m^{-1}]$ (my graph was in radians).

Alan
___
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] new units

2023-05-06 Thread Michael Urban via ntg-context
If you are going to introduce new units, you should at least include the 
Potrzebie, invented by teenager Donald Knuth and published in the humor 
magazine Mad Magazine #33.  The system is based on the thickness of Mad 
Magazine #26, equal to 2.2633484517438173216473 mm.
See the Wikipedia entry for 'potrzebie' for more information, or search for 
suitable images.

Honestly, I don't know how Knuth resisted putting this in plain TeX.
___
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] 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] new units

2023-05-06 Thread Hans Hagen via ntg-context

On 5/6/2023 11:53 PM, Arthur Rosendahl via ntg-context wrote:

On Thu, May 04, 2023 at 10:01:25AM +0200, Hans Hagen via ntg-context wrote:

These units can be used in the current upload. In a next upload the "19 feet
max" message that tex issues when reaching a maximum will be adapted to a
more realistic variant. (Actually, because tex has no foot unit, we could as
well replace that with a more impressive little feet unit but we forgot to
measure the smallest foot present which i guess was about 3 es so the limit
is then some 75 bare theodores.)


   I measured the theodore at 13cm, so that puts the limit at about 45
theodores, actually.
Oh, so a bug, I'll fix the message. Not really a unit but then, feet is 
also not one.


\newdimension\theodore \theodore=5es

You can also abuse the eu unit:

\eufactor50 % times ts

x\hskip1eu x


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 / 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] new units

2023-05-06 Thread Arthur Rosendahl via ntg-context
On Thu, May 04, 2023 at 10:01:25AM +0200, Hans Hagen via ntg-context wrote:
> These units can be used in the current upload. In a next upload the "19 feet
> max" message that tex issues when reaching a maximum will be adapted to a
> more realistic variant. (Actually, because tex has no foot unit, we could as
> well replace that with a more impressive little feet unit but we forgot to
> measure the smallest foot present which i guess was about 3 es so the limit
> is then some 75 bare theodores.)

  I measured the theodore at 13cm, so that puts the limit at about 45
theodores, actually.

Best,

Arthur
___
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] upload

2023-05-06 Thread Hans Hagen via ntg-context

On 5/6/2023 3:33 PM, Henning Hraban Ramm via ntg-context wrote:

Am 06.05.23 um 09:46 schrieb Hans Hagen via ntg-context:

On 5/5/2023 11:21 PM, Aditya Mahajan via ntg-context wrote:

Would it make sense to add a similar script to install context 
modules from modules.contextgarden.net?
I can look into that but then I need to slightly adapt it with a 
command line argument (no big deal, i just need rain outside and/or 
new cd's).


Not sure yet how to name the script.


Why not install-module(s), or just install?

mtxrun --script install --modules=filter,simpleslides

mtxrun --script install-modules --list=filter,simpleslides

i actually decided on the second one but not finished yet

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 / 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] new units

2023-05-06 Thread Hans Hagen via ntg-context

On 5/6/2023 6:45 PM, Alan Braslau wrote:

The whole point of the so-called "imperial" units is to be based on
fractions, not decimal. May I suggest that we use \sqrt2 as the basis
of our fractions, so as to push the limits of calculation and precision
(that are handled well in the new lmtx engine).

Also, on this day of coronation, post-Brexit, I believe that the ConTeXt
community should get behind the promotion of obscure Imperial units,
relegating the metric system to scientists who have no choice but to
adhere to the Système International.

Alan (who could not participate in the discussions of the committee of
four)


Well, the Polish oversight seemed to a agree and the team was awarded by 
arthur who donated cute "Let's make TeX little again" hats, but more 
about that later. The unit was applied by the main presenter when the 
big cake got cut into pieces measuring 4es ^ 2 which i admit is a bit 
less than 4in ^2.


But, if you're really into old units we can measure your feet and 
replace "max 19 feet" message by "max 20 braslaus".


Actually you can do a sqrt:

\starttext
\the\floatexpr\pfsqrt 2\relax

\the\pfsqrt 2\relax

\scratchdimen\floatexpr\pfsqrt 2\relax
\the\scratchdimen

\scratchdimen\pfsqrt 2\relax
\the\scratchdimen
\stoptext

but you already knew that.

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 / 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] new units

2023-05-06 Thread Alan Braslau via ntg-context
The whole point of the so-called "imperial" units is to be based on
fractions, not decimal. May I suggest that we use \sqrt2 as the basis
of our fractions, so as to push the limits of calculation and precision
(that are handled well in the new lmtx engine).

Also, on this day of coronation, post-Brexit, I believe that the ConTeXt
community should get behind the promotion of obscure Imperial units,
relegating the metric system to scientists who have no choice but to
adhere to the Système International.

Alan (who could not participate in the discussions of the committee of
four)


On Thu, 4 May 2023 10:01:25 +0200
Hans Hagen via ntg-context  wrote:

> Hi,
> 
> We now officially have three new units. These were officially
> introducd at the 2023 BachoTeX meeting in a presentation where the
> chair of the four person strong team also did the final live
> callibration (using the edithorial callibration instrument made for
> that purpose). An upcoming article in TB will explain the details of
> the process and also a careful mathematical annalysis of how we
> reached the right value with a high precission. The actual
> implementation is the most boring part.
> 
> \starttext
> 
> \startTEXpage[offset=1ts]
>  Hello World!
> 
>  \the\dimexpr 1ts
> 
>  \the\dimexpr 1es
> 
>  \the\dimexpr 1eu
> 
>  \eufactor20
> 
>  \the\dimexpr 1eu
> \stopTEXpage
> 
> \stoptext
> 
> The es (Edith) unit replaces the inch, and the ts (Tove) is one
> tenths of than (just like we have cm and mm). The eu (European Unit)
> is an adaptive one that defaults to 10 ts == 1es and can be
> multiplied by setting the \eufactor (default 10) which makes it
> possible to define layouts that easilly scale to different output
> media (important for the mobile phone / table generation).
> 
> This means that MWE that use inches will likely no longer be
> considered valid and probably will be dealt with slower (or just
> ignored).
> 
> These units can be used in the current upload. In a next upload the
> "19 feet max" message that tex issues when reaching a maximum will be 
> adapted to a more realistic variant. (Actually, because tex has no
> foot unit, we could as well replace that with a more impressive
> little feet unit but we forgot to measure the smallest foot present
> which i guess was about 3 es so the limit is then some 75 bare
> theodores.)
> 
> Hans

___
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] How to show bibliography only for the chapter?

2023-05-06 Thread Alan Braslau via ntg-context
On Sat, 6 May 2023 12:09:10 + (UTC)
Joel via ntg-context  wrote:

> I am trying to place a bibliography at the end of the chapter, not
> the end of the whole document. I tried various code such as
> `criteria=bychapter` etc., but it will only show the entire
> bibliography for the whole document. How can I limit the list to the
> material falling within that chapter?
> 
>     \starttext
>     \startchapter[title={Robots}]
>     \input knuth    \cite[source1]
>     \placelistofpublications[criteria=bychapter]
>     \placelistofpublications[way=bychapter]
> \placelistofpublications[criteria=chapter] \stopchapter
>     \stoptext
> 
> --Joel

\placelistofpublications [criterium=chapter]

Alan
___
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] upload

2023-05-06 Thread Henning Hraban Ramm via ntg-context

Am 06.05.23 um 09:46 schrieb Hans Hagen via ntg-context:

On 5/5/2023 11:21 PM, Aditya Mahajan via ntg-context wrote:

Would it make sense to add a similar script to install context modules 
from modules.contextgarden.net?
I can look into that but then I need to slightly adapt it with a command 
line argument (no big deal, i just need rain outside and/or new cd's).


Not sure yet how to name the script.


Why not install-module(s), or just install?

mtxrun --script install --modules=filter,simpleslides

mtxrun --script install-modules --list=filter,simpleslides

?

Hraban
___
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 show bibliography only for the chapter?

2023-05-06 Thread Joel via ntg-context
I am trying to place a bibliography at the end of the chapter, not the end of 
the whole document. I tried various code such as `criteria=bychapter` etc., but 
it will only show the entire bibliography for the whole document. How can I 
limit the list to the material falling within that chapter?

    \starttext
    \startchapter[title={Robots}]
    \input knuth    \cite[source1]
    \placelistofpublications[criteria=bychapter]
    \placelistofpublications[way=bychapter]    
\placelistofpublications[criteria=chapter]
    \stopchapter
    \stoptext

--Joel
___
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] upload

2023-05-06 Thread Hans Hagen via ntg-context

On 5/5/2023 11:21 PM, Aditya Mahajan via ntg-context wrote:


Would it make sense to add a similar script to install context modules from 
modules.contextgarden.net?
I can look into that but then I need to slightly adapt it with a command 
line argument (no big deal, i just need rain outside and/or new cd's).


Not sure yet how to name the script.

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