I want to create a table with Text aligned around the separator "V-" and color it using \rowcolor. The normal column separator @{V-} doesn't work with \rowcolors, thus I'm searching for a way to do it in another way. Is it possible to use the neat S column of the siunitx package? I tried it with
\usepackage[input-decimal-markers={V-}]{siunitx}
and
\usepackage[input-signs={V-}]{siunitx}
but it throws errors.
MWE:
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[table]{xcolor}
\usepackage{siunitx}
\begin{document}
with @{V-}:\\
\rowcolors{1}{black!10}{}
\begin{tabular}{|r@{V-}l|}
\hline
C & CV-\\\hline
CC & CV-\\\hline
h1C & V-\\\hline
\end{tabular}
with c and tabcolsep=0pt:\\
\setlength{\tabcolsep}{0pt}
\rowcolors{1}{black!10}{}
\begin{tabular}{|rcl|}
\hline
C & V- & CV-\\\hline
CC & V- & CV-\\\hline
h1C & V- & V-\\\hline
\end{tabular}
\end{document}
So far, the version with tabcolsep=0pt works best, but the table is quite ugly without any separator spaces. If I just use S, siunitx of course says “Invalid numerical input '-'.” Any ideas?
PS: I've read 205041 and 289298, but they don't answer my question.
Edit: I don't need to use siunitx, if anybody knows a different solution…

