1

This is a derived question of How to build a table of fixed width and fixed height? (Edit: the question left now is about color overwrite)

Now I don't need to worry about the color. The layout I want to achieve is as follows: enter image description here

I try to modify the code of @F. Pantigny to achieve this:

\begin{frame}{Title}

\centering

\renewcommand{\arraystretch}{1.4} \begin{NiceTabular}{cccc}[colortbl-like,columns-width=auto] & & $A\left(B_C\right)$ & \

& {\small aaaaaaaaaa} & {\small aaaaaaaaa} & {\small aaaaaaaaaaaaa} \ {\small ABC} & \Block[hvlines]{-}{} $\times$ & $\checkmark-$ & $\checkmark$\ {\small non-IBC but DEF} & $\checkmark$ & $\checkmark$ & $\checkmark$ \ {\small non-DEF} & $\checkmark$ & $\checkmark$ & $\checkmark+$ \ $A\left(A_A, B_{BC}\right)$ & & & \end{NiceTabular}

\end{frame}

But the above code makes the last row have border line. I think that is because of "\Block[hvlines]{-}{}". But if I delete it, I will lose all the border lines. I was wondering how to circumvent this problem. Thank you very much!

Ypbor
  • 399
  • Please provide a complete code example that can be compiled and not just a partial code. You can take user F. Pantignyas as a role model in the referenced answer that you provide. See https://tex.meta.stackexchange.com/questions/228 for more information. – Dr. Manuel Kuehner Oct 10 '21 at 04:57
  • I have trouble following/understanding your question. Could be more specific about what is the indented output? – Dr. Manuel Kuehner Oct 10 '21 at 05:01
  • just add the number of rows in the block command that is three rows and all columns() -- dont be scared to experiment with 4- or 2-* etc in the Block command – js bibra Oct 10 '21 at 07:14
  • you have answered this question in my answer https://tex.stackexchange.com/questions/618287/how-to-build-a-table-of-fixed-width-and-fixed-height-edit-the-question-left-n/618311#618311. – Zarko Oct 10 '21 at 07:26

1 Answers1

1

enter image description here

\documentclass{article}

\usepackage{pifont} \usepackage{amssymb} \usepackage{cancel} \usepackage{nicematrix}

\begin{document} \begin{NiceTabular}{cccc}[colortbl-like,columns-width=auto] & & $A\left(B_C\right)$ & \

& {\small aaaaaaaaaa} & {\small aaaaaaaaa} & {\small aaaaaaaaaaaaa} \ {\small ABC} & \Block[hvlines]{3-*}{} $\times$ & $\checkmark-$ & $\checkmark$\ {\small non-IBC but DEF} & $\checkmark$ & $\checkmark$ & $\checkmark$ \ {\small non-DEF} & $\checkmark$ & $\checkmark$ & $\checkmark+$ \ $A\left(A_A, B_{BC}\right)$ & & & \end{NiceTabular}

\end{document}

js bibra
  • 21,280