![](https://secure.gravatar.com/avatar/0a96a366311a96b0e9df4a336a7df048.jpg?s=120&d=mm&r=g)
Hi all, Some times ago, Taco helps me to define a custom itemize: \setbox0=\hbox{--~} \def\indenteddash#1{\hskip\parindent--~} \definesymbol[indentdash][\indenteddash] \setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr \parindent + \wd0 \relax] The result of, for example: \startitemize \item first paragraph ... with a lot of text (multiline), \item second paragraph ... with a lot of text (multiline). \stopitemize is: -- first paragraph .. .... with a lot of text (multiline), -- second paragraph .. .... with a lot of text (multiline). Now, I would a new custom itemize with numbered items: 1. first paragraph .. .... with a lot of text (multiline), 2. second paragraph .. .... with a lot of text (multiline). How to do that ? TIA Renaud
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Renaud AUBIN wrote:
Hi all,
Some times ago, Taco helps me to define a custom itemize: \setbox0=\hbox{--~} \def\indenteddash#1{\hskip\parindent--~} \definesymbol[indentdash][\indenteddash] \setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]
Now, I would a new custom itemize with numbered items:
1. first paragraph .. .... with a lot of text (multiline), 2. second paragraph .. .... with a lot of text (multiline).
How to do that ?
\setbox0=\hbox{0.~} \def\indenteddash#1{\hskip\parindent #1.~} \defineconversion[indentdash][\indenteddash] \setup... % as before Taco
![](https://secure.gravatar.com/avatar/0a96a366311a96b0e9df4a336a7df048.jpg?s=120&d=mm&r=g)
% frenchitemize \setbox0=\hbox{--~} \def\indenteddash#1{\hskip\parindent--~} \definesymbol[indentdash][\indenteddash] \def\startfrenchitemize{\startitemize[indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]} \def\stopfrenchitemize{\stopitemize} % frenchenumerate \setbox1=\hbox{0.~} \def\indentedfrenchnumber#1{\hskip\parindent#1.~} \defineconversion[frenchnumber][\indentedfrenchnumber] \def\startfrenchenumerate{\startitemize[frenchnumber,packed,joinedup,intext][stopper={},indentnext=yes,width=\dimexpr \parindent + \wd1 \relax]} \def\stopfrenchenumerate{\stopitemize} % default behavior of itemize (frenchitemize) \setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Fri, 4 Aug 2006, Renaud AUBIN wrote:
% frenchitemize \setbox0=\hbox{--~} \def\indenteddash#1{\hskip\parindent--~} \definesymbol[indentdash][\indenteddash] \def\startfrenchitemize{\startitemize[indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]} \def\stopfrenchitemize{\stopitemize}
% frenchenumerate \setbox1=\hbox{0.~} \def\indentedfrenchnumber#1{\hskip\parindent#1.~} \defineconversion[frenchnumber][\indentedfrenchnumber] \def\startfrenchenumerate{\startitemize[frenchnumber,packed,joinedup,intext][stopper={},indentnext=yes,width=\dimexpr \parindent + \wd1 \relax]} \def\stopfrenchenumerate{\stopitemize}
There is \setupitemgroup and \defineitemgroup for this kind of things. So you can do \defineitemgroup[frenchitemize] \setupitemgroup[frenchitemize] [each] [indentdash,packed,joinedup,intext] [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax] etc. Aditya
participants (3)
-
Aditya Mahajan
-
Renaud AUBIN
-
Taco Hoekwater