![Documentclass 시험에서 질문 들여쓰기를 어떻게 제어할 수 있나요?](https://rvso.com/image/461878/Documentclass%20%EC%8B%9C%ED%97%98%EC%97%90%EC%84%9C%20%EC%A7%88%EB%AC%B8%20%EB%93%A4%EC%97%AC%EC%93%B0%EA%B8%B0%EB%A5%BC%20%EC%96%B4%EB%96%BB%EA%B2%8C%20%EC%A0%9C%EC%96%B4%ED%95%A0%20%EC%88%98%20%EC%9E%88%EB%82%98%EC%9A%94%3F.png)
내가 원하는 대로 질문의 형식을 지정하기 위해 qformat을 사용했지만 이전 단락처럼 왼쪽 여백에 "질문"이 플러시되도록 할 수는 없습니다. 출력 결과에 대한 코드와 이미지가 포함되어 있습니다. 내가 정말로 원하는 것은 문제의 Q가 허용을 위한 A 바로 아래에 있는 것입니다. 누구든지 도와줄 수 있나요?
\documentclass{exam}
\usepackage[a4paper,left=1cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{setspace}
\setlength\parindent{0pt}
\begin{document}
\qformat{\textbf{\quad Question \thequestion. (Marks \totalpoints)\hfill} }
{\huge\textbf{Section II}}
{\large\textbf{Attempt All Questions}
\textbf{Allow about 45 Minutes for these questions}\newline}
%\newgeometry{left=0.5cm}
\begin{questions}
%\fillwithlines{2cm}
\question What is the time
\question[3]
Whas is the color of the ocean
\question[3]
What is the color of the sky
\fillwithlines{2cm}
\singlespacing
\end{questions}
\end{document}
답변1
여기있어. \renewcommand{\questionshook}
왼쪽 여백을 사용하고 변경해야 합니다 . 매뉴얼 섹션 4.4에 더 많은 정보가 있습니다.
\documentclass{exam}
\usepackage[a4paper,left=1cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{setspace}
\setlength\parindent{0pt}
\renewcommand{\questionshook}{%
\setlength{\leftmargin}{0pt}%
\setlength{\labelwidth}{-\labelsep}%
}
\begin{document}
\qformat{\textbf{Question \thequestion. (Marks \totalpoints)}\hfill}
{\huge\textbf{Section II}}
{\large\textbf{Attempt All Questions}
\textbf{Allow about 45 Minutes for these questions}\newline}
\begin{questions}
\question What is the time
\question[3]
Whas is the color of the ocean
\question[3]
What is the color of the sky
\fillwithlines{2cm}
\singlespacing
\end{questions}
\end{document}