arrayrulecolor 使用時の未定義の制御シーケンス

arrayrulecolor 使用時の未定義の制御シーケンス

使用しようとすると\arrayrulecolorエラーが発生します:

Undefined control sequence. \arrayrulecolor

私が使用しているマークアップは次のとおりです。

\documentclass[letterpaper,11pt]{article}
\usepackage{kpfonts}
\setlength{\parskip}{\baselineskip}%
\setlength{\parindent}{0pt}%
\usepackage{xcolor}
\definecolor{darkjunglegreen}{rgb}{0.0, 0.26, 0.15}
\usepackage{booktabs}
\usepackage[
top    = 0.608cm,
bottom = 1.1cm,
left   = 1.20cm,
right  = 1.10cm]{geometry}
\usepackage{titlesec}
\usepackage{array}
\usepackage{calc}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\makeatletter 
\newcommand\semiLarge{\@setfontsize\semiLarge{13.22}{17.38}}
\makeatother
\titleformat{\section}
{\normalfont\Large\bfseries}{\thesection}
{1em}{}[\color{darkjunglegreen}{\titlerule[2pt]}]
\titlespacing\section{0pt}{1pt plus 4pt minus 2pt}{-3pt plus 2pt minus 2pt}
\begin{document}
\sloppy 
\section*{Section Heading}
\arrayrulecolor{darkjunglegreen}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}*{3}{C{0.3\textwidth-2\tabcolsep}}}
\large\textbf{Term} & \large\textbf{Word} & \large\textbf{Phrase}\\
\cmidrule[2pt](r){1-1} \cmidrule[1pt](lr){2-2} \cmidrule[1pt](l){3-3}
\end{tabular*}  
\end{document}

このエラーの原因は何ですか?

答え1

遅れて申し訳ありませんが、このコードはコメントの後に置いておきます。あなたのコードにのみ入れました\usepackage[T1]{fontenc}が、\usepackage[table,RGB]{xcolor}あなたのコードはすべて正しく動作します。

ここに画像の説明を入力してください

\documentclass[letterpaper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{kpfonts}
\setlength{\parskip}{\baselineskip}%
\setlength{\parindent}{0pt}%
\usepackage[table,RGB]{xcolor}
\definecolor{darkjunglegreen}{rgb}{0.0, 0.26, 0.15}
\usepackage{booktabs}
\usepackage[
top    = 0.608cm,
bottom = 1.1cm,
left   = 1.20cm,
right  = 1.10cm]{geometry}
\usepackage{titlesec}
\usepackage{array}
\usepackage{calc}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\makeatletter 
\newcommand\semiLarge{\@setfontsize\semiLarge{13.22}{17.38}}
\makeatother
\titleformat{\section}
{\normalfont\Large\bfseries}{\thesection}
{1em}{}[\color{darkjunglegreen}{\titlerule[2pt]}]
\titlespacing\section{0pt}{1pt plus 4pt minus 2pt}{-3pt plus 2pt minus 2pt}
\begin{document}
\sloppy 
\section*{Section Heading}
\arrayrulecolor{darkjunglegreen}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}*{3}{C{0.3\textwidth-2\tabcolsep}}}
\large\textbf{Term} & \large\textbf{Word} & \large\textbf{Phrase}\\
\cmidrule[2pt](r){1-1} \cmidrule[1pt](lr){2-2} \cmidrule[1pt](l){3-3}
\end{tabular*}  
\end{document}

関連情報