I reproduce below some examples from CTAN -- nicematrix with a few alterations.
The command custom-line appears at
- 5.6 Commands for customized rules
where the given example starts with: \begin{NiceTabular}{lcIcIc}[custom-line = {letter=I, color=blue}] and in the sequence there is another example with TikZ and \NiceMatrixOptions. Unfortunately, both examples gave me the following error message: Package nicematrix Error: The key 'custom-line' is unknown for the(nicematrix) environment {NiceTabular}. ...cIc}[custom-line = {letter=I, color=blue}].
However, there is a way around. Sections:
- 5 The rules
- 5.2 The thickness and the color of the rules
- 5.3.2 The keys hvlines and hvlines-except-borders
present commands rules/color and rules/width, that might be useful, but are not exactly a new custom-line you may define for the whole document and use it where you want.
A MWE follows
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\begin{NiceTabular}{c|c|c}[rules/color=blue,rules/width=3pt]
\hline
rose & tulipe & lys \
arum & iris & violette \
muguet & dahlia & souci \
\hline
\end{NiceTabular}
\setlength{\arrayrulewidth}{1pt}
\begin{NiceTabular}{cccc}[hvlines,rules/color=green!50!black,rules/width=4pt]
rose & tulipe & marguerite & dahlia \
violette & \Block[draw=red]{2-2}{\LARGE fleurs} & & souci \
pervenche & & & lys \
arum & iris & jacinthe & muguet
\end{NiceTabular}
\end{document}

Package nicematrix Error: The key 'custom-line' is unknown for the command(nicematrix) \NiceMatrixOptions. }? – FHZ Mar 30 '22 at 16:10‘NiceMatrix/RulesBis/width’ is unknown and is being ignored
– Charly Watson Mar 30 '22 at 16:32