Ich möchte gerne, dass der Befehl Öffne in Overleaf
\documentclass{scrartcl} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage{exsheets} \begin{document} So sieht es aus: \totalpoints\\ So soll es aussehen: 4 P. \begin{question} \addpoints{1}\\ \addpoints{1}\\ \end{question} \begin{question} \addbonus{1}\\ \addbonus{1}\\ \end{question} \end{document} Gruß Thorsten gefragt 04 Mai '17, 14:47 thor |
Den Befehl dafür musst Du Dir selbst definieren: Öffne in Overleaf
\documentclass{article} \usepackage{exsheets} \ExplSyntaxOn \NewDocumentCommand \completepoints {s} { \group_begin: \fp_set:Nn \l_tmpa_fp { \g_exsheets_total_bonus_fp + \g_exsheets_total_points_fp } \tl_use:N \l__exsheets_points_format_tl { \bool_if:NTF \l__exsheets_parse_points_bool { \IfBooleanTF {#1} { \exsheets_parse_points:n { \l_tmpa_fp } } { \exsheets_print_points:n { \l_tmpa_fp } } } { \msg_warning:nnn {exsheets} {parse-points} {\completepoints} } } \group_end: } \ExplSyntaxOff \begin{document} \begin{question}{3+1} \end{question} \begin{question}{8+3} \end{question} \totalpoints\ vs.\@ \completepoints \end{document} Öffne in Overleaf
\documentclass{article} \usepackage{xsim,lipsum} \NewDocumentCommand\printcompletepoints{}{% \TotalExerciseGoals{points + bonus-points} {\,\XSIMtranslate{point}} {\,\XSIMtranslate{points}}% } \NewDocumentCommand\pointsandbonus{}{% \TotalExerciseGoal{points}{}{}% \IfExerciseGoalsSumTF{bonus-points}{=0} {} {\,(+\,\TotalExerciseGoal{bonus-points}{}{})}% \,\XSIMtranslate{points}% } \begin{document} \begin{exercise}[points=3,bonus-points=1] \lipsum[4] \end{exercise} \begin{exercise}[points=8,bonus-points=3] \lipsum[4] \end{exercise} \printtotalpoints\ vs.\@ \printcompletepoints\ vs.\@ \pointsandbonus \end{document} beantwortet 05 Mai '17, 10:27 cgnieder Funktioniert tadellos, danke!
(05 Mai '17, 22:16)
thor
|