#StackBounty: #tables #siunitx siunitx: sticky-per and bracket-unit-denominator don't work as expected

Bounty: 50

I need to edit the following code to get this desired output

enter image description here

instead of

enter image description here

documentclass{article}

usepackage{ragged2e, siunitx}

DeclareSIUnit{radpers}{radianstothe{-1}}

usepackage{collcell}

newcolumntype{s}{>{collectcellunit}c<{endcollectcell}}

makeatletter
expandafterrenewcommandexpandafter*expandafter
{csname NC@rewrite@sendcsname}[1][]%
{%
    @temptokenaexpandafter
    {%
        the@temptokena
        >{collectcellunit}c<{endcollectcell}%
    }%
    NC@find
}
makeatother

begin{document}
begin{tabular}{
        s[
        inter-unit-product = ensuremath{{cdot}},
        table-unit-alignment = left,
        per-mode = symbol,
        bracket-unit-denominator,
        sticky-per,
        forbid-literal-units,
        ]}
    Nmperradpers \
end{tabular}
end{document}


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.