궁금점이 있읍니다.
아래 파일은 컴파일 하면 문제번호가
1. % 이렇게 시작합니다.
이 표현을
문제1. 로 하는 방법이 있나요? 처음 tex을 사용한 초보자입니다.
\documentclass[11pt,a4paper]{book}
\usepackage{kantlipsum}
\usepackage{exsheets}
\usepackage{kotex}
\DeclareInstance{exsheets-heading}{exclist}{default}{
runin = true ,
number-post-code = \space ,
attach = { main[r,vc]number[l,vc](-1em,0pt) } ,
above = 0pt,
below = 0pt
}
\SetupExSheets{
%% solution/print = true ,
headings = exclist ,
headings-format = \bfseries,
counter-within = chapter
}
\usepackage{scrextend}% needed with a KOMA-Script class, `addmargin' environment
\SetupExSheets{
question/pre-hook = \addmargin[1em]{0em} ,
question/post-hook = \endaddmargin ,
solution/pre-hook = \addmargin[1em]{0em} ,
solution/post-hook = \endaddmargin
}
% Presentation of Questions
% \begin{macrocode}
\newcommand{\QuestionNB}{\arabic{Question}.\ }
\begin{document}
\section{1차 TEST}
\begin{question}
집합 $X_n=\{1,2,3,\cdots,n\}$에 대하여 $X_n$에서 $X_n$으로 일대일 대응함수 $f$중 정의역의 모든 원소 $x$에 대하여
아래 조건을 만족하는 함수 $f$의 개수를 $a_n$으로 정의하자.
\end{question}
\begin{solution}
$n=1,2,3,,4$는 쉽게 다음과 같음이 보여진다.
$$a_1=1,\quad a_2=2,\quad a_3=6,\quad a_4=14$$
위의 식을 이용하고, $f(5)=3,4,5$인 경우로 나누어서 구하면 쉽게 $a_5=31$임이 구해진다.
\end{solution}
\vfill
\begin{question}
This is sample question 2.
\end{question}
\begin{solution}
This is sample solution 2.
\end{solution}
\vfill
\newpage
\printsolutions
\end{document}
감사합니다.
KTUG 한국 텍 사용자 그룹