시험 수업에 별표 추가

시험 수업에 별표 추가

나는 exam수업을 사용하는 학생들을 위한 몇 가지 연습문제를 작성하고 있습니다. 어떤 질문을 방과후 연습으로 삼고 질문 번호 뒤에 별표를 붙여서 표시하고 싶습니다 (a)*. 나는 시도했지만 \part[*]이것은 줄 것이다 (* point). 어떻게 해야 할까요? 감사합니다! 내 코드는 다음과 같습니다.

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

답변1

다음은 두 명령을 정의 \afterclasspart하고 \standardpart원하는 형식을 지정하는 한 가지 방법입니다.

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

결과:

여기에 이미지 설명을 입력하세요

아마도 이 변형은 레이블에 대한 더 나은 정렬을 제공할 것입니다.

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

결과:

여기에 이미지 설명을 입력하세요

업데이트

선택한 질문에 별표를 추가하려면 유사한 절차를 적용할 수 있습니다.

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

여기에 이미지 설명을 입력하세요

관련 정보