* nesting \startitemize
@ 2007-10-07 18:02 frantisek holop
2007-10-07 19:02 ` Mojca Miklavec
0 siblings, 1 reply; 5+ messages in thread
From: frantisek holop @ 2007-10-07 18:02 UTC (permalink / raw)
To: ntg-context
hi there,
context, just as latex can nest \startitemize,
the context manual says max level 4.
by default context uses the symbols for these 4 levels
o level 1: bullet
-- level 2: dash
* level 3: asterisk
> level 4: triangle
it is very easy to change these per the manual.
but how can i make \startitemize use ordered lists by default?
this is sometimes more useful for scientific works...
e.g. latex by default does:
1. arabic numerals
(a) letters
i. roman numerals
o bullet
(ok, the 4th one isn't very logical in latex either...)
and another question, how can make \startitemize[a]
do "(a)" instead of "a." ?
-f
--
first came reality. then there was wolfenstein 3d...
___________________________________________________________________________________
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] 5+ messages in thread
* Re: nesting \startitemize
2007-10-07 18:02 nesting \startitemize frantisek holop
@ 2007-10-07 19:02 ` Mojca Miklavec
2007-10-07 19:08 ` frantisek holop
2007-10-07 19:39 ` frantisek holop
0 siblings, 2 replies; 5+ messages in thread
From: Mojca Miklavec @ 2007-10-07 19:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 10/7/07, frantisek holop wrote:
> hi there,
>
> context, just as latex can nest \startitemize,
> the context manual says max level 4.
>
> by default context uses the symbols for these 4 levels
>
> o level 1: bullet
> -- level 2: dash
> * level 3: asterisk
> > level 4: triangle
>
> it is very easy to change these per the manual.
> but how can i make \startitemize use ordered lists by default?
> this is sometimes more useful for scientific works...
>
> e.g. latex by default does:
>
> 1. arabic numerals
> (a) letters
> i. roman numerals
> o bullet
>
> (ok, the 4th one isn't very logical in latex either...)
>
> and another question, how can make \startitemize[a]
> do "(a)" instead of "a." ?
\setupitemize[1][n]
\setupitemize[2][a][left=(,right=),stopper=]
\setupitemize[3][i]
\setupitemize[4][1] % symbol nr. 1
Mojca
___________________________________________________________________________________
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] 5+ messages in thread
* Re: nesting \startitemize
2007-10-07 19:02 ` Mojca Miklavec
@ 2007-10-07 19:08 ` frantisek holop
2007-10-07 19:39 ` frantisek holop
1 sibling, 0 replies; 5+ messages in thread
From: frantisek holop @ 2007-10-07 19:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
hmm, on Sun, Oct 07, 2007 at 09:02:34PM +0200, Mojca Miklavec said that
> \setupitemize[1][n]
> \setupitemize[2][a][left=(,right=),stopper=]
> \setupitemize[3][i]
> \setupitemize[4][1] % symbol nr. 1
ehm... thank you very much :}
-f
--
if you don't think women are explosive, just drop one!
___________________________________________________________________________________
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] 5+ messages in thread
* Re: nesting \startitemize
2007-10-07 19:02 ` Mojca Miklavec
2007-10-07 19:08 ` frantisek holop
@ 2007-10-07 19:39 ` frantisek holop
2007-10-07 20:04 ` Aditya Mahajan
1 sibling, 1 reply; 5+ messages in thread
From: frantisek holop @ 2007-10-07 19:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
hmm, on Sun, Oct 07, 2007 at 09:02:34PM +0200, Mojca Miklavec said that
> \setupitemize[1][n]
> \setupitemize[2][a][left=(,right=),stopper=]
> \setupitemize[3][i]
> \setupitemize[4][1] % symbol nr. 1
ok, i would like to create 2 types of itemizations like in latex.
\begin{enumarate} vs \begin{itemize} (or in html <ol> vs <ul>)
\begin{itemize} is basically \startitemize
how would i go about defining \startenumarate ?
i thought of something like this, but it's not working:
\startsetups enum
\setupitemize[1][n]
\setupitemize[2][a][left=(,right=),stopper=]
\setupitemize[3][i]
\setupitemize[4][1] % symbol nr. 1
\stopsetups
\definestartstop[enum][command=\setups{enum}]
\starttext
\startenum
\item test
\stopenum
\stoptext
1. it doesnt work if there's no blank line between \item and \stopenum
i seem to recall something about a needed \par because of internal
workings.
2. it doesnt work, the setupitemize's are either not picked up
or are being overrided.
-f
--
funny how life imitates lsd.
___________________________________________________________________________________
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] 5+ messages in thread
* Re: nesting \startitemize
2007-10-07 19:39 ` frantisek holop
@ 2007-10-07 20:04 ` Aditya Mahajan
0 siblings, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2007-10-07 20:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, 7 Oct 2007, frantisek holop wrote:
> hmm, on Sun, Oct 07, 2007 at 09:02:34PM +0200, Mojca Miklavec said that
>> \setupitemize[1][n]
>> \setupitemize[2][a][left=(,right=),stopper=]
>> \setupitemize[3][i]
>> \setupitemize[4][1] % symbol nr. 1
>
> ok, i would like to create 2 types of itemizations like in latex.
> \begin{enumarate} vs \begin{itemize} (or in html <ol> vs <ul>)
>
> \begin{itemize} is basically \startitemize
>
> how would i go about defining \startenumarate ?
> i thought of something like this, but it's not working:
\defineitemgroup [enum] [levels=6]
\setupitemgroup[enum][1][n]
\setupitemgroup[enum][2][a][left=(,right=),stopper=]
% etc..
\starttext
\startenum
\item one
\startenum
\item two
\stopenum
\stopenum
\stoptext
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] 5+ messages in thread
end of thread, other threads:[~2007-10-07 20:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-07 18:02 nesting \startitemize frantisek holop
2007-10-07 19:02 ` Mojca Miklavec
2007-10-07 19:08 ` frantisek holop
2007-10-07 19:39 ` frantisek holop
2007-10-07 20:04 ` Aditya Mahajan
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).