Adicionar asterisco na classe Exame

Adicionar asterisco na classe Exame

Estou escrevendo alguns exercícios para alunos que usam exama aula. Quero que alguma pergunta seja um exercício pós-aula e indique isso colocando um asterisco após o número da pergunta, algo como (a)*. Eu tentei \part[*], mas isso vai dar (* point). O que posso fazer, por favor? Obrigado! Meu código é o seguinte.

\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}

Responder1

Aqui está uma maneira de definir dois comandos \afterclassparte \standardpartfornecer a formatação desejada:

\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}

O resultado:

insira a descrição da imagem aqui

Talvez esta variante dê um melhor alinhamento aos rótulos:

\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}

O resultado:

insira a descrição da imagem aqui

Atualizar

Um procedimento semelhante pode ser aplicado para adicionar o asterisco às perguntas selecionadas:

\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}

insira a descrição da imagem aqui

informação relacionada