
9개 이상의 인수가 필요한 moderncv 형식의 함수가 있습니다. "\foocontinued"를 사용하면9개 이상의 인수를 사용하는 명령을 정의하는 방법다음과 같은 문제가 있습니다.
\foocontinued
다음과 같은 오류가 발생하는 것처럼 항목 안에 배치하면\cvitem{}{\foocontinued}
"\foocontinued의 인수에 추가 }가 있습니다."\foocontinued
cvitem 외부에 있지만 foo 명령 내부에 배치하면 아래 MWE에 표시된 것처럼 10번째 인수가 한 줄에 나타납니다.
\documentclass[letterpaper]{moderncv}
\moderncvstyle{classic}
\usepackage[maxbibnames=99,backend=biber,defernumbers=true,sorting=ydnt,url = false]{biblatex}
\firstname{Author}
\familyname{}
\title{Curriculum Vitae}
\newcommand\foo[9]{%
\cvitem{[#1]}{
#2
#3
#4
#5
#6
#7
#8
#9 .The end of the normal function. Item 10 should follow this but instead in on a new line. } \foocontinued }
\newcommand\foocontinued[1]{
This is item #1
}
% build the document
\begin{document}
\makecvtitle
\foo{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}
\end{document}
cvitem 내에서 10번째 인수를 어떻게 얻을 수 있나요?
답변1
이것을 날개짓하지만 작동해야 합니다.
\newcommand\foo[9]{\foocontinued{#1}{#2 #3 #4 #5 #6 #7 #8 #9}}
\newcommand\foocontinued[3]{\cvitem{[#1]}{#2 This is item #3}}