Re: [NTG-context] specify column-width, with option=stretch

2020-11-05 Thread Peter Münster
On Wed, Nov 04 2020, Peter Münster wrote:

> I would like to specify the column-width of the first column to 5mm:
>
> \starttext
> [...]
> \stoptext

Sorry, that wasn't really a minimal example.

Here a better file, to show what I'm looking for:

\setupTABLE[textwidth=10cm, option=stretch]
\setupTABLE[c][1][width=15mm]
\starttext
Width of first column should be 15mm, but it is not:\par
\bTABLE
\bTR \bTD ? \eTD \bTD bla \eTD \bTD blablablabla \eTD \eTR
\eTABLE\par
\stoptext

TIA for any help,
-- 
   Peter
___
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-05 Thread type
Thank you, Hans! The links you gave me provide me with another useful tool in 
my toolbox (which I had not been aware of before).

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.

Thanks,


Sciurus

-Original Message-
From: ntg-context  On Behalf Of Hans Åberg
Sent: Thursday, November 5, 2020 12:44 PM
To: mailing list for ConTeXt users 
Subject: Re: [NTG-context] math symbol for "is an element of"


> On 5 Nov 2020, at 21:22, t...@projectivespace.com wrote:
> 
> 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).
…
> 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.)

There is no recommended way. One can have it in the input sources. The quickest 
way to both design and use I have found is text substitutions [1]. For the 
mathematical styles, TeX and Unicode do it differently, and ConTeXt follows the 
former unless one uses a command, see [2].

1. https://mailman.ntg.nl/pipermail/ntg-context/2020/099278.html
2. https://mailman.ntg.nl/pipermail/ntg-context/2020/099880.html


___
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-05 Thread type
My sincere apologies. I tried to do my homework to avoid wasting everybody 
else's time with a silly question, but apparently I did not do so adequately. 
You're quite right -- it works with no problem. It was something else nearby 
that was causing my minimal example (apparently not minimal enough) to fail.

That being said, the link to "\in" on the Math Basics page does point to the 
wrong place (the "\in" command used for references). I'll go correct that as my 
penance for asking such a ridiculous question.

Thanks, and again my apologies,


Sciurus

-Original Message-
From: Wolfgang Schuster  
Sent: Thursday, November 5, 2020 12:36 PM
To: mailing list for ConTeXt users 
Cc: t...@projectivespace.com
Subject: Re: [NTG-context] math symbol for "is an element of"

t...@projectivespace.com schrieb am 05.11.2020 um 21:22:
> 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.)

Do you have a example where \in fails?

\starttext

\m {A \in B}

\startformula
A \in B
\stopformula

\stoptext

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
___


Re: [NTG-context] Why is the textarea not centered by default?

2020-11-05 Thread Hans Hagen

On 11/5/2020 9:58 PM, Henning Hraban Ramm wrote:



Am 05.11.2020 um 16:21 schrieb Pablo Rodriguez :

I’m not expert on typesetting, but I read somewhere (too long ago to be
able to remember when) that printed papers should have wider outer
margins to put your fingers on it.


In classical book layout, the two inner margins (2*backspace) should equal one 
outer margin.

But this makes *only* sense with thread-bound books that you can open 
completely.

In glued (perfect bound) books, the inner margin should be at least the same if 
not bigger than the outer margins to get a similar view.

Modern books, independent of binding techniques, usually don’t use a classical 
book layout, because that uses a lot of whitespace, i.e. more pages = higher 
printing and shipping costs.

It’s still true that margins should be big enough for your fingers – but 
depending on size and content of the book, different uses might suggest 
different space placement. E.g. I’d use a big inner margin for guides that you 
usually keep in one hand, thumb in the middle. For textbooks, a big bottom 
margin makes sense, because you can put it in a stand. A song book / hymnal 
you’d hold in both hands, so it needs big enough outer margins.
When we started with context (long ago) it was mostly used for single 
sided documents with a staple in the corner and room fo rmaking notes.


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] Why is the textarea not centered by default?

2020-11-05 Thread Henning Hraban Ramm

> Am 05.11.2020 um 16:21 schrieb Pablo Rodriguez :
> 
> I’m not expert on typesetting, but I read somewhere (too long ago to be
> able to remember when) that printed papers should have wider outer
> margins to put your fingers on it.

In classical book layout, the two inner margins (2*backspace) should equal one 
outer margin.

But this makes *only* sense with thread-bound books that you can open 
completely.

In glued (perfect bound) books, the inner margin should be at least the same if 
not bigger than the outer margins to get a similar view.

Modern books, independent of binding techniques, usually don’t use a classical 
book layout, because that uses a lot of whitespace, i.e. more pages = higher 
printing and shipping costs.

It’s still true that margins should be big enough for your fingers – but 
depending on size and content of the book, different uses might suggest 
different space placement. E.g. I’d use a big inner margin for guides that you 
usually keep in one hand, thumb in the middle. For textbooks, a big bottom 
margin makes sense, because you can put it in a stand. A song book / hymnal 
you’d hold in both hands, so it needs big enough outer margins.

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] math symbol for "is an element of"

2020-11-05 Thread Hans Åberg

> On 5 Nov 2020, at 21:22, t...@projectivespace.com wrote:
> 
> 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).
…
> 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.)

There is no recommended way. One can have it in the input sources. The quickest 
way to both design and use I have found is text substitutions [1]. For the 
mathematical styles, TeX and Unicode do it differently, and ConTeXt follows the 
former unless one uses a command, see [2].

1. https://mailman.ntg.nl/pipermail/ntg-context/2020/099278.html
2. https://mailman.ntg.nl/pipermail/ntg-context/2020/099880.html


___
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-05 Thread Wolfgang Schuster

t...@projectivespace.com schrieb am 05.11.2020 um 21:22:

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


Do you have a example where \in fails?

\starttext

\m {A \in B}

\startformula
A \in B
\stopformula

\stoptext

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
___


Re: [NTG-context] ConTeXt Standalone last version

2020-11-05 Thread Jano Kula
On Wed, 4 Nov 2020 at 08:58, Joaquín Ataz López  wrote:

> The last time I checked the date of the ConTeXt Standalone version I had
> installed was early last summer, and the version installed was April 30,
> 2020. But today I wanted to update the version and I see that the "new"
> version that has been installed is the version of January 30, 2020. That
> is: the version has been moved back.
>
> Does anyone know why it has regressed?
>

Mine latest is 2020.01.30 14:13 and I would guess it's a typo instead of
2020.10.30 (though time suggests it could be generated).
Likely nothing was regressed to January.

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] math symbol for "is an element of"

2020-11-05 Thread type
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
___


[NTG-context] MP background for text typeset by \typefile

2020-11-05 Thread context

Hello,

is there a way to draw custom background (via MP) to a text typed by 
\typefile, which is so long so it spreads over more pages?


- I'm asking because I know how to typeset some text via \typefile with:

1. this:

\definetyping[Test]
  [before={\startbackground[background=color,backgroundcolor=blue]
  },
   after={\stopbackground
 },
  ]

- which creates a rectangular backround to the text, and the text may 
spread over pages;


2. or this:

\defineoverlay[AnOverlayDefinition][]

\definetyping[Test]
  [before={\startframedtext[background=AnOverlayDefinition,
   ]%
  },
   after={\stopframedtext
 },
  ]

- which allows to define a custom background via overlay/MP, but which 
encloses the text to be typeset into a framed, and thus doesn't spread 
over pages.


My intention is to "decore" the text typed by \typefile with a "fuzzy" 
background, which uses overlay/MP.
But I am in the sitaution where I am able to figure out MP code just 
when the text is to be enclosed into \framed.


Is it possible to combine both cases? How?

Best regards,

Lukas
___
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] Why is the textarea not centered by default?

2020-11-05 Thread Sylvain Hubert
On Thu, 5 Nov 2020 at 16:25, Pablo Rodriguez  wrote:

> Hi Sylvain,
>
> you can avoid this with the following code (althought the "height"
> option is probably not needed):
>
>   \setuplayout[width=middle, height=middle]
>

Thanks Pablo. This happens to be what I've been looking for for a long time.

I’m not expert on typesetting, but I read somewhere (too long ago to be
> able to remember when) that printed papers should have wider outer
> margins to put your fingers on it.
>

Yes, this makes sense.


> See the following the output from:
>
>   \setuppagenumbering[alternative=doublesided]
>   \starttext \showframe \showsetups \stoptext
>
> Just in case it helps,
>

Sylvain
___
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] What is "cutspace" and "bottomspace"?

2020-11-05 Thread Pablo Rodriguez
On 11/5/20 4:11 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 05.11.2020 um 16:08:
>> [...]
>>
>> \setuplayout[width=fit, cutspace=0.01cm] does the trick.
>
> Use "width=middle".

Many thanks for your reply, Wolfgang.

I found something weird here.

Compare the four options:

  %~ \setuplayout[width=middle, backspace=0.001mm]
  %~ \setuplayout[width=fit, backspace=0.001mm]
  %~ \setuplayout[width=middle, cutspace=0.001mm]
  %~ \setuplayout[width=fit, cutspace=0.001mm]
  \starttext \showframe \showsetups \stoptext

Each of the options gives a different result.

I thought the same might happen with topspace and bottomSpace. I’m
afraid this is also different:

  %~ \setuplayout[height=middle, topspace=0.001mm]
  %~ \setuplayout[height=fit, topspace=0.001mm]
  %~ \setuplayout[height=middle, bottomspace=0.001mm]
  %~ \setuplayout[height=fit, bottomspace=0.001mm]
  \starttext \showframe \showsetups \stoptext

I wonder whether there might be a bug here.

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] Why is the textarea not centered by default?

2020-11-05 Thread Pablo Rodriguez
On 11/5/20 11:28 AM, Sylvain Hubert wrote:
> Dear List,
>
>     \starttext \showframe \showsetups \stoptext
>
> This minimal example without further configuration shows that the
> default value for backspace, textwidth and paperwidth are 2.5cm, 15cm,
> 21cm resp., which means that the textarea is horizontally 0.5cm off the
> center by default, and one can indeed see a clear extra margin on the
> right side.

Hi Sylvain,

you can avoid this with the following code (althought the "height"
option is probably not needed):

  \setuplayout[width=middle, height=middle]

> This seems weird but I'm no expert of typesetting, so does anyone know
> why it has been set like that?

I’m not expert on typesetting, but I read somewhere (too long ago to be
able to remember when) that printed papers should have wider outer
margins to put your fingers on it.

See the following the output from:

  \setuppagenumbering[alternative=doublesided]
  \starttext \showframe \showsetups \stoptext

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
___


Re: [NTG-context] What is "cutspace" and "bottomspace"?

2020-11-05 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 05.11.2020 um 16:08:

On 11/5/20 11:16 AM, Sylvain Hubert wrote:

Dear List,

according to https://wiki.contextgarden.net/Command/setuplayout ,
"cutspace" and "bottomspace" are the counterparts of "backspace" and
"topspace", and "If cutspace is set to 0, it is taken to be equal to the
backspace". But in fact, the following document stays the same no matter
what value is given to cutspace.

\setuplayout[cutspace=0.01cm]
\starttext x  \showframe \stoptext

Has anyone actually used these two parameters?


Hi Sylvain,

\setuplayout[width=fit, cutspace=0.01cm] does the trick.


Use "width=middle".

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
___


Re: [NTG-context] What is "cutspace" and "bottomspace"?

2020-11-05 Thread Pablo Rodriguez
On 11/5/20 11:16 AM, Sylvain Hubert wrote:
> Dear List,
>
> according to https://wiki.contextgarden.net/Command/setuplayout ,
> "cutspace" and "bottomspace" are the counterparts of "backspace" and
> "topspace", and "If cutspace is set to 0, it is taken to be equal to the
> backspace". But in fact, the following document stays the same no matter
> what value is given to cutspace.
>
> \setuplayout[cutspace=0.01cm]
> \starttext x  \showframe \stoptext
>
> Has anyone actually used these two parameters?

Hi Sylvain,

\setuplayout[width=fit, cutspace=0.01cm] does the trick.

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
___


Re: [NTG-context] Why is the textarea not centered by default?

2020-11-05 Thread Henri Menke
On Thu, 2020-11-05 at 11:28 +0100, Sylvain Hubert wrote:
> Dear List,
> 
> \starttext \showframe \showsetups \stoptext
> 
> This minimal example without further configuration shows that the default
> value for backspace, textwidth and paperwidth are 2.5cm, 15cm, 21cm resp.,
> which means that the textarea is horizontally 0.5cm off the center by default,
> and one can indeed see a clear extra margin on the right side.
> 
> This seems weird but I'm no expert of typesetting, so does anyone know why it
> has been set like that?

%D The default dimensions are quite old and will not change. The funny fractions
%D were introduced when we went from fixed dimensions to relative ones. Since
%D \CONTEXT\ is a dutch package, the dimensions are based on the metric system.
The
%D asymmetrical layout is kind of handy for short quick||and||dirty stapled
%D documents.

https://github.com/contextgarden/context-mirror/blob/343fdd99ef79884fca1f86b49c950e03939aeedf/tex/context/base/mkiv/page-lay.mkiv#L1373-L1377

> 
> Thanks.
> 
> Best,
> Sylvain
> __
> _
> 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] \blank[] doesn't work when nothing precedes it

2020-11-05 Thread Sylvain Hubert
On Thu, 5 Nov 2020 at 14:21, mf  wrote:

> \blank[.25\paperheight,force]
>
> A blank at the top of a page is ignored, because usually you use a blank
> as a separator, that is useless at the top of a page, because the page
> break is enough to separate two texts.
>
> Sometimes you need a blank on top anyway, i.e. at the start of a chapter.
> In that case use "force".
>

Thanks Massi, this is exactly what I was looking for.

Sylvain
___
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] \blank[] doesn't work when nothing precedes it

2020-11-05 Thread Sylvain Hubert
Hi Thomas,

Thanks for sharing the trick, it did help me!

Sylvain

On Thu, 5 Nov 2020 at 13:55, Tomas Hala  wrote:

> Hi Sylvain,
>
> on my computer (TL2020) I am not able to compile \blank with any command
> defining the dimension (2\paperheight, 0.25\paperheight, .25\paperheight).
> I do not know why...
>
> But if I use another dimension, eg. 5*big or 20cc, it works with
> \dontleavehmode:
>
> \starttext
> \dontleavehmode
> \blank[5*big]
> %\blank[20cc]
> foo
> \stoptext
>
> Maybe it will help you.
>
> The best,
>
> Tomáš
>
>
> Thu, Nov 05, 2020 ve 01:26:02PM +0100 Sylvain Hubert napsal(a):
> #Dear List,
> #I'm trying to put the document title at around .25\paperheight by
> #inserting a \blank:
> #\setuplayout[topspace=0cm, header=0cm, height=\paperheight]
> #\starttext \blank[.25\paperheight] foo \stoptext
> #But the "foo" still appears at the very top.
> #Does anyone know why it behaves like that, or whether there is a more
> #authentic way to put the first word at .25\paperwidth than inserting a
> #tiny invisible space before the \blank?
> #Thanks!
> #Best,
> #Sylvain
>
> #
> ___
> # 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
>
> ___
>
___
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] \blank[] doesn't work when nothing precedes it

2020-11-05 Thread mf

Il 05/11/20 13:26, Sylvain Hubert ha scritto:

Dear List,

I'm trying to put the document title at around .25\paperheight by 
inserting a \blank:


     \setuplayout[topspace=0cm, header=0cm, height=\paperheight]
     \starttext \blank[.25\paperheight] foo \stoptext



\blank[.25\paperheight,force]

A blank at the top of a page is ignored, because usually you use a blank 
as a separator, that is useless at the top of a page, because the page 
break is enough to separate two texts.


Sometimes you need a blank on top anyway, i.e. at the start of a chapter.
In that case use "force".

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] \blank[] doesn't work when nothing precedes it

2020-11-05 Thread Tomas Hala
Hi Sylvain,

on my computer (TL2020) I am not able to compile \blank with any command
defining the dimension (2\paperheight, 0.25\paperheight, .25\paperheight).
I do not know why...

But if I use another dimension, eg. 5*big or 20cc, it works with 
\dontleavehmode:

\starttext 
\dontleavehmode
\blank[5*big] 
%\blank[20cc]
foo 
\stoptext

Maybe it will help you.

The best,

Tomáš


Thu, Nov 05, 2020 ve 01:26:02PM +0100 Sylvain Hubert napsal(a):
#Dear List,
#I'm trying to put the document title at around .25\paperheight by
#inserting a \blank:
#    \setuplayout[topspace=0cm, header=0cm, height=\paperheight]
#    \starttext \blank[.25\paperheight] foo \stoptext
#But the "foo" still appears at the very top.
#Does anyone know why it behaves like that, or whether there is a more
#authentic way to put the first word at .25\paperwidth than inserting a
#tiny invisible space before the \blank?
#Thanks!
#Best,
#Sylvain

# 
___
# 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] \blank[] doesn't work when nothing precedes it

2020-11-05 Thread Sylvain Hubert
Dear List,

I'm trying to put the document title at around .25\paperheight by inserting
a \blank:

\setuplayout[topspace=0cm, header=0cm, height=\paperheight]
\starttext \blank[.25\paperheight] foo \stoptext

But the "foo" still appears at the very top.

Does anyone know why it behaves like that, or whether there is a more
authentic way to put the first word at .25\paperwidth than inserting a tiny
invisible space before the \blank?

Thanks!

Best,
Sylvain
___
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] Why is the textarea not centered by default?

2020-11-05 Thread Sylvain Hubert
On Thu, 5 Nov 2020 at 11:57, Henri Menke  wrote:

> %D The default dimensions are quite old and will not change. The funny
> fractions
> %D were introduced when we went from fixed dimensions to relative ones.
> Since
> %D \CONTEXT\ is a dutch package, the dimensions are based on the metric
> system.
> The
> %D asymmetrical layout is kind of handy for short quick||and||dirty stapled
> %D documents.
>
>
> https://github.com/contextgarden/context-mirror/blob/343fdd99ef79884fca1f86b49c950e03939aeedf/tex/context/base/mkiv/page-lay.mkiv#L1373-L1377


So it's for backward compatibility then.
Thanks for the nice anecdote!
___
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] Bug: context/mtxrun makes Firefox eat up cpu

2020-11-05 Thread Sylvain Hubert
On Thu, 5 Nov 2020 at 12:07, Taco Hoekwater  wrote:

>
>
> > On 5 Nov 2020, at 11:48, Sylvain Hubert  wrote:
> >
> > After dozens of compilations of various minimal examples using the newly
> installed context, the problem reappeared.
> >
> > Removing tex/texmf-cache does not help.
> >
> > Does anyone know what files context modifies apart from tex/texmf-cache?
>
> None.
>
> Are you sure your disk(-driver) is OK?
>

tbh I'm not sure. I tried to figure that out by experimenting with
different kinds of stress tests and none of them triggered the same
problem, but I don't have much experience on this kind of problem anyway.
___
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] Bug: context/mtxrun makes Firefox eat up cpu

2020-11-05 Thread Hans Hagen

On 11/5/2020 11:48 AM, Sylvain Hubert wrote:
After dozens of compilations of various minimal examples using the newly 
installed context, the problem reappeared.


Removing tex/texmf-cache does not help.
Removing firefoxe does ... when I open e.g. the cnn website in firefox 
(for instance to keep an eye on crazy elections), that program takes 650 
MB memory and 44% GPU while edge (or chrome) takes 270 MB mem and 3% 
GPU. Add a few more tabs and firefox will easily eat up gigs of mem.


Now, I don't know how it manages memory but the tex engine needs a few 
reasonable sized arrays but in large allocs and then it manages its own 
memory from that pool, Lua needs more mem (could be scattered due to 
allocs i guess), and soem garbage collection can kick in, and browsers 
... well i suppose lots of allocations and it also depends on the 
jasvascript vm.


So, I would not be surprised if after some runs of these programs you 
end up with scattered memory. I suppose that at some point the operating 
system (when in rest) will sort things out. When I make a format file it 
normally takes a few seconds. When I let firefox run wild on memory (top 
out mem and then let it give back some), it can take twice as much to 
make a format, but after quitting firefox it's all ok again.


Anyway, already long ago I decided that firefox is a memory hog so 
whenever I do something that takes more time than I susspect, I close 
firefox. Actually I often close browsers when i don't need them, also 
because they always seem to be busy with something (also the network).


Tex is just juggling some bytes. In the past tex and distributioen were 
considered large ... nowadays they are small compared to whatever you 
install and run. And in luametatex/context the performance bottleneck is 
lua, not the core tex engine.


Of course you could consider swithcing to another operating system.

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] Bug: context/mtxrun makes Firefox eat up cpu

2020-11-05 Thread Taco Hoekwater


> On 5 Nov 2020, at 11:48, Sylvain Hubert  wrote:
> 
> After dozens of compilations of various minimal examples using the newly 
> installed context, the problem reappeared.
> 
> Removing tex/texmf-cache does not help.
> 
> Does anyone know what files context modifies apart from tex/texmf-cache?

None. 

Are you sure your disk(-driver) is OK?

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] Bug: context/mtxrun makes Firefox eat up cpu

2020-11-05 Thread Sylvain Hubert
After dozens of compilations of various minimal examples using the newly
installed context, the problem reappeared.

Removing tex/texmf-cache does not help.

Does anyone know what files context modifies apart from tex/texmf-cache?

Sylvain

On Wed, 4 Nov 2020 at 16:01, Sylvain Hubert  wrote:

> The problem disappeared after a fresh installation of context with
> everything else untouched.
>
> On Thu, 29 Oct 2020 at 11:29, Sylvain Hubert 
> wrote:
>
>> Hi,
>>
>> sorry if this is not the best place to file a bug but I found no working
>> bug tracker for context.
>>
>> Environment:
>> Manjaro 20.1.2, context 2020.09.20 23:02, firefox 82.0
>>
>> Step to reproduce:
>> 1. `firefox --safe-mode  # start firefox without add-ons`
>> 2.a`context --version  # or --help, or without arguments`
>> 2.b or: `mtxrun --script font --list --all`
>>
>> Expected behavior:
>> Nothing surprising should happen.
>>
>> Actual behavior:
>> Firefox suddenly eats 100% of cpu
>>
>> I've noticed that `context` symlinks to `luametatex`, but the latter
>> itself does not trigger the bug, neither do `luatex` or `latex`, so I
>> believe this is a context-specific thing.
>>
>> Best,
>> Sylvain
>>
>
___
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] Why is the textarea not centered by default?

2020-11-05 Thread Sylvain Hubert
Dear List,

\starttext \showframe \showsetups \stoptext

This minimal example without further configuration shows that the default
value for backspace, textwidth and paperwidth are 2.5cm, 15cm, 21cm resp.,
which means that the textarea is horizontally 0.5cm off the center by
default, and one can indeed see a clear extra margin on the right side.

This seems weird but I'm no expert of typesetting, so does anyone know why
it has been set like that?

Thanks.

Best,
Sylvain
___
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] What is "cutspace" and "bottomspace"?

2020-11-05 Thread Sylvain Hubert
Dear List,

according to https://wiki.contextgarden.net/Command/setuplayout ,
"cutspace" and "bottomspace" are the counterparts of "backspace" and
"topspace", and "If cutspace is set to 0, it is taken to be equal to the
backspace". But in fact, the following document stays the same no matter
what value is given to cutspace.

\setuplayout[cutspace=0.01cm]
\starttext x  \showframe \stoptext

Has anyone actually used these two parameters?

Best,
Sylvain
___
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] About loading C libraries (again)

2020-11-05 Thread Hans Hagen

On 11/5/2020 3:42 AM, Jairo A. del Rio wrote:
Hi again. I grepped the new release and I see permitloadlib is already 
included in mtxrun. Just out of curiosity, is --permitloadlib called via 
context or should I use it from mtxrun?

context --permitloadlib file.tex still doesn't have any effect.

It does here (not that i have a lib to test) so maybe check your path:

.../tex-context/tex/texmf-win64/bin/lib/luametatex/foo/libfoo.dll

(put the file there and run mtxrun --generate)

The lua versions should match and there shopuld be the initialer function.

\enabletrackers[*lib*]

gives some info.

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
___