Loading the nicematrix package, the code

\begin{bNiceMatrix}[last-col,nullify-dots, margin]
    & & & \\
    \Cdots & A_j & \Cdots & i\\
    & & &

generates this:

enter image description here

Can I get the dotted lines to be replaced with solid lines to get something analogous to the following?

enter image description here

1 Answer 1




$\begin{bNiceMatrix}[last-col,nullify-dots, margin]
    & & & \\
    \Cdots & A_j &\Cdots & i\\
    & & &


Output of the above code

  • Is there some documentation where I can read these techniques?
    – Atom
    Commented Apr 2, 2022 at 12:08
  • Another question: I guess this will affect the line-style globally. How can I restore that to default settings?
    – Atom
    Commented Apr 2, 2022 at 12:09
  • 1
    The customization of the dotted lines (created by \Cdots, etc.) is documented in the page 27 of the official documentation of nicematrix (file nicematrix.pdf available for example on CTAN). You can use the key xdots (with its subkey line-style) locally for an environment or for a single command \Cdots. Commented Apr 2, 2022 at 12:13
  • Can one also have a mix of dotted and dashed lines as my desired output shows? I don't think it is possible by the option you suggest (though it fulfils the current requirement).
    – Atom
    Commented Apr 2, 2022 at 12:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .