Re: [NTG-context] \setupparagraphs - can they run over two pages?

2023-02-27 Thread jbf via ntg-context
Yes, tabulate is a solution, though as I have just described for Denis 
who also responded to this issue, by some careful manipulation (which 
was possible for the circumstance I was dealing with) I simply noted 
where the page break occurred and started a new set of paragraphs after 
that. That was satisfactory in this case. Tabulate might have to be the 
solution for a different set of circumstances.


Julian

On 27/2/23 23:26, mf via ntg-context wrote:

I would try \setuptabulate, \starttabulate ... \stoptabulate.

It has some limitations (though Hans added some features recently), 
but it should work.


Massi

Il 24/02/23 06:41, jbf via ntg-context ha scritto:

I have the following setup for side-by-side paras.

\defineparagraphs[Two][n=2]

\setupparagraphs[Two][1][width=.1\textwidth,style=\bfx,align=tolerant]

\setupparagraphs[Two][2][width=.9\textwidth,style=normal,align=tolerant]

My difficulty is that while there is only ever just a couple of 
numbers in the left-hand 'column', the right-hand 'column' may have 
several lengthy paragraphs. If I have one relatively short \startTwo 
followed by one that is much longer, it will be forced to start on 
the next page, leaving too much empty space on the previous page.


It is probable that getting this environment to split across pages is 
not possible. I can try very different approaches (columns, tables) 
to solve my problem, but I thought I would at least ask first.


Julian


___ 

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
___ 

___ 

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
___ 


___
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] Can ConTeXt display a simple itemized list as a comma-separated list?

2023-02-27 Thread Otared Kavian via ntg-context
Hi,

Indeed you are right. However, Hans said the feature would be added in the next 
update: so you have to wait a little bit :-)

Best regards: Otared


> On 27 Feb 2023, at 12:33, Jan-Erik Hägglöf via ntg-context 
>  wrote:
> 
> I tested the code and the separator didn’t show up
> 
> \mainlanguage[sv]
> 
> \setupbodyfont[12pt]
> 
> \defineitemgroup
>   [fooditems]
> 
> \setupitemgroup
>   [fooditems]
>   [each]
>   [none,text]
>   [textseparator=,]
> 
> \starttext
> 
> \startfooditems
> \item fish
> \item eggs
> \item milk
> \stopfooditems
> 
> \stoptext
> 
> 
> 
> 
>> 26 feb. 2023 kl. 11:55 skrev Hans Hagen via ntg-context > >:
>> 
>> On 2/25/2023 5:01 PM, Joel via ntg-context wrote:
>>> I have a list like this:
>>> \startitemize[1]
>>> \item fish
>>> \item eggs
>>> \item milk
>>> \stopitemize
>>> Is there any command in ConTeXt to make this display the items as a 
>>> comma-separated list, like this:
>>> fish, eggs, milk
>>> Or a semi-colon-separated list?
>>> fish; eggs; milk
>> In the next update you can set a textseparator.
>> 
>> \starttext
>> 
>> \startitemize[none,text][textseparator=;]
>>\item fish
>>\item eggs
>>\item milk
>> \stopitemize
>> 
>> \defineitemgroup
>>  [fooditems]
>> 
>> \setupitemgroup
>>  [fooditems]
>>  [each]
>>  [none,text]
>>  [textseparator=;]
>> 
>> \blank[2*line]
>> 
>> \startfooditems
>>\item fish
>>\item eggs
>>\item milk
>> \stopfooditems
>> 
>> \stoptext
>> 
>> -
>>  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 
>> ___
> 
> ___
> 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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
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] \setupparagraphs - can they run over two pages?

2023-02-27 Thread mf via ntg-context

I would try \setuptabulate, \starttabulate ... \stoptabulate.

It has some limitations (though Hans added some features recently), but 
it should work.


Massi

Il 24/02/23 06:41, jbf via ntg-context ha scritto:

I have the following setup for side-by-side paras.

\defineparagraphs[Two][n=2]

\setupparagraphs[Two][1][width=.1\textwidth,style=\bfx,align=tolerant]

\setupparagraphs[Two][2][width=.9\textwidth,style=normal,align=tolerant]

My difficulty is that while there is only ever just a couple of numbers 
in the left-hand 'column', the right-hand 'column' may have several 
lengthy paragraphs. If I have one relatively short \startTwo followed by 
one that is much longer, it will be forced to start on the next page, 
leaving too much empty space on the previous page.


It is probable that getting this environment to split across pages is 
not possible. I can try very different approaches (columns, tables) to 
solve my problem, but I thought I would at least ask first.


Julian


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

___
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] \setupparagraphs - can they run over two pages?

2023-02-27 Thread Denis Maier via ntg-context
No, I don’t think that’s possible, at least it wasn’t last time I’ve checked : 
https://www.mail-archive.com/ntg-context@ntg.nl/msg102871.html

Best,
Denis

Von: ntg-context  Im Auftrag von jbf via ntg-context
Gesendet: Freitag, 24. Februar 2023 06:42
An: mailing list for ConTeXt users 
Cc: jbf 
Betreff: [NTG-context] \setupparagraphs - can they run over two pages?


I have the following setup for side-by-side paras.
\defineparagraphs[Two][n=2]

\setupparagraphs[Two][1][width=.1\textwidth,style=\bfx,align=tolerant]

\setupparagraphs[Two][2][width=.9\textwidth,style=normal,align=tolerant]

My difficulty is that while there is only ever just a couple of numbers in the 
left-hand 'column', the right-hand 'column' may have several lengthy 
paragraphs. If I have one relatively short \startTwo followed by one that is 
much longer, it will be forced to start on the next page, leaving too much 
empty space on the previous page.

It is probable that getting this environment to split across pages is not 
possible. I can try very different approaches (columns, tables) to solve my 
problem, but I thought I would at least ask first.

Julian
___
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] Can ConTeXt display a simple itemized list as a comma-separated list?

2023-02-27 Thread Jan-Erik Hägglöf via ntg-context
I added the braces but still no difference, still empty between items


Jan-Erik Hägglöf
skrantajanne...@gmail.com

ConTeXt  ver: 2023.02.23 21:26 LMTX  fmt: 2023.2.27  int: english/english

> 27 feb. 2023 kl. 12:53 skrev mf via ntg-context :
> 
> \setupitemgroup
>[fooditems]
>[each]
>[none,text]
>[textseparator={,}]
> 
> Comma is used to separate options; if you don't use braces, it means that the 
> textseparator is set to the empty string.
> 
> Massi
> 
> Il 27/02/23 12:33, Jan-Erik Hägglöf via ntg-context ha scritto:
>> I tested the code and the separator didn’t show up
>> \mainlanguage[sv]
>> \setupbodyfont[12pt]
>> \defineitemgroup
>>   [fooditems]
>> \setupitemgroup
>>   [fooditems]
>>   [each]
>>   [none,text]
>>   [textseparator=,]
>> \starttext
>> \startfooditems
>> \item fish
>> \item eggs
>> \item milk
>> \stopfooditems
>> \stoptext
>>> 26 feb. 2023 kl. 11:55 skrev Hans Hagen via ntg-context >>  >> >>:
>>> 
>>> On 2/25/2023 5:01 PM, Joel via ntg-context wrote:
 I have a list like this:
 \startitemize[1]
 \item fish
 \item eggs
 \item milk
 \stopitemize
 Is there any command in ConTeXt to make this display the items as a 
 comma-separated list, like this:
 fish, eggs, milk
 Or a semi-colon-separated list?
 fish; eggs; milk
>>> In the next update you can set a textseparator.
>>> 
>>> \starttext
>>> 
>>> \startitemize[none,text][textseparator=;]
>>>\item fish
>>>\item eggs
>>>\item milk
>>> \stopitemize
>>> 
>>> \defineitemgroup
>>>  [fooditems]
>>> 
>>> \setupitemgroup
>>>  [fooditems]
>>>  [each]
>>>  [none,text]
>>>  [textseparator=;]
>>> 
>>> \blank[2*line]
>>> 
>>> \startfooditems
>>>\item fish
>>>\item eggs
>>>\item milk
>>> \stopfooditems
>>> 
>>> \stoptext
>>> 
>>> -
>>>  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  
>>> >
>>> ___
>> ___
>> 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 
>> ___
> ___
> 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/ 
> 

Re: [NTG-context] Can ConTeXt display a simple itemized list as a comma-separated list?

2023-02-27 Thread mf via ntg-context

\setupitemgroup
[fooditems]
[each]
[none,text]
[textseparator={,}]

Comma is used to separate options; if you don't use braces, it means 
that the textseparator is set to the empty string.


Massi

Il 27/02/23 12:33, Jan-Erik Hägglöf via ntg-context ha scritto:

I tested the code and the separator didn’t show up

\mainlanguage[sv]

\setupbodyfont[12pt]

\defineitemgroup
   [fooditems]

\setupitemgroup
   [fooditems]
   [each]
   [none,text]
   [textseparator=,]

\starttext

\startfooditems
     \item fish
     \item eggs
     \item milk
\stopfooditems

\stoptext




26 feb. 2023 kl. 11:55 skrev Hans Hagen via ntg-context 
mailto:ntg-context@ntg.nl>>:


On 2/25/2023 5:01 PM, Joel via ntg-context wrote:

I have a list like this:
\startitemize[1]
\item fish
\item eggs
\item milk
\stopitemize
Is there any command in ConTeXt to make this display the items as a 
comma-separated list, like this:

fish, eggs, milk
Or a semi-colon-separated list?
fish; eggs; milk

In the next update you can set a textseparator.

\starttext

\startitemize[none,text][textseparator=;]
   \item fish
   \item eggs
   \item milk
\stopitemize

\defineitemgroup
 [fooditems]

\setupitemgroup
 [fooditems]
 [each]
 [none,text]
 [textseparator=;]

\blank[2*line]

\startfooditems
   \item fish
   \item eggs
   \item milk
\stopfooditems

\stoptext

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



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

___
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] Can ConTeXt display a simple itemized list as a comma-separated list?

2023-02-27 Thread Jan-Erik Hägglöf via ntg-context
I tested the code and the separator didn’t show up\mainlanguage[sv]\setupbodyfont[12pt]\defineitemgroup  [fooditems]\setupitemgroup  [fooditems]  [each]  [none,text]  [textseparator=,]\starttext\startfooditems    \item fish    \item eggs    \item milk\stopfooditems\stoptext

test.log
Description: Binary data


test.pdf
Description: Adobe PDF document


test.tex
Description: Binary data
26 feb. 2023 kl. 11:55 skrev Hans Hagen via ntg-context :On 2/25/2023 5:01 PM, Joel via ntg-context wrote:I have a list like this:\startitemize[1]\item fish\item eggs\item milk\stopitemizeIs there any command in ConTeXt to make this display the items as a comma-separated list, like this:fish, eggs, milkOr a semi-colon-separated list?fish; eggs; milkIn the next update you can set a textseparator.\starttext\startitemize[none,text][textseparator=;]    \item fish    \item eggs    \item milk\stopitemize\defineitemgroup  [fooditems]\setupitemgroup  [fooditems]  [each]  [none,text]  [textseparator=;]\blank[2*line]\startfooditems    \item fish    \item eggs    \item milk\stopfooditems\stoptext-  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-contextwebpage  : https://www.pragma-ade.nl / http://context.aanhet.netarchive  : https://bitbucket.org/phg/context-mirror/commits/wiki : https://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://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
___