Re: [NTG-context] Itemization formatting

2019-05-29 Thread Wolfgang Schuster

Taco Hoekwater schrieb am 29.05.2019 um 16:15:

Hi all,

I must be getting old :(

It used to be that I could get ConTeXt to do what I wanted, but that is 
increasingly getting harder.

Current problem: I would like to have itemizations that behave like in this 
dummy
ascii formatting:

   *   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus 
turpis et
   nulla venenatis tincidunt. Curabitur sit amet vehicula nisi, sit amet

and so far it has been impossible for me to set up \setupitemize to do what I 
want.

In descriptive text, what I want is:

1. some global indentation to the left and/or right. That is what the margin= 
key does
2. the symbol (or number) typeset in a specific width. That is the width= key
3. some distance between the number box and the following text. That is the 
distance= key
4. on line 2 and forward to the end of the item, I want a *different* 
indentation from the first item line.

In this particular case, I want no extra indentation except for ‘margin’, but 
in other
cases I may like either more or less indentation than on line 1 of the first 
para of the item.

The desired effect is simple achieve with primitive operations, but I would 
like the input
to look nice (not to mention that I do not want to loose options for 
cross-referencing etc).

   \setupitemize[option=intext]

is nearly right for this case (with indentation equal to the left margin), so I 
assumed I would
be able to tweak that. But the problem there is that while it does 2-4, it 
ignores the extra
indentation required for nested itemizations (it even ignores explicit margin= 
settings for the
nested level). After fighting with this for hours, I am nearly ready to give up.

Anybody have any idea how to get itemizations to do what I want?

MWE attached.

Best wishes,
Taco
PS It seems that “indentnext=no” does not work for nested itemizations?


You can use the "text" option and add \par at the end of each item but 
your requirements (hanging text, different margin and before/after 
ssettings) are easier to solve with a description or enumeration.


\definesymbol
  [taco]
  [{\inframed[frame=off,width=2em,align=flushleft]{\textbullet}}]

\starttext

\samplefile{zapf}

\startitemize[text][symbol=taco]
  \item \samplefile{weisman}\par
  \startitemize
    \item \samplefile{ward}\par
  \stopitemize
\stopitemize

\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] Itemization formatting (different question)

2019-05-29 Thread Hans Hagen

On 5/29/2019 5:20 PM, Taco Hoekwater wrote:

Hi Wolfgang,

So the answer is no right now, then? In that case, I would like to log a formal
feature request ;)

so a nested margin would be enough?


-
  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] Itemization formatting

2019-05-29 Thread Hans Hagen

Hi Taco,

\start

\definesymbol[mystar][\llap{\symbol{star}\hskip10mm}]

\setupitemgroup[itemize][intext,mystar]
\setupitemgroup[itemize][leftmargin=15mm,rightmargin=5mm]
\setupitemgroup[itemize][width=2cm,distance=-25mm]

\startitemize
\startitem
\dorecurse{3}{Taco likes an occasional hack! }
\stopitem
\stopitemize

\stop

\start

\definesymbol[mystar][\rlap{\hskip10mm\symbol{star}}]

\setupitemgroup[itemize][intext,mystar]
\setupitemgroup[itemize][leftmargin=15mm,rightmargin=5mm]
\setupitemgroup[itemize][width=1cm,distance=5mm]

\startitemize
\startitem
\dorecurse{3}{Taco likes an occasional hack! }
\stopitem
\stopitemize

\stop


But what you're actually asking is something hangindent yes?

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] Itemization formatting (different question)

2019-05-29 Thread Taco Hoekwater
Hi Wolfgang,

So the answer is no right now, then? In that case, I would like to log a formal
feature request ;)

Taco



> On 29 May 2019, at 17:14, Wolfgang Schuster 
>  wrote:
> 
> Taco Hoekwater schrieb am 29.05.2019 um 16:20:
>> Hi again,
>> 
>> Another question on nearly the same subject: how can I get nested 
>> itemizations
>> to listen to the before= and after= keys? AFAICT, they always use the 
>> inbetween=
>> instead of above= and below= keys?
> ConTeXt supports before/after values for the inner itemizations but they are 
> hidden by a conditional and there is no official way to change it (e.g. 
> \setupitemize[spacing=local|global] or \setupitemize[method=1|2|3]).
> 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
> ___

Taco Hoekwater
Elvenkind BV




___
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] Itemization formatting (different question)

2019-05-29 Thread Wolfgang Schuster

Taco Hoekwater schrieb am 29.05.2019 um 16:20:

Hi again,

Another question on nearly the same subject: how can I get nested itemizations
to listen to the before= and after= keys? AFAICT, they always use the inbetween=
instead of above= and below= keys?
ConTeXt supports before/after values for the inner itemizations but they 
are hidden by a conditional and there is no official way to change it 
(e.g. \setupitemize[spacing=local|global] or \setupitemize[method=1|2|3]).

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] Itemization formatting

2019-05-29 Thread Taco Hoekwater
Hans,

You missed this bit:


# > #   \setupitemize[option=intext]
# > # 
# > # is nearly right for this case (with indentation equal to the left 
margin), so I assumed I would 
# > # be able to tweak that. But the problem there is that while it does 2-4, 
it ignores the extra 
# > # indentation required for nested itemizations (it even ignores explicit 
margin= settings for the
# > # nested level). After fighting with this for hours, I am nearly ready to 
give up.
# > #


> On 29 May 2019, at 16:59, Hans Hagen  wrote:
> 
> On 5/29/2019 4:15 PM, Taco Hoekwater wrote:
>> Hi all,
>> I must be getting old :(
>> It used to be that I could get ConTeXt to do what I wanted, but that is 
>> increasingly getting harder.
>> Current problem: I would like to have itemizations that behave like in this 
>> dummy
>> ascii formatting:
>>   *   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus 
>> turpis et
>>   nulla venenatis tincidunt. Curabitur sit amet vehicula nisi, sit amet
> \setupitemgroup[itemize][intext,star]
> 
> \setupitemgroup[itemize][intext,star]
> 
> \startitemize% [intext,star]
>\startitem
>\dorecurse{3}{Taco is getting old, very old, very very old! }
>\stopitem
>\startitem
>\dorecurse{3}{Itemize is one of the oldest mechanism! }
>\stopitem
>\startitem
>\dorecurse{3}{Young Wolfgang will answer all his questions! }
>\stopitem
> \stopitemize
> 
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

Taco Hoekwater
Elvenkind BV




___
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] Itemization formatting

2019-05-29 Thread Taco Hoekwater
Hi,


> On 29 May 2019, at 16:53, Tomas Hala  wrote:
> 
> 
> You're right... And this?
> 
> \setupitemize[1][option=intext][margin=1cm]
> \setupitemize[2][option=intext][margin=2cm]

Sorry, no go, intext is back, but the nested margin setting is ignored.
I also tested with

\setupitemize[1][intext][margin=1cm]
\setupitemize[2][intext][margin=2cm]

and 

\setupitemize[1][option=intext,margin=1cm]
\setupitemize[2][option=intext,margin=2cm]

ConText always uses the outermost margin setting only.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemization formatting

2019-05-29 Thread Hans Hagen

On 5/29/2019 4:15 PM, Taco Hoekwater wrote:

Hi all,

I must be getting old :(

It used to be that I could get ConTeXt to do what I wanted, but that is 
increasingly getting harder.

Current problem: I would like to have itemizations that behave like in this 
dummy
ascii formatting:

   *   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus 
turpis et
   nulla venenatis tincidunt. Curabitur sit amet vehicula nisi, sit amet

\setupitemgroup[itemize][intext,star]

\setupitemgroup[itemize][intext,star]

\startitemize% [intext,star]
\startitem
\dorecurse{3}{Taco is getting old, very old, very very old! }
\stopitem
\startitem
\dorecurse{3}{Itemize is one of the oldest mechanism! }
\stopitem
\startitem
\dorecurse{3}{Young Wolfgang will answer all his questions! }
\stopitem
\stopitemize



-
  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] Itemization formatting

2019-05-29 Thread Tomas Hala

You're right... And this?

\setupitemize[1][option=intext][margin=1cm]
\setupitemize[2][option=intext][margin=2cm]

Best wishes,
Tomáš

Wed, May 29, 2019 ve 04:40:09PM +0200 Taco Hoekwater napsal(a):
# Hi,
# 
# Not here. The extra empty brackets seem to ‘destroy’ the option=intext 
# setting, and I am left with a para going like this:
# 
# • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus 
turpis 
#   et nulla venenatis tincidunt. Curabitur sit amet vehicula nisi, sit amet
# 
# instead of 
# 
# • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus 
turpis 
# et nulla venenatis tincidunt. Curabitur sit amet vehicula nisi, sit amet
# 
# (extra empty brackets rarely are without side-effects)
# 
# Best wishes,
# Taco
# 
# 
# > On 29 May 2019, at 16:27, Tomas Hala  wrote:
# > 
# > Hi Taco,
# > 
# > probably, there is missing one pair of []:
# > 
# > \setupitemize[1][][margin=1cm]
# > \setupitemize[2][][margin=2cm]
# > 
# > I tried it with TL2018 and I guess it works.
# > 
# > Best wishes,
# > 
# > Tomáš
# > 
# > 
# > 
# > 
# > Wed, May 29, 2019 ve 04:15:25PM +0200 Taco Hoekwater napsal(a):
# > # Hi all,
# > # 
# > # I must be getting old :( 
# > # 
# > # It used to be that I could get ConTeXt to do what I wanted, but that is 
increasingly getting harder.
# > # 
# > # Current problem: I would like to have itemizations that behave like in 
this dummy
# > # ascii formatting:
# > # 
# > #   *   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec 
dapibus turpis et 
# > #   nulla venenatis tincidunt. Curabitur sit amet vehicula nisi, sit amet
# > # 
# > # and so far it has been impossible for me to set up \setupitemize to do 
what I want.
# > # 
# > # In descriptive text, what I want is:
# > # 
# > # 1. some global indentation to the left and/or right. That is what the 
margin= key does
# > # 2. the symbol (or number) typeset in a specific width. That is the width= 
key
# > # 3. some distance between the number box and the following text. That is 
the distance= key
# > # 4. on line 2 and forward to the end of the item, I want a *different* 
indentation from the first item line. 
# > # 
# > # In this particular case, I want no extra indentation except for ‘margin’, 
but in other
# > # cases I may like either more or less indentation than on line 1 of the 
first para of the item.
# > # 
# > # The desired effect is simple achieve with primitive operations, but I 
would like the input
# > # to look nice (not to mention that I do not want to loose options for 
cross-referencing etc).
# > # 
# > #   \setupitemize[option=intext]
# > # 
# > # is nearly right for this case (with indentation equal to the left 
margin), so I assumed I would 
# > # be able to tweak that. But the problem there is that while it does 2-4, 
it ignores the extra 
# > # indentation required for nested itemizations (it even ignores explicit 
margin= settings for the
# > # nested level). After fighting with this for hours, I am nearly ready to 
give up.
# > # 
# > # Anybody have any idea how to get itemizations to do what I want?
# > # 
# > # MWE attached.
# > # 
# > # Best wishes,
# > # Taco
# > # PS It seems that “indentnext=no” does not work for nested itemizations?
# > 
# > 
# > 
# > # 
# > # 
# > # 
# > # 
# > # 
# > 
# > # 
___
# > # 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
# > # 
___
# > 
# > 
# > Tomáš Hála
# > 
# > Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
# > Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28
# > 
# > http://akela.mendelu.cz/~thala
# > 
___
# > 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
# > 
___
# 
# Taco Hoekwater
# Elvenkind BV
# 
# 
# 
# 
# 
___
# If your question is of interest to others as well, please add an entry to the 
Wiki!
# 
# maillist : ntg-context@ntg.nl / 

Re: [NTG-context] Itemization formatting

2019-05-29 Thread Taco Hoekwater
Hi,

Not here. The extra empty brackets seem to ‘destroy’ the option=intext 
setting, and I am left with a para going like this:

• Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus turpis 
  et nulla venenatis tincidunt. Curabitur sit amet vehicula nisi, sit amet

instead of 

• Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus turpis 
et nulla venenatis tincidunt. Curabitur sit amet vehicula nisi, sit amet

(extra empty brackets rarely are without side-effects)

Best wishes,
Taco


> On 29 May 2019, at 16:27, Tomas Hala  wrote:
> 
> Hi Taco,
> 
> probably, there is missing one pair of []:
> 
> \setupitemize[1][][margin=1cm]
> \setupitemize[2][][margin=2cm]
> 
> I tried it with TL2018 and I guess it works.
> 
> Best wishes,
> 
> Tomáš
> 
> 
> 
> 
> Wed, May 29, 2019 ve 04:15:25PM +0200 Taco Hoekwater napsal(a):
> # Hi all,
> # 
> # I must be getting old :( 
> # 
> # It used to be that I could get ConTeXt to do what I wanted, but that is 
> increasingly getting harder.
> # 
> # Current problem: I would like to have itemizations that behave like in this 
> dummy
> # ascii formatting:
> # 
> #   *   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec 
> dapibus turpis et 
> #   nulla venenatis tincidunt. Curabitur sit amet vehicula nisi, sit amet
> # 
> # and so far it has been impossible for me to set up \setupitemize to do what 
> I want.
> # 
> # In descriptive text, what I want is:
> # 
> # 1. some global indentation to the left and/or right. That is what the 
> margin= key does
> # 2. the symbol (or number) typeset in a specific width. That is the width= 
> key
> # 3. some distance between the number box and the following text. That is the 
> distance= key
> # 4. on line 2 and forward to the end of the item, I want a *different* 
> indentation from the first item line. 
> # 
> # In this particular case, I want no extra indentation except for ‘margin’, 
> but in other
> # cases I may like either more or less indentation than on line 1 of the 
> first para of the item.
> # 
> # The desired effect is simple achieve with primitive operations, but I would 
> like the input
> # to look nice (not to mention that I do not want to loose options for 
> cross-referencing etc).
> # 
> #   \setupitemize[option=intext]
> # 
> # is nearly right for this case (with indentation equal to the left margin), 
> so I assumed I would 
> # be able to tweak that. But the problem there is that while it does 2-4, it 
> ignores the extra 
> # indentation required for nested itemizations (it even ignores explicit 
> margin= settings for the
> # nested level). After fighting with this for hours, I am nearly ready to 
> give up.
> # 
> # Anybody have any idea how to get itemizations to do what I want?
> # 
> # MWE attached.
> # 
> # Best wishes,
> # Taco
> # PS It seems that “indentnext=no” does not work for nested itemizations?
> 
> 
> 
> # 
> # 
> # 
> # 
> # 
> 
> # 
> ___
> # 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
> # 
> ___
> 
> 
> Tomáš Hála
> 
> Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
> Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28
> 
> http://akela.mendelu.cz/~thala
> ___
> 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
> ___

Taco Hoekwater
Elvenkind BV




___
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] Itemization formatting

2019-05-29 Thread Tomas Hala
Hi Taco,

probably, there is missing one pair of []:

\setupitemize[1][][margin=1cm]
\setupitemize[2][][margin=2cm]

I tried it with TL2018 and I guess it works.

Best wishes,

Tomáš




Wed, May 29, 2019 ve 04:15:25PM +0200 Taco Hoekwater napsal(a):
# Hi all,
# 
# I must be getting old :( 
# 
# It used to be that I could get ConTeXt to do what I wanted, but that is 
increasingly getting harder.
# 
# Current problem: I would like to have itemizations that behave like in this 
dummy
# ascii formatting:
# 
#   *   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus 
turpis et 
#   nulla venenatis tincidunt. Curabitur sit amet vehicula nisi, sit amet
# 
# and so far it has been impossible for me to set up \setupitemize to do what I 
want.
# 
# In descriptive text, what I want is:
# 
# 1. some global indentation to the left and/or right. That is what the margin= 
key does
# 2. the symbol (or number) typeset in a specific width. That is the width= key
# 3. some distance between the number box and the following text. That is the 
distance= key
# 4. on line 2 and forward to the end of the item, I want a *different* 
indentation from the first item line. 
# 
# In this particular case, I want no extra indentation except for ‘margin’, but 
in other
# cases I may like either more or less indentation than on line 1 of the first 
para of the item.
# 
# The desired effect is simple achieve with primitive operations, but I would 
like the input
# to look nice (not to mention that I do not want to loose options for 
cross-referencing etc).
# 
#   \setupitemize[option=intext]
# 
# is nearly right for this case (with indentation equal to the left margin), so 
I assumed I would 
# be able to tweak that. But the problem there is that while it does 2-4, it 
ignores the extra 
# indentation required for nested itemizations (it even ignores explicit 
margin= settings for the
# nested level). After fighting with this for hours, I am nearly ready to give 
up.
# 
# Anybody have any idea how to get itemizations to do what I want?
# 
# MWE attached.
# 
# Best wishes,
# Taco
# PS It seems that “indentnext=no” does not work for nested itemizations?



# 
# 
# 
# 
# 

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


 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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] Itemization formatting (different question)

2019-05-29 Thread Taco Hoekwater
Hi again,

Another question on nearly the same subject: how can I get nested itemizations
to listen to the before= and after= keys? AFAICT, they always use the inbetween=
instead of above= and below= keys?

Best wishes as always,
Taco


itemtest2.pdf
Description: Adobe PDF document


itemtest2.tex
Description: Binary data




___
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] Itemization formatting

2019-05-29 Thread Taco Hoekwater
Hi all,

I must be getting old :( 

It used to be that I could get ConTeXt to do what I wanted, but that is 
increasingly getting harder.

Current problem: I would like to have itemizations that behave like in this 
dummy
ascii formatting:

  *   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus 
turpis et 
  nulla venenatis tincidunt. Curabitur sit amet vehicula nisi, sit amet

and so far it has been impossible for me to set up \setupitemize to do what I 
want.

In descriptive text, what I want is:

1. some global indentation to the left and/or right. That is what the margin= 
key does
2. the symbol (or number) typeset in a specific width. That is the width= key
3. some distance between the number box and the following text. That is the 
distance= key
4. on line 2 and forward to the end of the item, I want a *different* 
indentation from the first item line. 

In this particular case, I want no extra indentation except for ‘margin’, but 
in other
cases I may like either more or less indentation than on line 1 of the first 
para of the item.

The desired effect is simple achieve with primitive operations, but I would 
like the input
to look nice (not to mention that I do not want to loose options for 
cross-referencing etc).

  \setupitemize[option=intext]

is nearly right for this case (with indentation equal to the left margin), so I 
assumed I would 
be able to tweak that. But the problem there is that while it does 2-4, it 
ignores the extra 
indentation required for nested itemizations (it even ignores explicit margin= 
settings for the
nested level). After fighting with this for hours, I am nearly ready to give up.

Anybody have any idea how to get itemizations to do what I want?

MWE attached.

Best wishes,
Taco
PS It seems that “indentnext=no” does not work for nested itemizations?


itemtest.pdf
Description: Adobe PDF document


itemtest.tex
Description: Binary data





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

2015-03-12 Thread MANUEL GONZALEZ SUAREZ
Thanks very much, Wolfgang.


De: ntg-context  en nombre de Wolfgang Schuster 

Enviado: jueves, 12 de marzo de 2015 10:13
Para: mailing list for ConTeXt users
Asunto: Re: [NTG-context] Itemization

> Am 12.03.2015 um 10:49 schrieb Mikael P. Sundqvist :
>
> On Thu, Mar 12, 2015 at 10:39 AM, MANUEL GONZALEZ SUAREZ
>  wrote:
>> Dear friends.
>> I have one basic question, but I'm not very skilled in ConTeXt: How I can do
>> that in a list, display each of the items with a lowercase Greek letter
>> followed by a parenthesis?
>> That is:
>>
>>
>> alpha)
>> beta)
>> etc.
>>
>> Thanks very much.
>>
>>
>> ___
>> 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://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___
>
> This works here:
>
> \setupbodyfont[pagella]
>
> \starttext
> \startitemize[g][,stopper=,right=)]
> \item Hellow
> \item Hi
> \item Good bye
> \stopitemize
> \stoptext
>
> I think you have to use a font that has the lower case greek letters 
> available.


For Latin Modern you can use the mathgreek conversion which uses the math font.

\starttext
\startitemize[mathgreek][,stopper=,right=)]
\item Hellow
\item Hi
\item Good bye
\stopitemize
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemization

2015-03-12 Thread Wolfgang Schuster

> Am 12.03.2015 um 10:49 schrieb Mikael P. Sundqvist :
> 
> On Thu, Mar 12, 2015 at 10:39 AM, MANUEL GONZALEZ SUAREZ
>  wrote:
>> Dear friends.
>> I have one basic question, but I'm not very skilled in ConTeXt: How I can do
>> that in a list, display each of the items with a lowercase Greek letter
>> followed by a parenthesis?
>> That is:
>> 
>> 
>> alpha)
>> beta)
>> etc.
>> 
>> Thanks very much.
>> 
>> 
>> ___
>> 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://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___
> 
> This works here:
> 
> \setupbodyfont[pagella]
> 
> \starttext
> \startitemize[g][,stopper=,right=)]
> \item Hellow
> \item Hi
> \item Good bye
> \stopitemize
> \stoptext
> 
> I think you have to use a font that has the lower case greek letters 
> available.


For Latin Modern you can use the mathgreek conversion which uses the math font.

\starttext
\startitemize[mathgreek][,stopper=,right=)]
\item Hellow
\item Hi
\item Good bye
\stopitemize
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemization

2015-03-12 Thread Mikael P. Sundqvist
On Thu, Mar 12, 2015 at 10:39 AM, MANUEL GONZALEZ SUAREZ
 wrote:
> Dear friends.
> I have one basic question, but I'm not very skilled in ConTeXt: How I can do
> that in a list, display each of the items with a lowercase Greek letter
> followed by a parenthesis?
> That is:
>
>
>  alpha)
> beta)
> etc.
>
> Thanks very much.
>
>
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

This works here:

\setupbodyfont[pagella]

\starttext
\startitemize[g][,stopper=,right=)]
\item Hellow
\item Hi
\item Good bye
\stopitemize
\stoptext

I think you have to use a font that has the lower case greek letters available.

/Mikael
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Itemization

2015-03-12 Thread MANUEL GONZALEZ SUAREZ
Dear friends.
I have one basic question, but I'm not very skilled in ConTeXt: How I can do 
that in a list, display each of the items with a lowercase Greek letter 
followed by a parenthesis?
That is:


 alpha)
beta)
etc.

Thanks very much.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Itemization and [continue] parameter

2013-02-23 Thread Sergey
Dear all,

While trying to continue itemized list as follows:

 \starttext

\startitemize[1,unpacked]

\item First item

\startitemize[a,unpacked]

\item First sub-item

\item Second sub-item

\stopitemize

\item Second item

\startitemize[continue]

\item Third sub-item

\item Fourth sub-item

\stopitemize

\stopitemize

\stoptext

What I get is the following:

* First item
   a. First sub-item
   b. Second sub-item
* Second item
   a. Third sub-item
   b. Fourth sub-item

While I was expecting to receive:

* First item
   a. First sub-item
   b. Second sub-item
* Second item
   c. Third sub-item
   d. Fourth sub-item

I use FreeBSD 9.1 and the output of context --version is:

mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | main context file:
/usr/local/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2013.02.18 15:46

Is there something I do wrong?
Please advise

---
Sergey
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemization vs itemization inside a tabulation stuggles

2011-08-04 Thread Willi Egger
Ok I added a section to the wiki page over tabulation. 

Willi
On 3 Aug 2011, at 23:03, Hans Hagen wrote:

> \tabulatesplitlinemode \plustwo

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemization vs itemization inside a tabulation stuggles

2011-08-03 Thread Hans Hagen

On 3-8-2011 10:15, Hans Hagen wrote:


\setconstant \tabulatesplitlinemode \plustwo


just \tabulatesplitlinemode \plustwo

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemization vs itemization inside a tabulation stuggles

2011-08-03 Thread Hans Hagen

On 30-7-2011 10:12, Wolfgang Schuster wrote:


Am 29.07.2011 um 23:06 schrieb Willi Egger:


Hi

I have a document where I use itemizations inside a tabulation. In this case 
the \head command is not respected and it overwrites the previous item.

Please refer to the enclosed example.

What am I doing wrong or is this a bug?



A bug. I can’t offer you a fix but I made a minimal example where you can see 
the effect without itemize:


A while ago I added an option for Thomas that bypasses the snapper (in 
Willis case the head and in your case the penalties force a twoline 
split which then overlaps du eto snapping). You can influence this with:


\setconstant \tabulatesplitlinemode \plustwo

(Not interfaced ... low level tweaking ... but stable. So, Willi should 
wikify it.)



\starttext

\section{Test}

\starttabulate[|p|]
\NC
one \par
\blank[penalty:1]
two \par
\blank[penalty:1]
three
\NC\NR
\stoptabulate

\page

\section{Test}

\starttabulate[|p|]
\NC
one \par
%\blank[penalty:1]
two \par
\blank[penalty:1]
three
\NC\NR
\stoptabulate

\page

\section{Test}

\starttabulate[|p|]
\NC
one \par
\blank[penalty:1]
two \par
%\blank[penalty:1]
three
\NC\NR
\stoptabulate

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemization vs itemization inside a tabulation stuggles

2011-08-03 Thread Hans Hagen

On 30-7-2011 10:12, Wolfgang Schuster wrote:


Am 29.07.2011 um 23:06 schrieb Willi Egger:


Hi

I have a document where I use itemizations inside a tabulation. In this case 
the \head command is not respected and it overwrites the previous item.

Please refer to the enclosed example.

What am I doing wrong or is this a bug?



A bug. I can’t offer you a fix but I made a minimal example where you can see 
the effect without itemize:


even more fun with \showframe



\starttext

\section{Test}

\starttabulate[|p|]
\NC
one \par
\blank[penalty:1]
two \par
\blank[penalty:1]
three
\NC\NR
\stoptabulate

\page

\section{Test}

\starttabulate[|p|]
\NC
one \par
%\blank[penalty:1]
two \par
\blank[penalty:1]
three
\NC\NR
\stoptabulate

\page

\section{Test}

\starttabulate[|p|]
\NC
one \par
\blank[penalty:1]
two \par
%\blank[penalty:1]
three
\NC\NR
\stoptabulate

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemization vs itemization inside a tabulation stuggles

2011-08-03 Thread Hans Hagen

On 29-7-2011 11:06, Willi Egger wrote:

Hi

I have a document where I use itemizations inside a tabulation. In this case 
the \head command is not respected and it overwrites the previous item.

Please refer to the enclosed example.

What am I doing wrong or is this a bug?


As Wolfgang pointed out .. a side effect of the splitter in tabulate.

Workaround:

   \head Hufe aufhalten \crlf \par

or just

   \item Hufe anhalten

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemization vs itemization inside a tabulation stuggles

2011-07-30 Thread Wolfgang Schuster

Am 29.07.2011 um 23:06 schrieb Willi Egger:

> Hi
> 
> I have a document where I use itemizations inside a tabulation. In this case 
> the \head command is not respected and it overwrites the previous item. 
> 
> Please refer to the enclosed example.
> 
> What am I doing wrong or is this a bug?


A bug. I can’t offer you a fix but I made a minimal example where you can see 
the effect without itemize:

\starttext

\section{Test}

\starttabulate[|p|]
\NC
one \par
\blank[penalty:1]
two \par
\blank[penalty:1]
three
\NC\NR
\stoptabulate

\page

\section{Test}

\starttabulate[|p|]
\NC
one \par
%\blank[penalty:1]
two \par
\blank[penalty:1]
three
\NC\NR
\stoptabulate

\page

\section{Test}

\starttabulate[|p|]
\NC
one \par
\blank[penalty:1]
two \par
%\blank[penalty:1]
three
\NC\NR
\stoptabulate

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] itemization vs itemization inside a tabulation stuggles

2011-07-29 Thread Willi Egger
Hi

I have a document where I use itemizations inside a tabulation. In this case 
the \head command is not respected and it overwrites the previous item. 

Please refer to the enclosed example.

What am I doing wrong or is this a bug?

Kind regards

Willi



test-itemize.pdf
Description: Adobe PDF document


test-itemize.tex
Description: Binary data
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___