장 제목 생성 중

장 제목 생성 중

나는 다음 요구 사항에 따라 논문의 장을 준비하려고 합니다.

  1. 장 번호(아랍어)는 페이지 상단에 Candara 27pt의 이탤릭체로 오른쪽 정렬로 표시되고 제목은 첫 글자 대문자를 사용하여 표시됩니다. 장 번호와 장 제목 사이에 수직 간격이 있어서는 안 됩니다. 장 제목과 첫 문단 사이에는 5줄 간격(두께 11pt)을 사용해야 합니다.

  2. 장은 서로 다른 개념을 별도로 제시하기 위해 섹션, 하위 섹션 및 하위 하위 섹션으로 나눌 수 있습니다. 섹션과 하위 섹션은 십진수를 사용하여 번호를 매길 수 있습니다(예: 2장의 두 번째 섹션은 2.2, 2장의 세 번째 섹션의 네 번째 하위 섹션은 2.3.4). 하위 섹션은 "(a)", " (b)”, ... 이 세 번째 수준을 넘어서는 더 이상 하위 섹션을 작성해서는 안 됩니다. 장, 섹션 및 하위 섹션은 페이지 번호가 오른쪽에 플러시된 내용에 포함되어야 합니다. 내부 하위 섹션은 내용에 포함되지 않습니다.

  3. 장 번호는 1부터 시작해야 합니다.

main.tex모든 챕터를 하나씩 포함하는 파일을 준비했습니다 . 내 코드의 일부는 다음과 같습니다.

\documentclass[twoside, 11pt]{book}
\usepackage[top = 1.25cm, bottom = 1.25cm, left = 3.5cm, right = 1.25cm]{geometry}
\pagestyle{plain}
\usepackage{palatino, amsmath, amssymb, amsthm, bookmark}
\usepackage{graphicx}
\graphicspath{{figures/}}

\begin{document}

\frontmatter
    \include{frontpage/frontpage}

\tableofcontents
\include{toc}

\pagenumbering{arabic}\setcounter{page}{1}

\mainmatter
    \include{chapter2/chapter2}

\backmatter
\pagenumbering{roman}\setcounter{page}{1}
\bibliographystyle{plain}
\bibliography{library}
\end{document} 

2장은 다음으로 시작됩니다.

\chapter{Review of Literature} 

\section{Preliminaries of Graph theory}

    A graph $G = (V(G), E(G))$ is a

나는 다음과 같은 문제에 직면하고 있습니다.

  1. 제목 위에 장 번호를 생성하지 않습니다.

  2. 장 번호는 0부터 시작됩니다.

그에 따라 문제를 해결하도록 도와주실 수 있나요?

답변1

여기 첫 번째 초안이 있습니다. Candara사용할 패키지가 없기 때문에 다른 글꼴로 바꿔야 했습니다 (그러나 및 와 pdflatex함께 사용할 수 있음 ).fontspecxe/lualatex

\documentclass[twoside, 11pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[vmargin= 1.25cm, left = 3.5cm, right = 1.25cm, showframe]{geometry}
\usepackage{titlecaps}
\setcounter{secnumdepth} {3}
\pagestyle{plain}
\usepackage{amsmath, amsthm, bookmark}%
\usepackage{newpxtext, newpxmath}
\usepackage{graphicx}
\graphicspath{{figures/}}
%
\usepackage[explicit]{titlesec} 
\usepackage{titletoc}
\titleformat{\chapter}[block]{\fontfamily{verdana}\fontsize{27pt}{34pt}\selectfont\filleft}{\thechapter.}{0.5em}{#1}
\titleformat{name=\chapter, numberless}[block]{\fontfamily{verdana}\fontsize{27pt}{34pt}\selectfont\filleft}{}{0em}{#1}
\titlespacing{\chapter}{0pt}{12pt plus 2pt minus 2pt}{36pt}

\titleformat{\section}{\fontfamily{verdana}\Large}{\thesection}{0.5em}{#1}
\titleformat{name=\section, numberless}{\fontfamily{verdana}\Large}{}{0em}{\addcontentsline{toc}{section}{#1}#1}

\titleformat{\subsection}{\fontfamily{verdana}\large}{\thesubsection}{0.5em}{#1}
 \titleformat{name=\subsection, numberless}{\fontfamily{verdana}\large}{}{0em}{\addcontentsline{toc}{subsection}{#1}#1}

 \titleformat{\subsubsection}{\fontfamily{verdana}\large}{\thesubsubsection}{0.5em}{#1}
\renewcommand\thesubsubsection{(\alph{subsubsection})}

\titlecontents{chapter} [0em] %
{\bigskip\fontfamily{verdana}\selectfont \bfseries}
{\thecontentslabel\quad}%\thecontentslabel
{}% numberless
{\hfill\contentspage}[\smallskip] %

\titlecontents{section} [1.667em] %
{\medskip\fontfamily{verdana}\selectfont}
{\thecontentslabel\enspace}%\thecontentslabel
{\hspace*{2.12em}}%numberless
{\titlerule*[1pc]{.}\contentspage}[\smallskip]%

\titlecontents{subsection} [3.76em] %
{\medskip\fontfamily{verdana}\selectfont}
{\thecontentslabel\enspace}%\thecontentslabel
{\hspace*{3.12em}}%numberless
{\titlerule*[1pc]{.}\contentspage}[\smallskip]%

\begin{document}

\tableofcontents

\chapter{Review of Literature}

\section{Preliminaries of Graph theory}

    A graph $G = (V(G), E(G))$ is a

\section*{An unnumbered section}

\subsection{Different Kinds of Graphs}

\subsection*{Other Kinds of Graphs}

\subsubsection{A test subsub}

\end{document} 

여기에 이미지 설명을 입력하세요 여기에 이미지 설명을 입력하세요

관련 정보