为某些行和列声明斜体

为某些行和列声明斜体

延续先前的问题我有一个无人认领的帐户。

如何将字母(k、kh 等一直到 o)斜体化,而不使用 \textit{} 包裹每个字母?有没有办法为指定的行/列声明斜体?

\documentclass{article}

\usepackage[margin=2.4cm]{geometry}
\usepackage{rotating}
\usepackage{makecell}
\settowidth\rotheadsize{{\small Compound}}
\newcommand{\NA}{---}

\usepackage{tabularray}
\UseTblrLibrary{booktabs}

\begin{document}
    
\begin{table}[ht]
  \centering
  \resizebox{\textwidth}{!}{%
    \begin{tblr}{
        colspec={l *{11}{c}},
        hlines, vlines,
        row{1-5}={font=\small},
      }
      \SetCell[r=5]{c,h} {Place of \\ Articulation} & \SetCell[c=11]{c} Manner of Articulation \\
      & \SetCell[c=7]{c} Consonants &&&&&&& \SetCell[c=3]{c} Vowels &&& \SetCell[r=4]{c,h} {Pure \\ Nasal} \\
      & \SetCell[c=5]{c} Stops &&&&
      & \SetCell[r=3]{c,h} {Semi \\ vowel \\ (voiced)}
      & \SetCell[r=3]{c,h} {Sibilant \\ (voiceless)}
      & \SetCell[r=3]{c} \rotcell{Short}
      & \SetCell[r=3]{c} \rotcell{Long}
      & \SetCell[r=3]{c} \rotcell{Compound} & \\
      & \SetCell[c=2]{c} Voiceless && \SetCell[c=3]{c} Voiced \\
      & {non- \\ aspirate} & aspirate & {non- \\ aspirate} & aspirate & nasal \\
      Gutturals  & k & kh & g & gh & ṅ & h  &   & a & ā & e & \\
      Palatals   & c & ch & j & jh & ñ & y  &   & i & ī & \SetCell[r=3]{}  & \\
      Cerebrals  & ṭ & ṭh & ḍ & ḍh & ṇ & r\,/\,l\,/\,ḷh & & \SetCell[r=2]{} & \SetCell[r=2]{} & & ṁ \\
      Dentals    & t & th & d & dh & n & l  & s &   &   &   &     \\
      Labials    & p & ph & b & bh & m & v  &   & u & ū & o &     \\
    \end{tblr}}
\end{table}

\end{document}

答案1

这可以通过选项实现cell{6-Z}{2-11}={font=\itshape}。这里Z表示最后一行。

\documentclass[border=6pt]{standalone}
\usepackage{graphicx}
\usepackage{tabularray}
\newcommand{\rotcell}[1]{#1}
\begin{document}
%\begin{table}[ht]
%  \centering
%  \resizebox{\textwidth}{!}{%
    \begin{tblr}{
        colspec={l *{11}{c}},
        hlines, vlines,
        row{1-5}={font=\small},
        cell{6-Z}{2-11}={font=\itshape}
      }
      \SetCell[r=5]{c,h} {Place of \\ Articulation} & \SetCell[c=11]{c} Manner of Articulation \\
      & \SetCell[c=7]{c} Consonants &&&&&&& \SetCell[c=3]{c} Vowels &&& \SetCell[r=4]{c,h} {Pure \\ Nasal} \\
      & \SetCell[c=5]{c} Stops &&&&
      & \SetCell[r=3]{c,h} {Semi \\ vowel \\ (voiced)}
      & \SetCell[r=3]{c,h} {Sibilant \\ (voiceless)}
      & \SetCell[r=3]{c} \rotcell{Short}
      & \SetCell[r=3]{c} \rotcell{Long}
      & \SetCell[r=3]{c} \rotcell{Compound} & \\
      & \SetCell[c=2]{c} Voiceless && \SetCell[c=3]{c} Voiced \\
      & {non- \\ aspirate} & aspirate & {non- \\ aspirate} & aspirate & nasal \\
      Gutturals  & k & kh & g & gh & ṅ & h  &   & a & ā & e & \\
      Palatals   & c & ch & j & jh & ñ & y  &   & i & ī & \SetCell[r=3]{}  & \\
      Cerebrals  & ṭ & ṭh & ḍ & ḍh & ṇ & r\,/\,l\,/\,ḷh & & \SetCell[r=2]{} & \SetCell[r=2]{} & & ṁ \\
      Dentals    & t & th & d & dh & n & l  & s &   &   &   &     \\
      Labials    & p & ph & b & bh & m & v  &   & u & ū & o &     \\
    \end{tblr}%}
%\end{table}
\end{document}

在此处输入图片描述

相关内容