
쉬운 대답이 있을 것이라고 확신하지만 \renew 명령으로 다른 작업을 시도하면서 좌절감에 빠졌습니다.
자동 번호 매기기와 함께 "질문" 텍스트를 포함하도록 모든 섹션 제목의 형식을 다시 지정하고 싶습니다. 지금 나 한테있어:
\section{Question 1}
\section{Question 2}
\section{Question 3}
예상된 결과로. 다음을 사용하여 섹션 제목을 모두 다음과 같이 표시하고 싶습니다.
\section{}
\section{}
\section{}
텍스트가 다음과 같이 표시되도록
Question 1
Question 2
Question 3
이것이 가능할까요? 혹시 힌트가 있는 사람이 있나요? 고마워요, CC님.
답변1
답변2
samcarter의 솔루션과 유사하지만 다음을 사용합니다 \section
(인수가 필요하지 않음).
\documentclass{article}
\let\oldsection\section% Store \section in \oldsection
\renewcommand{\section}{% Update \section
\refstepcounter{section}% Step section counter
\oldsection*{Question~\thesection}}% Write a \section* with a specific header
\begin{document}
\section
Some content.
\section
Some more content.
\end{document}