TeX - LaTeX Asked by Max16hr on June 14, 2021
I’ve got a problem while using the nicematrix
package. For demonstration, I created this table:
There are two Block
elements, filled with green color. As content for the blocks I used some symmetrical comparison lines which have a dot in the center.
These dots should be placed exactly in the middle of each block. But this is not the case as you can also see at the overhang on only side of the block. If the content would be centered in the block, there should be an overhang of same size on both sides.
What do I do wrong here and how can I center the content properly?
Thank you! 🙂
Here is the code for reproducing:
documentclass{scrreprt}
usepackage{booktabs}
usepackage{nicematrix}
begin{document}
centering
begin{NiceTabular}{*{4}{wc{20pt}}}
& Block[c, fill=green!25]{1-*}{rule{10.0125ex}{1pt}.rule{10.0125ex}{1pt}}
Block[c, fill=green!25]{*-1}{rotaterule{4.04ex}{1pt}.rule{4.04ex}{1pt}} & xx & x(cdot)x & xx
& (cdot)xx & xx & xx
& xx & xx & xx
end{NiceTabular}
end{document}
The package nicematrix
does slight adjustments in order to have a perfect result when rules are used (|
in the preamble of the array, hline
, cline
, etc.).
It's a package which uses PGF/Tikz to construct tabulars and mathematical arrays. It's not a package to do mathematical drawings.
Answered by F. Pantigny on June 14, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP