KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당 › arrayjob과 xcolor

yihoze | 2011.02.16 21:17:06 | 메뉴 건너뛰기 쓰기
\documentclass{memoir}
\usepackage{xcolor}
\usepackage{arrayjob}

\newarray\PagetabColors
\readarray{PagetabColors}{red&orange&yellow&green&cyan&blue&violet&lightgray&darkgray&black}

\begin{document} 

\PagetabColors(1)

\textcolor{blue}{blue}

\textcolor{red}{blue}

\textcolor{\PagetabColors(1)}{blue}
\end{document} 

마지막 줄이 원하는 대로 작동하지 않습니다. \expandafter 같은 걸 이용하면 될 듯한데 이리저리 돌려 붙여 봤지만 계속해서 걸립니다.
이왕이면 (1)에 카운터를 넣었으면 좋겠습니다.

댓글 [2]

댓글 쓰기

목록

KTUG 한국 텍 사용자 그룹