![在 \Block 中使用 \color 会导致内容低于基线](https://linux22.com/image/460989/%E5%9C%A8%20%5CBlock%20%E4%B8%AD%E4%BD%BF%E7%94%A8%20%5Ccolor%20%E4%BC%9A%E5%AF%BC%E8%87%B4%E5%86%85%E5%AE%B9%E4%BD%8E%E4%BA%8E%E5%9F%BA%E7%BA%BF.png)
答案1
nicematrix
使用 tikz 节点。在节点内部,您可以使用\textcolor{<color>}{<text>}
\documentclass[11pt]{book}
\usepackage[x11names]{xcolor}
\usepackage{nicematrix}
\NiceMatrixOptions{hvlines}
\begin{document}
\begin{NiceTabularX}{\linewidth}{r l X[l, t]}
Basmah
& Fadeel
& \Block[l, t]{1-1}{\textcolor{IndianRed1}{text}} % changed <<<<<<<<<<
\\
\end{NiceTabularX}
\end{document}