ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* itemize[n] and dejavu fonts
@ 2015-04-07  9:14 Alan BRASLAU
  2015-04-07  9:46 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Alan BRASLAU @ 2015-04-07  9:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

The list spacing parameters (fit) is not right for numbered
itemizations when using the dejavu fonts.

MWE:

\setupbodyfont [dejavu,10pt]
\starttext
\startitemize [n]
\dorecurse{10}{\startitem X\stopitem}
\stoptext


(switching to 100 items is even worse!)

Alan
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: itemize[n] and dejavu fonts
  2015-04-07  9:14 itemize[n] and dejavu fonts Alan BRASLAU
@ 2015-04-07  9:46 ` Wolfgang Schuster
  2015-04-07 10:29   ` Alan BRASLAU
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2015-04-07  9:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 07.04.2015 um 11:14 schrieb Alan BRASLAU <alan.braslau@cea.fr>:
> 
> The list spacing parameters (fit) is not right for numbered
> itemizations when using the dejavu fonts.
> 
> MWE:
> 
> \setupbodyfont [dejavu,10pt]
> \starttext
> \startitemize [n]
> \dorecurse{10}{\startitem X\stopitem}
> \stoptext
> 
> (switching to 100 items is even worse!)

You missed the \stopitemize after the last item.

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: itemize[n] and dejavu fonts
  2015-04-07  9:46 ` Wolfgang Schuster
@ 2015-04-07 10:29   ` Alan BRASLAU
  2015-04-07 10:39     ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Alan BRASLAU @ 2015-04-07 10:29 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

On Tue, 7 Apr 2015 11:46:06 +0200
Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

> > MWE:
> > 
> > \setupbodyfont [dejavu,10pt]
> > \starttext
> > \startitemize [n]
> > \dorecurse{10}{\startitem X\stopitem}
> > \stoptext
> > 
> > (switching to 100 items is even worse!)  
> 
> You missed the \stopitemize after the last item.

Just in the email (and so-called MWE)
but not in the test (and my applications).

Adding the missing \stopitemize in the MWE above
does not change the problem.

Alan
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: itemize[n] and dejavu fonts
  2015-04-07 10:29   ` Alan BRASLAU
@ 2015-04-07 10:39     ` Wolfgang Schuster
  2015-04-07 11:31       ` Alan BRASLAU
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2015-04-07 10:39 UTC (permalink / raw)
  To: Alan Braslau; +Cc: mailing list for ConTeXt users


> Am 07.04.2015 um 12:29 schrieb Alan BRASLAU <alan.braslau@cea.fr>:
> 
> On Tue, 7 Apr 2015 11:46:06 +0200
> Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
> 
>>> MWE:
>>> 
>>> \setupbodyfont [dejavu,10pt]
>>> \starttext
>>> \startitemize [n]
>>> \dorecurse{10}{\startitem X\stopitem}
>>> \stoptext
>>> 
>>> (switching to 100 items is even worse!)  
>> 
>> You missed the \stopitemize after the last item.
> 
> Just in the email (and so-called MWE)
> but not in the test (and my applications).
> 
> Adding the missing \stopitemize in the MWE above
> does not change the problem.

When I add \stopitemize to your example and use the fit option which is missing in your example
there are no problems in the output but you have to use the distance key to put a space between
the last item number and the content.

\setupbodyfont [dejavu,10pt]
\starttext
\startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
\dorecurse{100}{\startitem X\stopitem}
\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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: itemize[n] and dejavu fonts
  2015-04-07 10:39     ` Wolfgang Schuster
@ 2015-04-07 11:31       ` Alan BRASLAU
  2015-04-07 11:37         ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Alan BRASLAU @ 2015-04-07 11:31 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

On Tue, 7 Apr 2015 12:39:08 +0200
Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

> 
> > Am 07.04.2015 um 12:29 schrieb Alan BRASLAU <alan.braslau@cea.fr>:
> > 
> > On Tue, 7 Apr 2015 11:46:06 +0200
> > Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
> > 
> >>> MWE:
> >>> 
> >>> \setupbodyfont [dejavu,10pt]
> >>> \starttext
> >>> \startitemize [n]
> >>> \dorecurse{10}{\startitem X\stopitem}
> >>> \stoptext
> >>> 
> >>> (switching to 100 items is even worse!)  
> >> 
> >> You missed the \stopitemize after the last item.
> > 
> > Just in the email (and so-called MWE)
> > but not in the test (and my applications).
> > 
> > Adding the missing \stopitemize in the MWE above
> > does not change the problem.
> 
> When I add \stopitemize to your example and use the fit option which
> is missing in your example there are no problems in the output but
> you have to use the distance key to put a space between the last item
> number and the content.
> 
> \setupbodyfont [dejavu,10pt]
> \starttext
> \startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
> \dorecurse{100}{\startitem X\stopitem}
> \stopitemize
> \stoptext

"fit" is without effect,
so it is distance= that does not have a reasonable default.

Other fonts are not so bad, but dejavu (which is a bit larger)
looks really bad, by default.

Ala
-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.braslau@cea.fr
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: itemize[n] and dejavu fonts
  2015-04-07 11:31       ` Alan BRASLAU
@ 2015-04-07 11:37         ` Wolfgang Schuster
  2015-04-07 12:16           ` Alan BRASLAU
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2015-04-07 11:37 UTC (permalink / raw)
  To: Alan Braslau; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1619 bytes --]


> Am 07.04.2015 um 13:31 schrieb Alan BRASLAU <alan.braslau@cea.fr>:
> 
> On Tue, 7 Apr 2015 12:39:08 +0200
> Wolfgang Schuster <schuster.wolfgang@gmail.com <mailto:schuster.wolfgang@gmail.com>> wrote:
> 
>> 
>>> Am 07.04.2015 um 12:29 schrieb Alan BRASLAU <alan.braslau@cea.fr>:
>>> 
>>> On Tue, 7 Apr 2015 11:46:06 +0200
>>> Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>>> 
>>>>> MWE:
>>>>> 
>>>>> \setupbodyfont [dejavu,10pt]
>>>>> \starttext
>>>>> \startitemize [n]
>>>>> \dorecurse{10}{\startitem X\stopitem}
>>>>> \stoptext
>>>>> 
>>>>> (switching to 100 items is even worse!)  
>>>> 
>>>> You missed the \stopitemize after the last item.
>>> 
>>> Just in the email (and so-called MWE)
>>> but not in the test (and my applications).
>>> 
>>> Adding the missing \stopitemize in the MWE above
>>> does not change the problem.
>> 
>> When I add \stopitemize to your example and use the fit option which
>> is missing in your example there are no problems in the output but
>> you have to use the distance key to put a space between the last item
>> number and the content.
>> 
>> \setupbodyfont [dejavu,10pt]
>> \starttext
>> \startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
>> \dorecurse{100}{\startitem X\stopitem}
>> \stopitemize
>> \stoptext
> 
> "fit" is without effect,
> so it is distance= that does not have a reasonable default.
> 
> Other fonts are not so bad, but dejavu (which is a bit larger)
> looks really bad, by default.

Can you show your output from the example and tell what you expect from the fit option.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 8908 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: itemize[n] and dejavu fonts
  2015-04-07 11:37         ` Wolfgang Schuster
@ 2015-04-07 12:16           ` Alan BRASLAU
  0 siblings, 0 replies; 7+ messages in thread
From: Alan BRASLAU @ 2015-04-07 12:16 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

On Tue, 7 Apr 2015 13:37:54 +0200
Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

> Can you show your output from the example and tell what you expect
> from the fit option.

For example:

\setupbodyfont [scola,10pt]
\startitemize [n]
...

yields a reasonable output:
10. X

\setupbodyfont [dejavu,10pt]
\startitemize [n]
...

the output is ugly:
10.X
where the period and the X almost touch.

AND if one goes to 100 items, then result is
100.X
where the 0 and the X overlap
(the period is in the right foot of the X).

Using the scola font, the result with 100 is similar to the result with
10 in dejavu, so going to a fourth digit would be just as horrible as
with three digits and dejavu.

\setupbodyfont [whatever]
\startitemize[n,fit]
yields
10.X
with no spacing in all fonts, and this is pretty ugly unless one also
specifies [distance=\spaceamount]. Perhaps this correct (with
distance=, by default) as fit should then fit with no spacing.

HOWEVER,
\startitemize [n]
with no other options should simply work correctly "out of the box" for
all fonts and not give such horrible results.

I understand now: the default is a fixed offset to the list body that
works OK for small itemizations (i.e. one digit) with most fonts and
more-or-less well with two digits, but not with dejavu. Choosing the
option "fit" and setting a "distance" gives a reasonable result, so we
cannot call this a bug, but the result by default is rather surprising.
Notice that \startitemize[R] works poorly with even less than 10 items.

May I suggest that the default spacing (i.e. the list setup) that is
used be enlarged a little bit, as two digit numbered itemizations are
not rare and dejavu is such a useful font. Indeed, this is obtained
with the option "broad". Indeed, in "the manual", broad (and
2*broad) is used in such examples. Perhaps the fixed spacing that is
presently tuned works well with simple symbol item lists and passably
with single digit numbered lists, which probably explains why this is
the default. Also, I suppose that there is some aesthetic value in
having item lists take a fixed, uniform distance by default in a
document which is why "fit" is not a default option. Thus, a design
choice (or compromise).

Moral: read the manual!

Alan
-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.braslau@cea.fr
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-07 12:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-07  9:14 itemize[n] and dejavu fonts Alan BRASLAU
2015-04-07  9:46 ` Wolfgang Schuster
2015-04-07 10:29   ` Alan BRASLAU
2015-04-07 10:39     ` Wolfgang Schuster
2015-04-07 11:31       ` Alan BRASLAU
2015-04-07 11:37         ` Wolfgang Schuster
2015-04-07 12:16           ` Alan BRASLAU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).