ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How can I start wiith 2 in itemize?
@ 2009-09-02 19:56 Xan
  2009-09-02 22:28 ` Peter Rolf
  2009-09-03 12:35 ` Peter Rolf
  0 siblings, 2 replies; 7+ messages in thread
From: Xan @ 2009-09-02 19:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I want to start itemize with 2.
I put \startitemize[n][start=2] but it does not work.

Strange?

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


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

* Re: How can I start wiith 2 in itemize?
  2009-09-02 19:56 How can I start wiith 2 in itemize? Xan
@ 2009-09-02 22:28 ` Peter Rolf
  2009-09-02 23:07   ` Aditya Mahajan
  2009-09-03 12:35 ` Peter Rolf
  1 sibling, 1 reply; 7+ messages in thread
From: Peter Rolf @ 2009-09-02 22:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Xan,

looks like you have to separate the setup in this case.

\starttext
\setupitemize[start=2]
\startitemize[n]
\item foo
\stopitemize
\stoptext


Best wishes,  Peter


Xan schrieb:
> Hi,
>
> I want to start itemize with 2.
> I put \startitemize[n][start=2] but it does not work.
>
> Strange?
>
> Xan.
> ___________________________________________________________________________________ 
>
> 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
> ___________________________________________________________________________________ 
>
>

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


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

* Re: How can I start wiith 2 in itemize?
  2009-09-02 22:28 ` Peter Rolf
@ 2009-09-02 23:07   ` Aditya Mahajan
  0 siblings, 0 replies; 7+ messages in thread
From: Aditya Mahajan @ 2009-09-02 23:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 3 Sep 2009, Peter Rolf wrote:

> Hi Xan,
>
> looks like you have to separate the setup in this case.
>
> \starttext
> \setupitemize[start=2]
> \startitemize[n]
> \item foo
> \stopitemize
> \stoptext

\startitemize[n][start=2] works in mkiv.

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


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

* Re: How can I start wiith 2 in itemize?
  2009-09-02 19:56 How can I start wiith 2 in itemize? Xan
  2009-09-02 22:28 ` Peter Rolf
@ 2009-09-03 12:35 ` Peter Rolf
  2009-09-03 15:59   ` Xan
  2009-09-13 15:02   ` Peter Rolf
  1 sibling, 2 replies; 7+ messages in thread
From: Peter Rolf @ 2009-09-03 12:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Xan

Xan schrieb:
> Hi,
>
> I want to start itemize with 2.
> I put \startitemize[n][start=2] but it does not work.
>
third and hopefully last try :D

[strc-itm.mkii]

\def\setitemlevel#1%
  {\ifnum\currentitemlevel>\zerocount
     \settrue\firstlistitem
     %
%     \expanded{\setitemparameter{\currentitemlevel}{\c!start}{1}}% ***
     \doifinset{0}{#1}{\setitemparameter\currentitemlevel\c!start{0}}%
     
\setcounter{\@@itemcounter\currentitemlevel}{\the\numexpr\getitemparameter\currentitemlevel\c!start-1\relax}% 
***
     \doifelsenothing{\getitemparameter\currentitemlevel\c!start}
       {\def\currentitemoffset{1}}
       {\def\currentitemoffset{\getitemparameter\currentitemlevel\c!start}%
        \letitemparameter\currentitemlevel\c!start\empty}%
     %
     \def\tempnumber
       {\countervalue{\@@itemcounter\currentitemlevel}}%
     \doifelse{\getitemparameter\currentitemlevel\c!placestopper}\v!yes
       {\def\tempsymbol{\getitemparameter\currentitemlevel\c!stopper}}
       {\let\tempsymbol\empty}%
   \fi}


I get the correct numbers with the following example.

\starttext

\startitemize[n][start=2]
\item foo
\item bar
\stopitemize


\startitemize[n]
\item foo
\item bar
\stopitemize

\stoptext


> Strange?
>
> Xan.
> ___________________________________________________________________________________ 
>
> 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
> ___________________________________________________________________________________ 
>
>

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


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

* Re: How can I start wiith 2 in itemize?
  2009-09-03 12:35 ` Peter Rolf
@ 2009-09-03 15:59   ` Xan
       [not found]     ` <4A9FF1A5.2040709@gmx.net>
  2009-09-13 15:02   ` Peter Rolf
  1 sibling, 1 reply; 7+ messages in thread
From: Xan @ 2009-09-03 15:59 UTC (permalink / raw)
  To: Peter Rolf; +Cc: mailing list for ConTeXt users

En/na Peter Rolf ha escrit:
> Xan schrieb:
>> Hi,
>>
>> I want to start itemize with 2.
>> I put \startitemize[n][start=2] but it does not work.
>>
> third and hopefully last try :D
>
> [strc-itm.mkii]
>
> \def\setitemlevel#1%
>  {\ifnum\currentitemlevel>\zerocount
>     \settrue\firstlistitem
>     %
> %     \expanded{\setitemparameter{\currentitemlevel}{\c!start}{1}}% ***
>     \doifinset{0}{#1}{\setitemparameter\currentitemlevel\c!start{0}}%
>     
> \setcounter{\@@itemcounter\currentitemlevel}{\the\numexpr\getitemparameter\currentitemlevel\c!start-1\relax}% 
> ***
>     \doifelsenothing{\getitemparameter\currentitemlevel\c!start}
>       {\def\currentitemoffset{1}}
>       
> {\def\currentitemoffset{\getitemparameter\currentitemlevel\c!start}%
>        \letitemparameter\currentitemlevel\c!start\empty}%
>     %
>     \def\tempnumber
>       {\countervalue{\@@itemcounter\currentitemlevel}}%
>     \doifelse{\getitemparameter\currentitemlevel\c!placestopper}\v!yes
>       {\def\tempsymbol{\getitemparameter\currentitemlevel\c!stopper}}
>       {\let\tempsymbol\empty}%
>   \fi}
>
>
> I get the correct numbers with the following example.
>
> \starttext
>
> \startitemize[n][start=2]
> \item foo
> \item bar
> \stopitemize
>
>
> \startitemize[n]
> \item foo
> \item bar
> \stopitemize
>
> \stoptext
>
>
>
Thank you very much, Peter, very much.
But one second: the code you put here, I suppose I have to copy-paste to 
this file. Is it correct? The *** are correct or is html bold (I read in 
plain text).? Can you clear me

Now the strange is the "by default" the startitemize crazies at that 
point and before all were fine 8-D. Joke. At least I'm useful for 
detecting errors. Taco knows it ;-) Another joke.

Regards,
Xan.





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


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

* Re: How can I start wiith 2 in itemize?
       [not found]                 ` <4AA01302.5050608@gmx.net>
@ 2009-09-03 19:17                   ` Xan
  0 siblings, 0 replies; 7+ messages in thread
From: Xan @ 2009-09-03 19:17 UTC (permalink / raw)
  To: Peter Rolf; +Cc: mailing list for ConTeXt users


>>>
>>>
>> xan@rulot:~$ textools --findfile strc-itm.mkii
>> TeXTools | locating file in texmf tree
>> TeXTools |
>> TeXTools | no file found
>>
>
> A clear sign that your ConTeXt isn't setup correctly. Are you using 
> the 'ConTeXt minimals'?
>
> http://wiki.contextgarden.net/ConTeXt_Minimals
>
> I once followed the installation instructions on Mandriva64 Linux and 
> it worked like a charm.
> *
> "NOTE:* The officially recommened way of installing ConTeXt on all 
> platforms is using ConTeXt Minimals 
> <http://wiki.contextgarden.net/ConTeXt_Minimals>"
>
> There are also some instructions for using ConTeXt under TeXLive
>
> http://wiki.contextgarden.net/Installation
I have that installed but it does not serve me because I use tkiz (read 
above). So I  _must_ use MKII.

I use ubuntu 8.04.
How can I do for fix the installation? Any ideas?

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


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

* Re: How can I start wiith 2 in itemize?
  2009-09-03 12:35 ` Peter Rolf
  2009-09-03 15:59   ` Xan
@ 2009-09-13 15:02   ` Peter Rolf
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Rolf @ 2009-09-13 15:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans,

this is not fixed yet...


Peter Rolf schrieb:
> Xan schrieb:
>> Hi,
>>
>> I want to start itemize with 2.
>> I put \startitemize[n][start=2] but it does not work.
>>
> third and hopefully last try :D
>
> [strc-itm.mkii]
>
> \def\setitemlevel#1%
>  {\ifnum\currentitemlevel>\zerocount
>     \settrue\firstlistitem
>     %
> %     \expanded{\setitemparameter{\currentitemlevel}{\c!start}{1}}% ***
>     \doifinset{0}{#1}{\setitemparameter\currentitemlevel\c!start{0}}%
>     
> \setcounter{\@@itemcounter\currentitemlevel}{\the\numexpr\getitemparameter\currentitemlevel\c!start-1\relax}% 
> ***
>     \doifelsenothing{\getitemparameter\currentitemlevel\c!start}
>       {\def\currentitemoffset{1}}
>       
> {\def\currentitemoffset{\getitemparameter\currentitemlevel\c!start}%
>        \letitemparameter\currentitemlevel\c!start\empty}%
>     %
>     \def\tempnumber
>       {\countervalue{\@@itemcounter\currentitemlevel}}%
>     \doifelse{\getitemparameter\currentitemlevel\c!placestopper}\v!yes
>       {\def\tempsymbol{\getitemparameter\currentitemlevel\c!stopper}}
>       {\let\tempsymbol\empty}%
>   \fi}
>
>
> I get the correct numbers with the following example.
>
> \starttext
>
> \startitemize[n][start=2]
> \item foo
> \item bar
> \stopitemize
>
>
> \startitemize[n]
> \item foo
> \item bar
> \stopitemize
>
> \stoptext
>
>
>> Strange?
>>
>> Xan.
>> ___________________________________________________________________________________ 
>>
>> 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
>> ___________________________________________________________________________________ 
>>
>>
>
> ___________________________________________________________________________________ 
>
> 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
> ___________________________________________________________________________________ 
>
>

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


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

end of thread, other threads:[~2009-09-13 15:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-02 19:56 How can I start wiith 2 in itemize? Xan
2009-09-02 22:28 ` Peter Rolf
2009-09-02 23:07   ` Aditya Mahajan
2009-09-03 12:35 ` Peter Rolf
2009-09-03 15:59   ` Xan
     [not found]     ` <4A9FF1A5.2040709@gmx.net>
     [not found]       ` <4A9FFACA.9010503@telefonica.net>
     [not found]         ` <4A9FFEF9.9040804@gmx.net>
     [not found]           ` <4AA00840.4060204@telefonica.net>
     [not found]             ` <4AA00D43.2020004@gmx.net>
     [not found]               ` <4AA00E06.9050505@telefonica.net>
     [not found]                 ` <4AA01302.5050608@gmx.net>
2009-09-03 19:17                   ` Xan
2009-09-13 15:02   ` Peter Rolf

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).