oblivoir로는 문서 작성을 처음 해 보고 있습니다. 목차에서 chapter가 나타나는 형식을 조절하는 게
\chapternumberline{}
인 것 같은데, 숫자만 주는 게 아니라 제1장 과 같이 한꺼번에 주는 것 같아서 1만 표시하는 방법을 잘 모르겠습니다.
도와주시면 감사하겠습니다!
코드는 다음과 같습니다.
-----------
%XeLaTeX를 사용합니다.
\documentclass[
a5paper,10pt,
twoside,openright,
chapter
]{oblivoir}
%==기타======================
\setlength{\parindent}{0pt}
\newcommand{\emptypage}{
\newpage
\thispagestyle{empty}
\mbox{}
\newpage
}
%==표지 중앙정렬===============
\usepackage[a5paper]{geometry}
\savegeometry{normal}
\geometry{rmargin=2cm,lmargin=2cm}
%\savegeometry{infopage}
%==한글 사용==================
%\usepackage[hangul]{kotex}
\setmainfont[
Mapping=tex-text,AutoFakeBold={2.0},AutoFakeSlant={0.2}
]{KoPubBatangMedium}
\setsansfont[
Mapping=tex-text,AutoFakeBold={2.0},AutoFakeSlant={0.2}
]{KoPubDotumMedium}
%==표지======================
\pretitle{\begin{center}\huge}
\posttitle{\par\end{center}\vskip 0.5em}
\preauthor{\begin{flushright}
\large \lineskip 0.5em%
\begin{tabular}[t]{c}}
\postauthor{~엮음\end{tabular}\par\end{flushright}}
\predate{\begin{center}\large}
\postdate{\par\end{center}}
\title{}
\author{}
\date{}
%==항목 이름===================
\renewcommand{\abstractname}{들어가는 말}
\renewcommand{\chaptername}{부}
%==항목 모양===================
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}
{\thechapter\chaptername}
{5pt}
{}
\renewcommand{\cftchapterfont}{\bfseries\LARGE}
\renewcommand{\cftchapterpresnum}{\raggedleft}
\renewcommand{\cftchapteraftersnum}{\chaptername}
\addtolength{\cftchapternumwidth}{3em}
%\renewcommand{\chapternumberline}[1]{#1}
\begin{document}
%\loadgeometry{normal}
\begin{titlingpage}
\maketitle
\end{titlingpage}
\emptypage
\thispagestyle{empty}
%\loadgeometry{infopage}
\newpage
\begin{titlingpage}
\maketitle
\end{titlingpage}
\loadgeometry{normal}
\begin{abstract}
서문은 여기에
\end{abstract}
\tableofcontents
\newpage
\chapter{시 모음}
\end{document}
------
되신다면 이 질문도 답변해주시면 감사하겠습니다:
이 문서의 목적은 시집을 만드는 것입니다. 1부, 2부 등이 있고 각 부에 시들이 몇 개씩 포함될 예정입니다. 어떤 class를 사용하는 것이 가장 적합할까요?
KTUG 한국 텍 사용자 그룹