Sternchen in Prüfungsklasse hinzufügen

Sternchen in Prüfungsklasse hinzufügen

Ich schreibe einige Übungen für Schüler im examUnterricht. Ich möchte, dass einige Fragen nach dem Unterricht als Übung dienen und dies durch ein Asterisk nach der Fragennummer kennzeichnen, etwa so (a)*: . Ich habe versucht \part[*], aber das ergibt (* point). Was kann ich tun, bitte? Danke! Mein Code ist wie folgt.

\documentclass[english]{exam}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{bigints}
\usepackage{amssymb}
\usepackage{amsthm}

\begin{document}

\begin{questions}

\question

\begin{parts}

\part $*$ bla bla

\end{parts}

\end{questions}

\end{document}

Antwort1

Hier ist eine Möglichkeit, zwei Befehle zu definieren \afterclasspartund \standardpartdie gewünschte Formatierung bereitzustellen:

\documentclass{exam}

\newcommand\afterclasspart{\renewcommand\partlabel{(\thepartno)$^\ast$}}  
\newcommand\standardpart{\renewcommand\partlabel{(\thepartno)}}
  
\begin{document}

\begin{questions}
\question[10]
Why is there air?
\question
What if there were no air?
\begin{parts}
\part[5]
Describe the effect on the balloon industry.
\afterclasspart
\part[5]
Describe the effect on the aircraft industry.
\standardpart
\part[5]
Describe the effect on the wool industry.
\end{parts}
\question[20]
\begin{parts}
\afterclasspart
\part
Define the universe.
Give three examples.
\standardpart
\part
If the universe were to end, how would you know?
\part
If the universe were not to end, how would you know?
\end{parts}
\end{questions}

\end{document}

Das Ergebnis:

Bildbeschreibung hier eingeben

Vielleicht ergibt diese Variante eine bessere Ausrichtung der Beschriftungen:

\documentclass{exam}

\newcommand\afterclasspart{\renewcommand\partlabel{(\thepartno)\makebox[0pt]{$\ ^\ast$}}}  
\newcommand\standardpart{\renewcommand\partlabel{(\thepartno)}}
  
\begin{document}

\begin{questions}
\question[10]
Why is there air?
\question
What if there were no air?
\begin{parts}
\part[5]
Describe the effect on the balloon industry.
\afterclasspart
\part[5]
Describe the effect on the aircraft industry.
\standardpart
\part[5]
Describe the effect on the wool industry.
\end{parts}
\question[20]
\begin{parts}
\afterclasspart
\part
Define the universe.
Give three examples.
\standardpart
\part
If the universe were to end, how would you know?
\part
If the universe were not to end, how would you know?
\end{parts}
\end{questions}

\end{document}

Das Ergebnis:

Bildbeschreibung hier eingeben

Aktualisieren

Ein ähnliches Verfahren kann angewendet werden, um ausgewählten Fragen ein Asterisk hinzuzufügen:

\documentclass{exam}

\newcommand\afterclasspart{\renewcommand\partlabel{(\thepartno)\makebox[0pt]{$\ ^\ast$}}}  
\newcommand\standardpart{\renewcommand\partlabel{(\thepartno)}}
\newcommand\afterclassquestion{\renewcommand\questionlabel{\thequestion.\makebox[0pt]{$^\ast$}}}  
\newcommand\standardquestion{\renewcommand\questionlabel{\thequestion.}}  

\begin{document}

\begin{questions}
\afterclassquestion
\question[10]
Why is there air?
\standardquestion
\question
What if there were no air?
\begin{parts}
\part[5]
Describe the effect on the balloon industry.
\afterclasspart
\part[5]
Describe the effect on the aircraft industry.
\standardpart
\part[5]
Describe the effect on the wool industry.
\end{parts}
\question[20]
\begin{parts}
\afterclasspart
\part
Define the universe.
Give three examples.
\standardpart
\part
If the universe were to end, how would you know?
\part
If the universe were not to end, how would you know?
\end{parts}
\end{questions}

\end{document}

Bildbeschreibung hier eingeben

verwandte Informationen