
Ich habe eine Funktion im ModernCV-Format, für die ich mehr als 9 Argumente benötige. Wenn ich "\foocontinued" verwende,So definieren Sie einen Befehl, der mehr als 9 Argumente benötigtIch habe folgende Probleme.
Wenn ich
\foocontinued
das Element so einstelle\cvitem{}{\foocontinued}
, erhalte ich die folgende Fehlermeldung: „Das Argument von \foocontinued hat ein zusätzliches }“Wenn ich es
\foocontinued
außerhalb des cvitems, aber innerhalb des Befehls foo platziere, erscheint das zehnte Argument in einer Zeile, wie sie im folgenden MWE dargestellt ist.
\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}
Wie kann ich ein 10. Argument in cvitem erhalten?
Antwort1
Ich versuche es mal aus dem Stegreif, aber es sollte klappen:
\newcommand\foo[9]{\foocontinued{#1}{#2 #3 #4 #5 #6 #7 #8 #9}}
\newcommand\foocontinued[3]{\cvitem{[#1]}{#2 This is item #3}}