سلام خدمت اساتید گرامی
من قصد دارم جدولی مثل شکل پیوست رسم کنم که هم آکولادهای خاص دارد و هم هایلایت شده است. چون برای ترجمه یک کتاب به فارسی قراره استفاده بشه، در مرحله بعد باید با عبارات و اعداد فارسی با زیپرشین ران کنم. فعلا توی همون لاتینش به مشکل خوردم. کد زیر را که با استفاده از پکیج nicematrix نوشته شده امتحان کردم. برای استفاده از این پکیج فایل nicematrix.sty را هم در دایرکتوری فایل تک که اجرا میکنم کپی کردم و هم در دایرکتوری زیر:
/usr/share/texmf/tex/latex/nicematrix
(دایرکتوری آخری رو خودم ساختم)
ولی باز هم با خطاهای زیادی مواجه میشم. اتفاق عجیب دیگه ای که رخ میده، ران اصلا متوقف نمیشه! فایل log و nicematrix.sty پیوست شده است
ممنون میشم اگر بنده را راهنمایی کنید
\documentclass{article}
\usepackage{nicematrix}
\usepackage{booktabs}
\begin{document}
\begin{NiceTabular}{lccwc{2cm}ccc}[cell-space-limits=2pt]
\toprule
\Block{1-2}{Particle} & & Spin & & \Block{1-2}{Super-particle} & & Spin\\
\midrule
Quark & q & $\frac12$ & & Squark & $\tilde{\text{q}}_L$, $\tilde{\text{q}}_R$ & $0$ \\
Lepton & $\ell^{\pm}$ & $\frac12$ & & Slepton & $\tilde{\ell}_L^{\pm}$, $\tilde{\ell}_R^{\pm}$ & $0$\\
Neutrino & $\nu$ & $\frac12$ & & Sneutrino & $\tilde{\nu}_L$, $\tilde{\nu}_R$ (?) & $0$\\
Gluon & g & $1$ & & Gluino & $\tilde{\text{g}}$ & $\frac12$\\
Photon & $\gamma$ & $1$ & $\tilde{\gamma}$ & \Block{3-1}{Neutralino} & \Block{3-1}{$\tilde{\chi}_1^0$,
$\tilde{\chi}_3^0$, $\tilde{\chi}_3^0$, $\tilde{\chi}_4^0$} & \Block{3-1}{$\frac12$}\\
Z boson & Z & $1$ & $\tilde{\text{Z}}$ & \\
\Block{2-1}{Higgs} & \Block{2-1}{H} & \Block{2-1}{$0$} & $\tilde{\text{H}}_1^0$, $\tilde{\text{H}}_2^0$ \\
& & & $\tilde{\text{H}}^{\pm}$ & \Block{2-1}{Chargino} & \Block{2-1}{$\tilde{\chi}_1^{\pm}$,
$\tilde{\chi}_2^{\pm}$} & \Block{2-1}{$\frac12$}\\
W boson & W$^{\pm}$ & $1$ & $\tilde{\text{W}}^{\pm}$ \\
\bottomrule
\CodeAfter
\SubMatrix{\{}{8-4}{9-4}{.}[left-xshift=2mm]
\SubMatrix{.}{6-4}{8-4}{\}}[right-xshift=2mm]
\SubMatrix{.}{9-4}{10-4}{\}}[right-xshift=2mm]
\end{NiceTabular}
\end{document}
خطاها:
line 80: Undefined control sequence. \ProvideDocumentCommand
line 80: Undefined control sequence. \ProvideDocumentCommand \iddots
line 82: Missing \begin{document}. $
line 230: Undefined control sequence. \regex_const:Nn
line 230: Undefined control sequence. ...const:Nn \c__nicematrix_columncolor_regex
line 251: Undefined control sequence. \NewExpandableDocumentCommand
line 251: Undefined control sequence. ...andableDocumentCommand \NiceMatrixLastEnv
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 706: LaTeX error: "kernel/property-unknown" The key property '.inherit:n' is unknown. For immediate help type H <return>. }
line 749: Undefined control sequence. \NewDocumentCommand
line 749: Undefined control sequence. \NewDocumentCommand \NiceMatrixOptions
line 750: LaTeX error: "kernel/message-unknown" Unknown message 'Unknown key for NiceMatrixOptions' for module 'nicematrix'. For immediate help type H <return>. ...{ NiceMatrix / NiceMatrixOptions } { #1 }
line 1146: Undefined control sequence. \NewDocumentEnvironment
line 1163: LaTeX error: "kernel/message-unknown" Unknown message 'Outside math mode' for module 'nicematrix'. For immediate help type H <return>. \__nicematrix_test_if_math_mode:
line 1189: LaTeX error: "kernel/message-unknown" Unknown message 'Unknown option for NiceMatrix' for module 'nicematrix'. For immediate help type H <return>. { #3 , #5 }
line 1189: LaTeX error: "kernel/message-unknown" Unknown message 'Unknown option for NiceMatrix' for module 'nicematrix'. For immediate help type H <return>. { #3 , #5 }
line 1296: Undefined control sequence. \__nicematrix_pre_array:
line 1309: Missing delimiter (. inserted). }
line 1309: You can't use `macro parameter character #' in math mode. }
line 1309: Missing delimiter (. inserted). }
line 1309: You can't use `macro parameter character #' in math mode. }
line 1312: Undefined control sequence. \__nicematrix_construct_preamble:
line 1320: Extra }, or forgotten $. }
line 1325: Missing } inserted. \c_math_toggle_token
line 1403: Missing delimiter (. inserted). }
line 1403: You can't use `macro parameter character #' in math mode. }
line 1403: Undefined control sequence. }
line 1403: Missing delimiter (. inserted). }
line 1403: You can't use `macro parameter character #' in math mode. }
line 1403: Undefined control sequence. }
line 1418: Undefined control sequence. \__nicematrix_after_array:
line 1861: Undefined control sequence. \NewDocumentEnvironment
line 1865: Illegal parameter number in definition of \@fortmp. }
line 1865: Illegal parameter number in definition of \@nextchar. }
line 1865: Package array Error: Illegal pream-token (#): `c' used. }
line 1865: Package array Error: Illegal pream-token (4): `c' used. }
line 1865: Missing $ inserted. }
line 1867: Undefined control sequence. \__nicematrix_create_col_nodes:
line 1868: Misplaced \crcr. \endarray