Documentclass 시험에서 질문 들여쓰기를 어떻게 제어할 수 있나요?

Documentclass 시험에서 질문 들여쓰기를 어떻게 제어할 수 있나요?

내가 원하는 대로 질문의 형식을 지정하기 위해 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}

결과

관련 정보