2

When attempting to use \arrayrulecolor I get the error:

Undefined control sequence. \arrayrulecolor

The markup I am using is:

\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}

What is causing this error?

2
  • 2
    Load xcolor with option [table] so that it loads colortbl.
    – Bernard
    Dec 23, 2019 at 21:57
  • @Bernard, just tried that and the error remains Dec 23, 2019 at 21:58

1 Answer 1

4

Excuse for my delay but I have put this code after the comments. I have put into your code only \usepackage[T1]{fontenc} and \usepackage[table,RGB]{xcolor} and all your code works correctly.

enter image description here

\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}
1
  • 1
    Thank you! perfect! Dec 23, 2019 at 22:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.