I am using the following code to print a list of all characters that say something in a given scene of a play-script.
\newcommand\sceneroles[2][Roles]{%
\def\scenename{#2}%
\textbf{#1}:%
\Bind{?id}{rdf:type}{rl:role}{%
% \GetVal prints the variable name,
% \GetValProperty extracts property from the name
% Set the default left time
% use the real at:left if it has been set
\IfProperty{\GetVal{?id}}{is:playsin#2}{%
\GetValProperty{?id}{rl:name}, %
}{}%
}%
}
the problem is, that I cannot get rid of the last comma.
what should be printed is:
Roles: Romeo, Juliet
what is printed:
Roles: Romeo, Juliet,
\documentclass{...}and ending with\end{document}. – DG' Oct 05 '20 at 20:32\GetValPropertyand\Bindare defined and guess how you get Romeo and Juliet out of thin air? – egreg Oct 05 '20 at 22:05\GetValPropertyin TeX Live files. – egreg Oct 05 '20 at 22:09