Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 2
mineure

03 Déc '17, 18:27

Pathe's gravatar image

Pathe
7.6k49209252

Deux autres possibilités: - l'extension `blkarray` possède un compteur `\BAenum` à insérer où l'on veut dans le préambule de l'environnement `blockarray`; - l'option `[table]` de `xcolor` définit un compteur `\rownum`, incrémenté automatiquement par la commande `\rowcolors` (couleurs qui peuvent très bien être `white` si l'on ne veut pas de couleur). Démo : \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier, erewhon} \usepackage[table, svgnames]{xcolor} \usepackage{array, blkarray, eqparbox, booktabs, cellspace} \renewcommand{\theBAenumi}{\eqmakebox[lineno][l]{\arabic{BAenumi}.}}%%{\ifnumless{\value{BAenumi}}{10}{\arabic{BAenumi}\phantom{0}}{\arabic{BAenumi}}} \begin{document} \setlength\BAextrarowheight{3pt} % \begin{blockarray}{ll} \begin{block}{\BAmulticolumn{2}{c}} THE HISTORY OF THE SEVEN FAMILIES OF LAKE PIPPLE-POPPLE\\[1ex] \end{block} \noalign{\setcounter{BAenumi}{1}} %\BAmulticolumn{2}{c}{THE HISTORY OF THE SEVEN FAMILIES} \begin{block}{|>{CHAPTER }l<{\hspace{-1.33em}} \BAenum!{\enspace}|l|} \hline & Introductory \\ \hline & The Seven Families \\ \hline & The Habits of the Seven Families \\ \hline & The Children of the Seven Families are Sent Away\\ \hline & The History of the Seven Young Parrots \\ \hline & The History of the Seven Young Storks \\ \hline & The History of the Seven Young Geese \\ \hline & The History of the Seven Young Owls \\ \hline & The History of the Seven Young Guinea Pigs \\ \hline & The History of the Seven Young Cats \\ \hline & The History of the Seven Young Fishes \\ \hline & Of What Occurred Subsequently \\ \hline & Of What Became of the Parents of the Forty-Nine Children \\ \hline & Conclusion \\ \hline \end{block} \end{blockarray} \rowcolors{1}{Lavender!50}{white} \setlength\cellspacetoplimit{4pt} \setlength\cellspacebottomlimit{4pt} \begin{tabular}{>{CHAPTER}Sl <{\hspace{0.33em}\the\rownum. }Sl} \rowcolor{white}\multicolumn{2}{c}{THE HISTORY OF THE SEVEN FAMILIES OF LAKE PIPPLE-POPPLE}{\global \rownum = 0} \\ \specialrule{\heavyrulewidth}{\aboverulesep}{0pt} & Introductory \\ & The Seven Families \\ & The Habits of the Seven Families \\ & The Children of the Seven Families are Sent Away\\ & The History of the Seven Young Parrots \\ & The History of the Seven Young Storks \\ & The History of the Seven Young Geese \\ & The History of the Seven Young Owls \\ & The History of the Seven Young Guinea Pigs \\ & The History of the Seven Young Cats \\ & The History of the Seven Young Fishes \\ & Of What Occurred Subsequently \\ & Of What Became of the Parents of the Forty-Nine Children \\ & Conclusion \\ \bottomrule \end{tabular} \end{document} ![alt text][1] [1]: http://texnique.fr:80/osqa/upfiles/numlinesinblkarray_OqUhTBl.png <img src="/upfiles/numlinesinblkarray_OqUhTBl.png" style="width: 95%;"/>
cliquez ici pour masquer/afficher la révision 1

15 Aoû '17, 15:15

Bernard's gravatar image

Bernard
4.6k15

Deux autres possibilités: - l'extension `blkarray` possède un compteur `\BAenum` à insérer où l'on veut dans le préambule de l'environnement `blockarray`; - l'option `[table]` de `xcolor` définit un compteur `\rownum`, incrémenté automatiquement par la commande `\rowcolors` (couleurs qui peuvent très bien être `white` si l'on ne veut pas de couleur). Démo : \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier, erewhon} \usepackage[table, svgnames]{xcolor} \usepackage{array, blkarray, eqparbox, booktabs, cellspace} \renewcommand{\theBAenumi}{\eqmakebox[lineno][l]{\arabic{BAenumi}.}}%%{\ifnumless{\value{BAenumi}}{10}{\arabic{BAenumi}\phantom{0}}{\arabic{BAenumi}}} \begin{document} \setlength\BAextrarowheight{3pt} % \begin{blockarray}{ll} \begin{block}{\BAmulticolumn{2}{c}} THE HISTORY OF THE SEVEN FAMILIES OF LAKE PIPPLE-POPPLE\\[1ex] \end{block} \noalign{\setcounter{BAenumi}{1}} %\BAmulticolumn{2}{c}{THE HISTORY OF THE SEVEN FAMILIES} \begin{block}{|>{CHAPTER }l<{\hspace{-1.33em}} \BAenum!{\enspace}|l|} \hline & Introductory \\ \hline & The Seven Families \\ \hline & The Habits of the Seven Families \\ \hline & The Children of the Seven Families are Sent Away\\ \hline & The History of the Seven Young Parrots \\ \hline & The History of the Seven Young Storks \\ \hline & The History of the Seven Young Geese \\ \hline & The History of the Seven Young Owls \\ \hline & The History of the Seven Young Guinea Pigs \\ \hline & The History of the Seven Young Cats \\ \hline & The History of the Seven Young Fishes \\ \hline & Of What Occurred Subsequently \\ \hline & Of What Became of the Parents of the Forty-Nine Children \\ \hline & Conclusion \\ \hline \end{block} \end{blockarray} \rowcolors{1}{Lavender!50}{white} \setlength\cellspacetoplimit{4pt} \setlength\cellspacebottomlimit{4pt} \begin{tabular}{>{CHAPTER}Sl <{\hspace{0.33em}\the\rownum. }Sl} \rowcolor{white}\multicolumn{2}{c}{THE HISTORY OF THE SEVEN FAMILIES OF LAKE PIPPLE-POPPLE}{\global \rownum = 0} \\ \specialrule{\heavyrulewidth}{\aboverulesep}{0pt} & Introductory \\ & The Seven Families \\ & The Habits of the Seven Families \\ & The Children of the Seven Families are Sent Away\\ & The History of the Seven Young Parrots \\ & The History of the Seven Young Storks \\ & The History of the Seven Young Geese \\ & The History of the Seven Young Owls \\ & The History of the Seven Young Guinea Pigs \\ & The History of the Seven Young Cats \\ & The History of the Seven Young Fishes \\ & Of What Occurred Subsequently \\ & Of What Became of the Parents of the Forty-Nine Children \\ & Conclusion \\ \bottomrule \end{tabular} \end{document} ![alt text][1] [1]: http://texnique.fr:80/osqa/upfiles/numlinesinblkarray_OqUhTBl.png

C'est votre première visite ici ? Consultez la FAQ !

×