[NTG-context] Re: no packed in current latest (LMTX only)

2023-09-04 Thread Hans Hagen via ntg-context

On 9/4/2023 6:12 PM, Pablo Rodriguez wrote:

Dear list,

after updating to current latest (from 2023.09.03 19:03), packed list
doesn’t seem to work in LMTX:

   \starttext
   \startTEXpage[offset=1em]
   \startitemize[packed]
   \item item
   \item item
   \stopitemize
   \stopTEXpage
   \stoptext

MkIV gets packed lists just right.

Could anyone confirm this?

Many thanks for your help,
hm, accidently removed line ... (there have been some 'additions' to 
itemize wrt tabulated items which makes things even more complex)


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

[NTG-context] Re: no packed in current latest (LMTX only)

2023-09-04 Thread Rik Kabel


On 9/4/2023 12:12 PM, Pablo Rodriguez wrote:

Dear list,

after updating to current latest (from 2023.09.03 19:03), packed list
doesn’t seem to work in LMTX:

   \starttext
   \startTEXpage[offset=1em]
   \startitemize[packed]
   \item item
   \item item
   \stopitemize
   \stopTEXpage
   \stoptext

MkIV gets packed lists just right.

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



I can confirm the problem.

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

[NTG-context] no packed in current latest (LMTX only)

2023-09-04 Thread Pablo Rodriguez
Dear list,

after updating to current latest (from 2023.09.03 19:03), packed list
doesn’t seem to work in LMTX:

  \starttext
  \startTEXpage[offset=1em]
  \startitemize[packed]
  \item item
  \item item
  \stopitemize
  \stopTEXpage
  \stoptext

MkIV gets packed lists just right.

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://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] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Pablo Rodriguez
On 9/3/20 8:09 PM, Hans Hagen wrote:
> On 9/3/2020 4:52 PM, Pablo Rodriguez wrote:
>> [...]
>> I’m afraid that packed item lists are misbehaving.
>>
>> Could anyone confirm this?
> can you check again (new lmtx)

Many thanks for the new upload, Hans.

Now packed lists work as expected.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Hans Hagen

On 9/3/2020 4:52 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \starttext
 \startitemize[n]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize

 \startitemize[a, packed]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize
 \stoptext

I’m afraid that packed item lists are misbehaving.

Could anyone confirm this?

can you check again (new lmtx)

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] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Hans Hagen

On 9/3/2020 4:52 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \starttext
 \startitemize[n]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize

 \startitemize[a, packed]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize
 \stoptext

I’m afraid that packed item lists are misbehaving.

Could anyone confirm this?
hm, seems that i deleted a line somewhere ... fix later (took me a while 
as this is the only affected feature)


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
___


[NTG-context] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\starttext
\startitemize[n]
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\stopitemize

\startitemize[a, packed]
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\stopitemize
\stoptext

I’m afraid that packed item lists are misbehaving.

Could anyone confirm this?

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] something between packed and "small"??

2020-07-01 Thread Wolfgang Schuster

Mike Cooper schrieb am 01.07.2020 um 22:30:

-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Henning
Hraban Ramm
Sent: Wednesday, July 01, 2020 1:30 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] something between packed and "small"??



Am 01.07.2020 um 21:04 schrieb Mike Cooper

:

Me again…

I’ve got an itemize that needs to fit on one page.  I’ve been using

inbetween={\blank[small]} for all the other analogous lists but this one is 
longer and
with that spacing, it goes about one inch onto the next page.  But if I use 
packed,
the list is way too crammed together and there’s about 2.5 inches of extra 
space on
the page!

How do I go smaller than small?  Is there a “lightly packed”?  Or other degrees?

I’ve tried \blank[1mm] and other dimensions but nothing will go smaller than

small…  :-(

\blank understands an arbitrary measure, e.g. \blank[3pt] or \blank[0.25em]

Probably also \blank[0.5*small] works (didn’t check, but \blank[3*big] works).

Otherwise see https://wiki.contextgarden.net/Command/blank

Hraban


Thanks Hraban,

These don't work though...  It appears that a decimal will work with a dimension (like 
em) but not with small.  \blank[0.5*small] causes this "fatal error":

  ["lasttexerror"]="! Illegal unit of measure (pt inserted)",

The number before the asterisk is a multiplier to repeat the value n times.

I had tried em then pt, then mm.  But it won't get any smaller than small = 3mm 
= 10pt = 0.9em = small.  Except packed, that is...

Surely there is something in between small and packed??
The value for small is font dependent which results with the default 
font and size. When you check the value you can see it is slightly 
smaller than 1mm which means when you use \blank[1mm] your manual 
setting is too large.


\starttext

\the\smallskipamount

\PtToCm{\the\dimexpr\smallskipamount\relax}

\the\dimexpr0.5ex\relax

\stoptext


I looked at the Command/blank page multiple times and searched the wiki and the 
web in every way I could think of.  I only ask the list when I absolutely can't 
find anything.  (Of course, at least once, it was there where I had already 
looked but I didn't understand enough to realize it!)  I even gave searching 
the mailing list archives a shot.


\starttext

\startitemize
\startitem First item \stopitem
\startitem Second item \stopitem
\startitem Third item \stopitem
\stopitemize

\startitemize[inbetween={\blank[small]}]
\startitem First item \stopitem
\startitem Second item \stopitem
\startitem Third item \stopitem
\stopitemize

\startitemize[inbetween={\blank[1.5pt]}]
\startitem First item \stopitem
\startitem Second item \stopitem
\startitem Third item \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] something between packed and "small"??

2020-07-01 Thread Mike Cooper


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Henning
> Hraban Ramm
> Sent: Wednesday, July 01, 2020 1:30 PM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] something between packed and "small"??
> 
> 
> > Am 01.07.2020 um 21:04 schrieb Mike Cooper
> :
> >
> > Me again…
> >
> > I’ve got an itemize that needs to fit on one page.  I’ve been using
> inbetween={\blank[small]} for all the other analogous lists but this one is 
> longer and
> with that spacing, it goes about one inch onto the next page.  But if I use 
> packed,
> the list is way too crammed together and there’s about 2.5 inches of extra 
> space on
> the page!
> >
> > How do I go smaller than small?  Is there a “lightly packed”?  Or other 
> > degrees?
> >
> > I’ve tried \blank[1mm] and other dimensions but nothing will go smaller than
> small…  :-(
> 
> \blank understands an arbitrary measure, e.g. \blank[3pt] or \blank[0.25em]
> 
> Probably also \blank[0.5*small] works (didn’t check, but \blank[3*big] works).
> 
> Otherwise see https://wiki.contextgarden.net/Command/blank
> 
> Hraban


Thanks Hraban,

These don't work though...  It appears that a decimal will work with a 
dimension (like em) but not with small.  \blank[0.5*small] causes this "fatal 
error":

 ["lasttexerror"]="! Illegal unit of measure (pt inserted)",

I had tried em then pt, then mm.  But it won't get any smaller than small = 3mm 
= 10pt = 0.9em = small.  Except packed, that is...

Surely there is something in between small and packed??

I looked at the Command/blank page multiple times and searched the wiki and the 
web in every way I could think of.  I only ask the list when I absolutely can't 
find anything.  (Of course, at least once, it was there where I had already 
looked but I didn't understand enough to realize it!)  I even gave searching 
the mailing list archives a shot.

Thanks again!



___
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] something between packed and "small"??

2020-07-01 Thread Henning Hraban Ramm


> Am 01.07.2020 um 21:04 schrieb Mike Cooper 
> :
> 
> Me again…
>  
> I’ve got an itemize that needs to fit on one page.  I’ve been using 
> inbetween={\blank[small]} for all the other analogous lists but this one is 
> longer and with that spacing, it goes about one inch onto the next page.  But 
> if I use packed, the list is way too crammed together and there’s about 2.5 
> inches of extra space on the page!
>  
> How do I go smaller than small?  Is there a “lightly packed”?  Or other 
> degrees?
>  
> I’ve tried \blank[1mm] and other dimensions but nothing will go smaller than 
> small…  :-(

\blank understands an arbitrary measure, e.g. \blank[3pt] or \blank[0.25em]

Probably also \blank[0.5*small] works (didn’t check, but \blank[3*big] works).

Otherwise see https://wiki.contextgarden.net/Command/blank

Hraban

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

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


[NTG-context] something between packed and "small"??

2020-07-01 Thread Mike Cooper
Me again...

I've got an itemize that needs to fit on one page.  I've been using 
inbetween={\blank[small]} for all the other analogous lists but this one is 
longer and with that spacing, it goes about one inch onto the next page.  But 
if I use packed, the list is way too crammed together and there's about 2.5 
inches of extra space on the page!

How do I go smaller than small?  Is there a "lightly packed"?  Or other degrees?

I've tried \blank[1mm] and other dimensions but nothing will go smaller than 
small...  :-(

THANKS FOR YOUR HELP!!


Mike Cooper
Technical Trainer
Murchison Drilling Schools, Inc.
2501 Juan Tabo NE
Albuquerque, NM 87112
Tel: (505) 293-6271
Fax: (505) 298-5294
Email: 
m...@murchisondrillingschools.com<mailto:m...@murchisondrillingschools.com>
Website: 
www.murchisondrillingschools.com<http://www.murchisondrillingschools.com/>
[cid:image007.jpg@01D03ADC.BD6E6850]<https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622>
  [cid:image008.jpg@01D03ADC.BD6E6850] 
<http://www.linkedin.com/company/murchison-drilling-schools-inc->   
[cid:image009.jpg@01D03ADC.BD6E6850] <https://twitter.com/trainingmds>
Murchison Drilling Schools is now part of
[cid:image001.png@01D63515.857FD120]

___
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] packed list only if items > 5

2019-11-15 Thread Hans Hagen

On 11/14/2019 9:07 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \starttext
 \startitemize[\ifnum\currentnofitems>5 packed\fi]
 \dorecurse{7}
 {\startitem\currentitemnumber/\currentnofitems\stopitem}
 \stopitemize
 \stoptext

Is there any way to get a packed list if and only if it contains more
than a given number of items?


It could be some option (but as there is an underlying changed needed i 
want to discuss it with WS first, as we don't want compatibility 
issues), think of something:


\startitemize[packed][packcriterium=5]
\dorecurse{7}{\startitem\currentitemnumber/\currentnofitems\stopitem}
\stopitemize



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] packed list only if items > 5

2019-11-14 Thread Tomas Hala
Hi Pablo,

I am not sure if the itemize environment can be configured on the fly.

The following code should solve your problem:


\definecounter[minforpacked] \setcounter[minforpacked][5]

\def\mystartitemize#1\stopitemize{%
\definecounter[mycounter]
{\def\startitem##1\stopitem{\incrementcounter[mycounter]}#1}
\ifnum \rawcountervalue[mycounter]>\rawcountervalue[minforpacked] 
\setupitemize[packed]\fi
\startitemize#1\stopitemize}

\starttext

\mystartitemize %normal
\dorecurse{2}{\startitem text\stopitem}
\stopitemize
\thinrule
\mystartitemize %packed
\dorecurse{7}{\startitem text\stopitem}
\stopitemize

\stoptext


Best wishes,

Tomáš 

Thu, Nov 14, 2019 ve 09:07:21PM +0100 Pablo Rodriguez napsal(a):
# Dear list,
# 
# I have the following sample:
# 
# \starttext
# \startitemize[\ifnum\currentnofitems>5 packed\fi]
# \dorecurse{7}
# {\startitem\currentitemnumber/\currentnofitems\stopitem}
# \stopitemize
# \stoptext
# 
# Is there any way to get a packed list if and only if it contains more
# than a given number of items?
# 
# Many thanks for your help,
# 
# Pablo
# --
# http://www.ousia.tk
# 
___
# If your question is of interest to others as well, please add an entry to the 
Wiki!
# 
# maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
# webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
# archive  : https://bitbucket.org/phg/context-mirror/commits/
# wiki : http://contextgarden.net
# 
___

 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
___


[NTG-context] packed list only if items > 5

2019-11-14 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\starttext
\startitemize[\ifnum\currentnofitems>5 packed\fi]
\dorecurse{7}
{\startitem\currentitemnumber/\currentnofitems\stopitem}
\stopitemize
\stoptext

Is there any way to get a packed list if and only if it contains more
than a given number of items?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] packed slashes and hyphenate after slash in urls

2017-08-12 Thread Pablo Rodriguez
Hans,

I have the following sample:

\setuppapersize[A8]
%~ \enabledirectives[hyphenators.urls.packslashes]
\sethyphenatedurlafter{/}
\starttext
\hsize\zeropoint
\tt\hyphenatedurl{/home//user/Documents/},
\stoptext

To prevent having http:// (or similar protocols) with one slash ending
one line and other beginning the next one, I have to use the commented
directive.

But the directive only works if \setuphypenatedafter (or before) doesn’t
contain the slide between its characters.

The sample above shows, how not setting \setuphyphenatedurlafter{/}, may
start the line with "/,"

Would it be possible that both options were available: packed slashes
and hyphenation after (or before) the slash, both in urls?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] packed lists in XML

2015-03-23 Thread Hans Hagen

On 3/22/2015 1:39 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \startbuffer[demo]
 doc
 pstandard list:/p
 ul
 li
 pitem from loose list/p
 /li
 li
 pitem from loose list/p
 /li
 /ul
 ppacked list:/p
 ul
 liitem from tight list/li
 liitem from tight list/li
 /ul
 /doc
 \stopbuffer

 \startxmlsetups xml:initialize
 \xmlsetsetup{#1}{ul|li|p}{xml:*}
 \stopxmlsetups

 \xmlregistersetup{xml:initialize}

 \startxmlsetups xml:ul
 \startitemize
 \xmlflush{#1}
 \stopitemize
 \stopxmlsetups

 \startxmlsetups xml:ul:packed
 \startitemize[packed]
 \xmlflush{#1}
 \stopitemize
 \stopxmlsetups

 \startxmlsetups xml:li
 \startitem
 \xmlflush{#1}
 \stopitem
 \stopxmlsetups

 \startxmlsetups xml:p
 \xmldoifnotselfempty {#1} {
 \dontleavehmode
 \ignorespaces
 \xmlflush{#1}
 \removeunwantedspaces
 }
 \par
 \stopxmlsetups

 \starttext
  \xmlprocessbuffer{main}{demo}{}
 \stoptext

Standard lists are defined in XML code with ul/li/p and packed lists
remove the final /p from the path.

How can I associate the each XML list to its right ConTeXt code?


\startxmlsetups xml:ul
\xmldoifelse{#1}{/li/p}{
\startitemize
\xmlflush{#1}
\stopitemize
} {
\startitemize[packed]
\xmlflush{#1}
\stopitemize
}
\stopxmlsetups



--

-
  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] packed lists in XML

2015-03-23 Thread Pablo Rodriguez
On 03/23/2015 01:01 PM, Hans Hagen wrote:
 On 3/22/2015 1:39 PM, Pablo Rodriguez wrote:
 [...]
 Standard lists are defined in XML code with ul/li/p and packed lists
 remove the final /p from the path.

 How can I associate the each XML list to its right ConTeXt code?
 
 \startxmlsetups xml:ul
  \xmldoifelse{#1}{/li/p}{
  \startitemize
  \xmlflush{#1}
  \stopitemize
  } {
  \startitemize[packed]
  \xmlflush{#1}
  \stopitemize
  }
 \stopxmlsetups

Many thanks for your reply, Hans.

This code will help me to fix ordered lists too.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] packed lists in XML

2015-03-22 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\startbuffer[demo]
doc
pstandard list:/p
ul
li
pitem from loose list/p
/li
li
pitem from loose list/p
/li
/ul
ppacked list:/p
ul
liitem from tight list/li
liitem from tight list/li
/ul
/doc
\stopbuffer

\startxmlsetups xml:initialize
\xmlsetsetup{#1}{ul|li|p}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:initialize}

\startxmlsetups xml:ul
\startitemize
\xmlflush{#1}
\stopitemize
\stopxmlsetups

\startxmlsetups xml:ul:packed
\startitemize[packed]
\xmlflush{#1}
\stopitemize
\stopxmlsetups

\startxmlsetups xml:li
\startitem
\xmlflush{#1}
\stopitem
\stopxmlsetups

\startxmlsetups xml:p
\xmldoifnotselfempty {#1} {
\dontleavehmode
\ignorespaces
\xmlflush{#1}
\removeunwantedspaces
}
\par
\stopxmlsetups

\starttext
 \xmlprocessbuffer{main}{demo}{}
\stoptext

Standard lists are defined in XML code with ul/li/p and packed lists
remove the final /p from the path.

How can I associate the each XML list to its right ConTeXt code?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with setupitemize, columns, and packed?

2014-01-30 Thread Hans Hagen

On 1/30/2014 1:03 AM, Casey Jones wrote:

The following MWE doesn't print item two when using the packed option
with three columns.

\starttext
% correct
\startitemize[columns, three]
\startitem one \stopitem
\startitem two \stopitem
\startitem three \stopitem
\startitem four \stopitem
\startitem five \stopitem
\stopitemize

% item two not printed
\startitemize[columns, three, packed]
\startitem one \stopitem
\startitem two \stopitem
\startitem three \stopitem
\startitem four \stopitem
\startitem five \stopitem
\stopitemize
\stoptext

I'm using ConTeXt  ver: 2014.01.29 23:48 MKIV beta  fmt: 2014.1.29
int: english/english

Is this a bug or do I misunderstand the options for setupitemize?


bug

fixed in next beta

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
___


[NTG-context] Problem with setupitemize, columns, and packed?

2014-01-29 Thread Casey Jones
The following MWE doesn't print item two when using the packed option
with three columns.

\starttext
% correct
\startitemize[columns, three]
\startitem one \stopitem
\startitem two \stopitem
\startitem three \stopitem
\startitem four \stopitem
\startitem five \stopitem
\stopitemize

% item two not printed
\startitemize[columns, three, packed]
\startitem one \stopitem
\startitem two \stopitem
\startitem three \stopitem
\startitem four \stopitem
\startitem five \stopitem
\stopitemize
\stoptext

I'm using ConTeXt  ver: 2014.01.29 23:48 MKIV beta  fmt: 2014.1.29
int: english/english

Is this a bug or do I misunderstand the options for setupitemize?

Thanks,
Casey


S Casey Jones
Math Teacher and Department Chair
Hillgrove High School | Powder Springs, Georgia | USA
___
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] packed itemize and beforehead

2010-04-20 Thread Honza Pohanka

Following construction does not work for me.

\setupitemize[each][packed][beforehead={}]

Is there any possibility to suppress the vertical space around \head in  
packed itemize?

(latest MKII)

greetings Jan


--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/

___
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] Problem with packed and \space / broad and /nospace

2009-02-23 Thread Bernd Kosubek
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hallo all!

The following lines demonstrates my problem:

{
  \setupspacing[packed]
  \startalignment[right]
 .
   .
   .

 .
   .\space{}
   .
  \stopalignment
}

{
  \setupspacing[broad]
  \startalignment[right]
 .
   .
   .

 .
   .\nospace{}
   .
  \stopalignment
}
\stoptext

In my mind, the first line should be the shortest (no 
additional spacing).
 
The length of the second line must be longer (additional 
spacing after the second sentence).

The length of the third line must be longer than that of the 
second line (additional spacing between every sentence).

And the fourth line must be shorter than the third line 
(same length as the first line).

If I run texexec over this, the last three line are longer 
than the first line AND they have the same lengths.

What have I not understand -- or is it a known problem or a 
bug?

- -- 
Bernd Kosubek

Unsigned eMail are not from me.

eMail: kosu...@sksatz.com
Fingerprint: C121 F3C2 A6DD 1ACD A9BC F0AF 1289 2AEC B7C4 
D63B

URL: http://www.sksatz.com

Keyserver: blackhole.pca.dfn.de (oder andere)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFJowywEokq7LfE1jsRAvFaAJ9/MZbXAgNZ7PcgQiZtCzE1jq5ZAgCfZ0Lz
3ftR6JipB5c2stVcKNwwNzQ=
=NGjT
-END PGP SIGNATURE-

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


Re: [NTG-context] Problem with packed and \space / broad and /nospace

2009-02-23 Thread Wolfgang Schuster


Am 23.02.2009 um 21:52 schrieb Bernd Kosubek:


If I run texexec over this, the last three line are longer
than the first line AND they have the same lengths.

What have I not understand -- or is it a known problem or a
bug?


You get what you write.

2. Sentence: \space{} = 2 spaces because of the {}

3. Sentence: Wide than the first sentence because of the disabled  
frenchspacing


4. Sentence: You write \nospace but insert a space with {}

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


Re: [NTG-context] Problem with packed and \space / broad and /nospace

2009-02-23 Thread Bernd Kosubek
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 23. Februar 2009 21:56 schrieb Wolfgang Schuster:
 Am 23.02.2009 um 21:52 schrieb Bernd Kosubek:
  If I run texexec over this, the last three line are
  longer than the first line AND they have the same
  lengths.
 
  What have I not understand -- or is it a known problem
  or a bug?

 You get what you write.

 2. Sentence: \space{} = 2 spaces because of the {}

 3. Sentence: Wide than the first sentence because of the
 disabled frenchspacing

 4. Sentence: You write \nospace but insert a space with
 {}

 Wolfgang

Thank You for the quick answer.

I don't  understand where the second space should be come 
from.
I use the empty group {} always to separate optionless 
commands.

I think it is the same whether I write:

. . or
xxxy.{} . or
.
. or
.{}
.

If I use

.\space  or .\space{} 

the first \space produce NO space (that is not what I wish)

I suppose, that the empty group has no effect.
The following space will be printed and THIS space should be 
smaller in an broad-environment if I use \nospace or larger 
in an packed-environment if I use \space.

- -- 
Bernd Kosubek

Unsigned eMail are not from me.

eMail: kosu...@sksatz.com
Fingerprint: C121 F3C2 A6DD 1ACD A9BC F0AF 1289 2AEC B7C4 
D63B

URL: http://www.sksatz.com

Keyserver: blackhole.pca.dfn.de (oder andere)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFJoxafEokq7LfE1jsRAjXLAKCHuX5TDHnEfKscgY02u+DoLSZXVgCffQRA
AncnhYSkHngDZV57RKRnPdQ=
=C9Pg
-END PGP SIGNATURE-

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


Re: [NTG-context] Problem with packed and \space / broad and /nospace

2009-02-23 Thread Wolfgang Schuster


Am 23.02.2009 um 22:35 schrieb Bernd Kosubek:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 23. Februar 2009 21:56 schrieb Wolfgang Schuster:

Am 23.02.2009 um 21:52 schrieb Bernd Kosubek:

If I run texexec over this, the last three line are
longer than the first line AND they have the same
lengths.

What have I not understand -- or is it a known problem
or a bug?


You get what you write.

2. Sentence: \space{} = 2 spaces because of the {}

3. Sentence: Wide than the first sentence because of the
disabled frenchspacing

4. Sentence: You write \nospace but insert a space with
{}


Thank You for the quick answer.

I don't  understand where the second space should be come
from.
I use the empty group {} always to separate optionless
commands.

I think it is the same whether I write:

. . or
xxxy.{} . or
.
. or
.{}
.

If I use

.\space  or .\space{} 

the first \space produce NO space (that is not what I wish)


Nonsense, the first \space produce a space and the whitespace
in the input between \space and  is gobbled from the macro.

The empty group after the second space prevents TeX from gobbling
the space and you get now one space from the \space command and
another one from the whitespace in the output.


I suppose, that the empty group has no effect.
The following space will be printed and THIS space should be
smaller in an broad-environment if I use \nospace or larger
in an packed-environment if I use \space.


You need a empty group to get a space after commands like \TeX
because the command gobbles otherwise all following whitespace.

Try the following example:

text\relax text\space text\space{}\space{}\space{}\space text

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


Re: [NTG-context] Problem with packed and \space / broad and /nospace

2009-02-23 Thread Bernd Kosubek
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 23. Februar 2009 22:34 schrieb Wolfgang Schuster:


 Nonsense, the first \space produce a space and the
 whitespace in the input between \space and  is
 gobbled from the macro.

 The empty group after the second space prevents TeX from
 gobbling the space and you get now one space from the
 \space command and another one from the whitespace in the
 output.

  I suppose, that the empty group has no effect.
  The following space will be printed and THIS space
  should be smaller in an broad-environment if I use
  \nospace or larger in an packed-environment if I use
  \space.

 You need a empty group to get a space after commands like
 \TeX because the command gobbles otherwise all following
 whitespace.

 Try the following example:

 text\relax text\space text\space{}\space{}\space{}\space
 text

 Wolfgang

Thank you

I think I understand it (I hope so)!

- -- 
Bernd Kosubek

Unsigned eMail are not from me.

eMail: kosu...@sksatz.com
Fingerprint: C121 F3C2 A6DD 1ACD A9BC F0AF 1289 2AEC B7C4 
D63B

URL: http://www.sksatz.com

Keyserver: blackhole.pca.dfn.de (oder andere)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFJoxy1Eokq7LfE1jsRApTQAJ4jil0SnnLmObcG1i00LMvmkwUlhQCaAnMN
SZIqzDxD2ZvA1cVhD0/PuyE=
=J0Ni
-END PGP SIGNATURE-

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


[NTG-context] \setupitemize[packed,paragraph]

2005-07-07 Thread Mojca Miklavec

Why does
\setupitemize[packed,paragraph]
ignore the packed option?

Another way would probably be to say
\setupitemize[packed,joinedup],
but I would only like some additional space after the itemization and 
none before. \setupitemize[joinedup] produces the same result as 
\setupitemize[packed,joinedup], which I also don't really understand.


Is there a way to specify how packed two items are? There is a
packed and unpacked option, but when I'm working with huge fonts (on
slides for example), it would be nice to be able to specify some 
fraction of how well packed two succesive items are.


Thank you,
Mojca

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context