📦 commalists-tools v0.20c

commalists-tools-doc.pdf
commalists-tools-l3-doc.pdf
commalists-tools.zip
Télécharger
📄 README — commalists-tools Afficher ▼
🧪 Demo — commalists-tools
\documentclass[a5paper]{article}
\usepackage[margin=5mm]{geometry}
\usepackage{commalists-tools-l3}

\begin{document}

\def\mytestlist{14,10,15,11,9,10}
We consider the list: \mytestlist\par\smallskip
There's \ctlenoflist*{\mytestlist} values in the list\par\smallskip
The minimum value is \ctminoflist*{\mytestlist} and the maximum is \ctmaxoflist*{14,10,15,11,9,10}\par\smallskip
Ascending sorted list is \ctsortasclist*{\mytestlist}\par\smallskip
Mean value of the list is \ctmeanoflist*{\mytestlist}\par\smallskip
If we remove the value 10, then the list is \ctremovevalinlist*{10}{\mytestlist}\par\smallskip
We test if 15 is in the list: \cttestifvalinlist{15}{\mytestlist}{true}{false}\par\smallskip
The third value of the list is \ctgetvaluefromlist*{\mytestlist}{3}\par\smallskip
15 is in index \ctgetindexfromlist*{15}{\mytestlist} in the list\par\smallskip
Sublist [-,4] of the list is: \ctsublist*{\mytestlist}{*}{4}

\end{document}