[NTG-context] Limit of the size of the email message is 100KB.

2024-01-15 Thread luigi scarso
Hi all,
the ml has (as always as far as I can remember) the limit of 100KB
for  the maximum size of the message.
I have noticed that lately several messages are over the limit, and all I
can do
is write to the sender and discard the message,   and this could happen a
couple of days later
the message has been received.

So...just stay within the limit, if you can.


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Bruce Horrocks
On 15 Jan 2024, at 16:15, Jim  wrote:
> 
> I would like
> something which automagically "does the right thing".

Not pretty, but... :-)

\setupwhitespace [big]
\setuppapersize [letter]

\define[1]\mystopitemize{\stopitemize\doifsamestringelse{#1}{\par}{\blank}{#1}}

\starttext
This is a short paragraph.

This is a line before an itemization.
\startitemize[nowhite]
\item First item.
\item Second item.
\mystopitemize
This is a short paragraph immediately following.

This is a line before a {\bf nowhite, after} itemization.
\startitemize[nowhite]
\item First item.
\item Second item.
\mystopitemize

This is the next short paragraph, not part of the above.

\stoptext

—
Bruce Horrocks
Hampshire, UK

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: issue with fonts in current latest (2024.01.08 11:23)

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 21:43 schrieb Mikael Sundqvist:

Try this:
\definebodyfontenvironment[16pt]


Yes, works.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: issue with fonts in current latest (2024.01.08 11:23)

2024-01-15 Thread Mikael Sundqvist
Hi,

Try this:

On Mon, Jan 15, 2024 at 6:17 PM Pablo Rodriguez via ntg-context
 wrote:
>
> Dear list,
>
> I have the following sample:
>
>   \definefontfamily[mainface][rm][TeX Gyre Pagella]
>   \definefontfamily[coverface][rm][TeX Gyre Termes]

\definebodyfontenvironment[16pt]

>   \setupbodyfont[mainface, 16pt]
>   \starttext
>   \startmakeup[standard][style=\bf]
>   \switchtobodyfont[coverface]
>   This is a cover.
>   \stopmakeup
>
>   This is text.
>   \stoptext
>
> Compiling the sample with current latest (2024.01.08 11:23), LMTX puts
> Latin Modern Roman (no bold) and MkIV puts Termes (no bold).
>
> The results with previous latest (2023.09.26 18:19), cover is in Termes
> bold with LMTX and in Termes regular with MkIV.
>
> I guess there might be an issue here. Could anyone confirm this?
>
> Many thanks for your help,
>
> Pablo

Maybe some check will be added. (On the chat with Hans...)

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Jim
On Mon, Jan 15, 2024 at 20:33 (+0100), Henning Hraban Ramm wrote:

> Am 15.01.24 um 17:15 schrieb Jim:
>> "after" does the trick, but not in an automatic way.  I would like
>> something which automagically "does the right thing".

> With “automagically”, do you mean for all instances?

I hate to go out on a limb and say "all", but I mean that if there is text
"immediately" following the \stopitemize (i.e., no \par token or vertical
mode material before more text), then there is no white space following the
last \item.  But if there is a blank line following the last \item, there
will be vertical white space corresponding to the current \setupwhitespace
setting following the last item.

> \setupitemgroup[itemize][nowhite,after]

>>> Sorry, then you need "nowhite". Usually that’s synonymous to
>>> "packed,joineup", but apparently not if whitespace is active.

>> "Usually" is in the eye of the beholder.  ;-)

>> I would have thought that having non-zero whitespace between paragraphs is
>> common.  For example, Aditya's blog linked to above has whitespace between
>> paragraphs.  Are you suggesting that is uncommon, or (showing my
>> Context-noobness) is \setupwhitespace not the usual ConTeXt way to do this?

> Yes, it’s common, and \setupwhitespace is right.

OK, thanks for the confirmation.

> I just don’t remember all the setups in my many environments all the time.

>>> I added a few comments to
>>> https://wiki.contextgarden.net/Command/setupitemgroup
>>> Unfortunately, this is one of the areas where we have a plethora of options
>>> and no documentation about them.

>> Thanks for adding them.  I see you did not document the all-important (to
>> me) "after" (or "before") in the wiki.  Would you like to add that?  If
>> you don't have time right now, I'd be happy to do so.

> It’s there now.

Thanks, I have already seen them!

> I’m not sure about the options regarding width

I've done some more exploration about items in the last hour or so.  I'm
not sure I am yet ready to update the wiki (I am concerned that incomplete
information may be worse than no information), but if/when I feel
confident, I will add some information about some options.  (I guess the
implementation code is the current definitive documentation!)

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 17:15 schrieb Jim:

"after" does the trick, but not in an automatic way.  I would like
something which automagically "does the right thing".


With “automagically”, do you mean for all instances?

\setupitemgroup[itemize][nowhite,after]


Sorry, then you need "nowhite". Usually that’s synonymous to
"packed,joineup", but apparently not if whitespace is active.


"Usually" is in the eye of the beholder.  ;-)

I would have thought that having non-zero whitespace between paragraphs is
common.  For example, Aditya's blog linked to above has whitespace between
paragraphs.  Are you suggesting that is uncommon, or (showing my
Context-noobness) is \setupwhitespace not the usual ConTeXt way to do this?


Yes, it’s common, and \setupwhitespace is right.

I just don’t remember all the setups in my many environments all the time.


I added a few comments to
https://wiki.contextgarden.net/Command/setupitemgroup
Unfortunately, this is one of the areas where we have a plethora of options
and no documentation about them.


Thanks for adding them.  I see you did not document the all-important (to
me) "after" (or "before") in the wiki.  Would you like to add that?  If
you don't have time right now, I'd be happy to do so.


It’s there now.
I’m not sure about the options regarding width

Hraban

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: issue with fonts in current latest (2024.01.08 11:23)

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 18:16 schrieb Pablo Rodriguez via ntg-context:

I guess there might be an issue here. Could anyone confirm this?


Yes, same beta from last week (2024.01.08).

No error in the console output.

mkiv lua stats  > loaded fonts: 4 files: latinmodernmath-companion.otf, 
latinmodern-math.otf, texgyrepagella-bold.otf, texgyrepagella-regular.otf


Apparently Pagella bold is loaded, but not used.


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Named characters

2024-01-15 Thread Thomas A. Schmitz

Hi all,

not a complaint, just a question (for Hans and Wolfgang, I guess): in 
recent versions of lmtx, Greek named characters (constructs such as 
\greekdasiatonos) don't work any more. Which means I have to adapt some 
of my older macros. Is this an oversight or did they get axed?


All best

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Jim
On Mon, Jan 15, 2024 at 17:39 (+0100), Wolfgang Schuster wrote:

> Jim schrieb am 15.01.2024 um 01:42:
>> I have

>> \setupwhitespace [big]

>> so that I get "a blank line" between paragraphs.

>> I would like to *not* have "blank lines" before and after my items.  For
>> example, if there is more "paragraph text" after the last item I would like
>> to see this structure:

>> --

>> Some text preceding the list of items:
>> a. Item one.
>> b. Second item.
>> This sentence is part of the same paragraph.

>> The next paragraph starts here...

>> --

>> and if there is no "paragraph text" after the last item, I'd like to see
>> this structure:

>> --

>> Some text preceding the list of items:
>> a. Item one.
>> b. Second item.

>> The next paragraph starts here...

>> --

>> Try as I might, I can't find the right options to give to \startitemize.

>> The closest I have found is to start with
>> \startitemize[a,nowhite]
>> but that prevents the "blank line" even in the second case above, which is
>> not what I want.  Further, 'packed' and 'joinedup' seem to behave
>> identically here, both leaving "a blank line" before the first item and
>> after the last item.

>> Clearly, I can force a blank line before the following paragraph with a
>> \vskip, but that seems like a crude way to do it.

>> Can someone either enlighten me on either
>> (a) the Right ConTeXt Way to do this, or
>> (b) a document that would tell me this, if I knew to read it?

>> I've looked in the wiki, the not-so-short intro to ConTeXt, and "ConTeXt:
>> an excursion" with no luck.

> Hi Jim,

> such a feature exists only to suppress paragraph indentation but not to
> ignore whitespace
> between paragraphs.

> \setupitemize[indentnext=auto]

> \setupindenting[yes,medium]

> \starttext

> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa
> turpis,
> semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi
> \unknown

> \startitemize
> \startitem Lorem ipsum \unknown \stopitem
> \stopitemize

> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa
> turpis,
> semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi
> \unknown

> \startitemize
> \startitem Lorem ipsum \unknown \stopitem
> \stopitemize
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa
> turpis,
> semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi
> \unknown

> \stoptext

Hi Wolfgang,

thanks for that information.

I would have thought that what I want to do is not so unusual that ConTeXt
does not have the ability to handle it, especially in light of the
indentnext=auto feature which shows that (presumably) some people want to
handle the text following \stopitemize differently, depending on whether or
not the following text is part of the same paragraph.

Perhaps I need to go and contemplate the sins of my formatting
choices... :-)

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] issue with fonts in current latest (2024.01.08 11:23)

2024-01-15 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \definefontfamily[mainface][rm][TeX Gyre Pagella]
  \definefontfamily[coverface][rm][TeX Gyre Termes]
  \setupbodyfont[mainface, 16pt]
  \starttext
  \startmakeup[standard][style=\bf]
  \switchtobodyfont[coverface]
  This is a cover.
  \stopmakeup

  This is text.
  \stoptext

Compiling the sample with current latest (2024.01.08 11:23), LMTX puts
Latin Modern Roman (no bold) and MkIV puts Termes (no bold).

The results with previous latest (2023.09.26 18:19), cover is in Termes
bold with LMTX and in Termes regular with MkIV.

I guess there might be an issue here. Could anyone confirm this?

Many thanks for your help,

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] too large dimension in current latest

2024-01-15 Thread Pablo Rodriguez via ntg-context
Hi Hans,

after updating to current latest (2024.01.08 11:23), I get the following
error.

This is triggered when compiling XML sources (with extra environment
files), so it is not easy to get a minimal sample file.

I wonder whehter the message itself could reveal what may be wrong here.

Many thanks for your help,

Pablo


tex error   > tex error on line 36 in file : Dimension too large


\emwidth
 \hyphenatedurl
#1->\dontleavehmode \begingroup \expand \everyhyphenatedurl
\normallanguage \zerocount \scratchskipone \zeropoint \s!plus \dimexpr
\emwidth
/12\s!minus \dimexpr \emwidth /24\relax \scratchskiptwo \zeropoint
\s!plus \dimexpr \emwidth /48\s!minus \dime

...\strutdp \relax \setlocationattributes \setstrut \global
\lastsavedreferenceattribute \lastreferenceattribute \c_attr_reference
\lastreferenceattribute \dostarttagged \t!link \empty \urlstyle
{\hyphenatedurl {\xmlflush {main::154}}
}\dostoptagged
 \firstoftwoarguments
#1#-->#1
 \strc_references_goto
...rrentreferencehtdp \strutht \strutdp \relax
\setlocationattributes \setstrut \global \lastsavedreferenceattribute
\lastreferenceattribute \c_attr_reference \lastreferenceattribute
\dostarttagged \t!link \empty #1\dostoptagged }{#1}
\else #1\fi \ ...
 \mypersonalurl
#1#2->\bgroup \goto {\urlstyle {\hyphenatedurl {#2}}}[url(#1)]
\egroup {}
 ...





I can't work with sizes bigger than about 19 feet (45 Theodores as of 2023),
575 centimeters, 2300 Toves, 230 Ediths or 16383 points. Continue and
I'll use
the largest value I can.
mtx-context | fatal error: return code: 1
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Wolfgang Schuster

Jim schrieb am 15.01.2024 um 01:42:

I have

\setupwhitespace [big]

so that I get "a blank line" between paragraphs.

I would like to *not* have "blank lines" before and after my items.  For
example, if there is more "paragraph text" after the last item I would like
to see this structure:

--

Some text preceding the list of items:
a. Item one.
b. Second item.
This sentence is part of the same paragraph.

The next paragraph starts here...

--

and if there is no "paragraph text" after the last item, I'd like to see
this structure:

--

Some text preceding the list of items:
a. Item one.
b. Second item.

The next paragraph starts here...

--

Try as I might, I can't find the right options to give to \startitemize.

The closest I have found is to start with
\startitemize[a,nowhite]
but that prevents the "blank line" even in the second case above, which is
not what I want.  Further, 'packed' and 'joinedup' seem to behave
identically here, both leaving "a blank line" before the first item and
after the last item.

Clearly, I can force a blank line before the following paragraph with a
\vskip, but that seems like a crude way to do it.

Can someone either enlighten me on either
(a) the Right ConTeXt Way to do this, or
(b) a document that would tell me this, if I knew to read it?

I've looked in the wiki, the not-so-short intro to ConTeXt, and "ConTeXt:
an excursion" with no luck.


Hi Jim,

such a feature exists only to suppress paragraph indentation but not to 
ignore whitespace

between paragraphs.

\setupitemize[indentnext=auto]

\setupindenting[yes,medium]

\starttext

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi 
\unknown


\startitemize
\startitem Lorem ipsum \unknown \stopitem
\stopitemize

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi 
\unknown


\startitemize
\startitem Lorem ipsum \unknown \stopitem
\stopitemize
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi 
\unknown


\stoptext

Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: [External] Re: Looking for itemize help

2024-01-15 Thread Jim
Hi Michael,

thanks for getting back.  But the problem is not the text in front of the
items, but rather vertical whitespace that I don't want.  (Or, with
'nowhite', vertical space that I might want not being there.)

Cheers.
Jim

On Mon, Jan 15, 2024 at 15:51 (+), Rogers, Michael K wrote:

> Hi Jim,

> I think you want alternative “a”, if the dot instead of a letter is the 
> problem and not the whitespace:

> %%

> \starttext

> This is a short paragraph.

> This is a line before a {\bf packed, joinedup} itemization.
> \startitemize[a,packed,joinedup]
> \item First item.
> \item Second item.
> \stopitemize
> This is a line immediately following the above itemization.

> This is a short paragraph.

> \stoptext

> %%

> Cheers,

> Michael

>> On Jan 15, 2024, at 6:36 AM, Jim  wrote:

>> Hi Hraban,

>> thanks for your response.  But...

>> On Mon, Jan 15, 2024 at 08:17 (+0100), Henning Hraban Ramm wrote:

>>> Am 15.01.24 um 01:42 schrieb Jim:

 Some text preceding the list of items:
 a. Item one.
 b. Second item.
 This sentence is part of the same paragraph.

 The next paragraph starts here...

>>> \startitemize[packed,joinedup] should be the right combination.

>> I won't argue about "should", but I will point out it isn't, at least on my
>> computer with a recently updated context.

>> Here is a non-minimal but short non-working example.

>> %%%

>> \setupwhitespace [big]

>> \setuppapersize [letter]

>> \starttext
>> This is a short paragraph.

>> This is a line before a {\bf packed, joinedup} itemization.
>> \startitemize[packed,joinedup]
>> \item First item.
>> \item Second item.
>> \stopitemize
>> This is a line immediately following the above itemization.

>> This is a short paragraph.

>> This is a line before a {\bf packed, joinedup} itemization.
>> \startitemize[packed,joinedup]
>> \item First item.
>> \item Second item.
>> \stopitemize

>> This is another short paragraph.

>> \stoptext

>> %%%

>> Thoughts?

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

>> maillist : ntg-context@ntg.nl / 
>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>> webpage  : https://www.pragma-ade.nl/ / https://context.aanhet.net/ (mirror)
>> archive  : https://github.com/contextgarden/context
>> wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Jim
Two replies in one...

On Mon, Jan 15, 2024 at 15:47 (+0100), Aditya Mahajan wrote:

> On Mon, 15 Jan 2024, Jim wrote:

>> Thoughts?


> \startitemize[nowhite, after]
>   . . .
> \stopitemize

> See: https://adityam.github.io/context-blog/post/spacing-in-itemize/

Aditya,

thanks for the suggestion, and thanks for the link.

"after" does the trick, but not in an automatic way.  I would like
something which automagically "does the right thing".

Perhaps it just doesn't exist in ConTeXt.  The plain TeX macros I wrote for
itemization do what I want, so I know it isn't (at least in plain TeX) a
difficult thing.



On Mon, Jan 15, 2024 at 16:08 (+0100), Henning Hraban Ramm wrote:

> Am 15.01.24 um 15:36 schrieb Jim:
>>> \startitemize[packed,joinedup] should be the right combination.

>> I won't argue about "should", but I will point out it isn't, at least on my
>> computer with a recently updated context.

>> Here is a non-minimal but short non-working example.

> Sorry, then you need "nowhite". Usually that’s synonymous to
> "packed,joineup", but apparently not if whitespace is active.

"Usually" is in the eye of the beholder.  ;-)

I would have thought that having non-zero whitespace between paragraphs is
common.  For example, Aditya's blog linked to above has whitespace between
paragraphs.  Are you suggesting that is uncommon, or (showing my
Context-noobness) is \setupwhitespace not the usual ConTeXt way to do this?

> I added a few comments to
> https://wiki.contextgarden.net/Command/setupitemgroup
> Unfortunately, this is one of the areas where we have a plethora of options
> and no documentation about them.

Thanks for adding them.  I see you did not document the all-important (to
me) "after" (or "before") in the wiki.  Would you like to add that?  If
you don't have time right now, I'd be happy to do so.

Cheers.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: [External] Re: Looking for itemize help

2024-01-15 Thread Rogers, Michael K
Hi Jim,

I think you want alternative “a”, if the dot instead of a letter is the problem 
and not the whitespace:

%%

\starttext

This is a short paragraph.

This is a line before a {\bf packed, joinedup} itemization.
\startitemize[a,packed,joinedup]
\item First item.
\item Second item.
\stopitemize
This is a line immediately following the above itemization.

This is a short paragraph.

\stoptext

%%

Cheers,

Michael

> On Jan 15, 2024, at 6:36 AM, Jim  wrote:
>
> Hi Hraban,
>
> thanks for your response.  But...
>
> On Mon, Jan 15, 2024 at 08:17 (+0100), Henning Hraban Ramm wrote:
>
>> Am 15.01.24 um 01:42 schrieb Jim:
>
>>> Some text preceding the list of items:
>>> a. Item one.
>>> b. Second item.
>>> This sentence is part of the same paragraph.
>
>>> The next paragraph starts here...
>
>> \startitemize[packed,joinedup] should be the right combination.
>
> I won't argue about "should", but I will point out it isn't, at least on my
> computer with a recently updated context.
>
> Here is a non-minimal but short non-working example.
>
> %%%
>
> \setupwhitespace [big]
>
> \setuppapersize [letter]
>
> \starttext
> This is a short paragraph.
>
> This is a line before a {\bf packed, joinedup} itemization.
> \startitemize[packed,joinedup]
> \item First item.
> \item Second item.
> \stopitemize
> This is a line immediately following the above itemization.
>
> This is a short paragraph.
>
> This is a line before a {\bf packed, joinedup} itemization.
> \startitemize[packed,joinedup]
> \item First item.
> \item Second item.
> \stopitemize
>
> This is another short paragraph.
>
> \stoptext
>
> %%%
>
> Thoughts?
>
>Jim
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl/ / https://context.aanhet.net/ (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Shiv Shankar Dayal
Thanks a lot, Aditya.

On Mon, Jan 15, 2024 at 8:41 PM Aditya Mahajan  wrote:

> On Mon, 15 Jan 2024, Mikael Sundqvist wrote:
>
> > Hi,
> >
> > you can try something like
> >
> > \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1}
> >
> > but it will not be too pretty with such a large sub-index to the sum.
>
> There is also
>
> \sum_{\startsubstack \NC a \NR \NC b \NR \stopsubstack}
>
> which imitates the \substack command from latex.
>
> OT but it is better to use one of \mod, \pmod, \bmod, rather than explicit
> \mtext{mod }.
>
> Aditya
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] OT: special ToC

2024-01-15 Thread Henning Hraban Ramm


I came across a table of contents style that’s hardly possible with TeX:

https://historians.social/@dbellingradt/111760591144801241
(image is too big for the ML)


(Yes of course you can do it with manual references and MetaPost lines…)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 15:36 schrieb Jim:

\startitemize[packed,joinedup] should be the right combination.


I won't argue about "should", but I will point out it isn't, at least on my
computer with a recently updated context.

Here is a non-minimal but short non-working example.


Sorry, then you need "nowhite". Usually that’s synonymous to 
"packed,joineup", but apparently not if whitespace is active.


I added a few comments to 
https://wiki.contextgarden.net/Command/setupitemgroup
Unfortunately, this is one of the areas where we have a plethora of 
options and no documentation about them.


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Aditya Mahajan
On Mon, 15 Jan 2024, Mikael Sundqvist wrote:

> Hi,
> 
> you can try something like
> 
> \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1}
> 
> but it will not be too pretty with such a large sub-index to the sum.

There is also 

\sum_{\startsubstack \NC a \NR \NC b \NR \stopsubstack}

which imitates the \substack command from latex. 

OT but it is better to use one of \mod, \pmod, \bmod, rather than explicit 
\mtext{mod }. 

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Aditya Mahajan
On Mon, 15 Jan 2024, Jim wrote:

> Thoughts?


\startitemize[nowhite, after]
  . . .
\stopitemize

See: https://adityam.github.io/context-blog/post/spacing-in-itemize/

Aditya

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Jim
Hi Hraban,

thanks for your response.  But...

On Mon, Jan 15, 2024 at 08:17 (+0100), Henning Hraban Ramm wrote:

> Am 15.01.24 um 01:42 schrieb Jim:

>> Some text preceding the list of items:
>> a. Item one.
>> b. Second item.
>> This sentence is part of the same paragraph.

>> The next paragraph starts here...

> \startitemize[packed,joinedup] should be the right combination.

I won't argue about "should", but I will point out it isn't, at least on my
computer with a recently updated context.

Here is a non-minimal but short non-working example.

%%%

\setupwhitespace [big]

\setuppapersize [letter]

\starttext
This is a short paragraph.

This is a line before a {\bf packed, joinedup} itemization.
\startitemize[packed,joinedup]
\item First item.
\item Second item.
\stopitemize
This is a line immediately following the above itemization.

This is a short paragraph.

This is a line before a {\bf packed, joinedup} itemization.
\startitemize[packed,joinedup]
\item First item.
\item Second item.
\stopitemize
 
This is another short paragraph.

\stoptext

%%%

Thoughts?

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Shiv Shankar Dayal
It works nicely. You are a lifesaver. Thanks a lot.

On Mon, Jan 15, 2024 at 7:30 PM Mikael Sundqvist  wrote:

> Hi,
>
> you can try something like
>
> \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1}
>
> but it will not be too pretty with such a large sub-index to the sum.
>
> /Mikael
>
> On Mon, Jan 15, 2024 at 2:41 PM Shiv Shankar Dayal
>  wrote:
> >
> > I have following formula
> > \sum_{k=0\\ k\equiv p + 1(\mathrm{mod}\;2)}^{p -1} but the \\ does not
> break the line below Sigma. How can I achieve this because AFAIK it will
> work in LaTeX?
> >
> > --
> > Respect,
> > Shiv Shankar Dayal
> >
> ___
> > If your question is of interest to others as well, please add an entry
> to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> > webpage  : https://www.pragma-ade.nl / https://context.aanhet.net
> (mirror)
> > archive  : https://github.com/contextgarden/context
> > wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Mikael Sundqvist
Hi,

you can try something like

\sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1}

but it will not be too pretty with such a large sub-index to the sum.

/Mikael

On Mon, Jan 15, 2024 at 2:41 PM Shiv Shankar Dayal
 wrote:
>
> I have following formula
> \sum_{k=0\\ k\equiv p + 1(\mathrm{mod}\;2)}^{p -1} but the \\ does not break 
> the line below Sigma. How can I achieve this because AFAIK it will work in 
> LaTeX?
>
> --
> Respect,
> Shiv Shankar Dayal
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Spacing problem in formula

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 13:21 schrieb Hans Hagen:

On 1/15/2024 8:00 AM, Shiv Shankar Dayal wrote:

Thanks a lot Mikael.


in addition: in context lmtx {} are grouping symbols not (ordinary) 
empty atoms


Only in math, or generally?

\startquotation
{}[…] Here I need the empty group, otherwise the brackets belong to \start…
\stopquotation

Hraban

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Linebreak in formual

2024-01-15 Thread Shiv Shankar Dayal
I have following formula
\sum_{k=0\\ k\equiv p + 1(\mathrm{mod}\;2)}^{p -1} but the \\ does not
break the line below Sigma. How can I achieve this because AFAIK it will
work in LaTeX?

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Spacing problem in formula

2024-01-15 Thread Hans Hagen

On 1/15/2024 8:00 AM, Shiv Shankar Dayal wrote:

Thanks a lot Mikael.


in addition: in context lmtx {} are grouping symbols not (ordinary) 
empty atoms


On Mon, Jan 15, 2024 at 12:24 PM Mikael Sundqvist > wrote:


Hi,

ConTeXt supports prescripts:

\startTEXpage[offset=1DK]

\m{1 - {}^nC_2\tan^2\theta + {}^nC_4 }

\m{1 - C_2^^n \tan^2\theta + C_4^^n }

\stopTEXpage

If you want them below, use double _.

/Mikael

On Mon, Jan 15, 2024 at 7:45 AM Shiv Shankar Dayal
mailto:shivshankar.da...@gmail.com>>
wrote:
 >
 > Suppose I want to typeset the formula: 1 - {}^nC_2\tan^2\theta +
{}^nC_4 then it appears as if n is power of - and +. The same
formula in LaTeX comes out nicely. Is there something I need to change?
 >
 > --
 > Respect,
 > Shiv Shankar Dayal
 >

___
 > If your question is of interest to others as well, please add an
entry to the Wiki!
 >
 > maillist : ntg-context@ntg.nl  /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl

 > webpage  : https://www.pragma-ade.nl 
/ https://context.aanhet.net  (mirror)
 > archive  : https://github.com/contextgarden/context

 > wiki     : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl

webpage  : https://www.pragma-ade.nl  /
https://context.aanhet.net  (mirror)
archive  : https://github.com/contextgarden/context

wiki     : https://wiki.contextgarden.net


___



--
Respect,
Shiv Shankar Dayal

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


--

-
  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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___