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
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
% 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]
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