2016-03-24 20 views
0

ラテックスのセクションの番号付けに問題があります。セクションの番号は最初のセクションにのみ表示されます

私は章や節の番号が

1第一章

1.1最初のセクションのようにしたい

1.2秒のセクション

問題は、そのセクションのナンバリングであります最初のセクションにのみ表示され、私はなぜこれが起こっているのか分かりません!

これは私が使用したコードです。

\documentclass [a4paper,12pt]{report} 
\usepackage{times} 
\usepackage{graphicx} 
\usepackage{geometry} 
\usepackage[utf8]{inputenc} % for numbering of pages 
\usepackage{ragged2e} 
\usepackage{indentfirst} 
\usepackage{setspace} 
\usepackage{titlesec} 
\usepackage[english]{babel} 
\renewcommand\thesection{\arabic{section}} % for the chapters numbering 

%margins 
%1 inch from top, buttom and right side of the page and 1.5 inch from left side of the page 

\geometry{ 
a4paper, 
left=1.5in,right=1in,top=1in,bottom=1in 
} 



\onehalfspacing 
\centering 
\pagenumbering{roman} 



\titleformat{\section} 
    {\normalfont\fontsize{16}{15}\bfseries}{\thesection}{1em}{} 

    \titleformat{\subsection} 
    {\normalfont\fontsize{14}{15}\bfseries}{\thesection}{1em}{} 

    \titleformat{\subsubsection} 
    {\normalfont\fontsize{12}{15}\bfseries}{\thesection}{1em}{} 



\renewcommand{\thesection}{\thechapter.\number\numexpr\value{section}\relax} 
\renewcommand{\thesubsection}{\thesection.\number\numexpr\value{subsection}\relax} 
\renewcommand{\thesubsubsection}{\thesubsection.\number\numexpr\value{subsubsection}\relax} 
\setcounter{secnumdepth}{3} 

\setcounter{chapter}{1}% Not using chapters, but they're used in the counte 

\begin{document} 

% this is the table of contents of the document 

\renewcommand*\contentsname{Table of Contents} 
%-------------------------------------------------- 
\tableofcontents 
\newpage 
\listoffigures 
\newpage 
\listoftables 

% this is the introduction chapter 
\newpage 
\pagenumbering{arabic} 

\chapter*{\centering \vspace{80 mm} Chapter One: Introduction} 
\addcontentsline{toc}{chapter}{\numberline{}Chapter One: Introduction}% 
\newpage 

\justify 
\setlength{\parindent}{5 ex} 
\section{Introduction} 
%write introduction here 

\section{Problem Definition} 
%write Problem Definition here 


\section{Aim and Objectives} 
%write Aim and Objectives here 

\section{Methodology} 

%write Methodology here 


\section{Project Scope} 

%write Project Scope here 

\section{Project Timeline} 

%write Project Timeline here 

\section{Conclusion} 

%write Conclusion here 

\end{document} 

ただし、数字は最初のセクション(はじめに)にのみ表示されます。数字を他のセクションにも表示させるにはどうすればいいですか?何らかの理由で

enter image description here enter image description here

答えて

-1

次のパッケージおよびコード(私が起こっていることを理由はわかりません)セクションの番号に影響を与えます。次のコードを削除すると、セクションの番号付けも見出しに表示されます。

\usepackage{titlesec} 

\titleformat{\section} 
    {\normalfont\fontsize{16}{15}\bfseries}{\thesection}{1em}{} 

    \titleformat{\subsection} 
    {\normalfont\fontsize{14}{15}\bfseries}{\thesection}{1em}{} 

    \titleformat{\subsubsection} 
    {\normalfont\fontsize{12}{15}\bfseries}{\thesection}{1em}{} 

ここで、見出しのフォントサイズを変更する別の方法を見つける必要があります。 titlesecパッケージを使用せずにフォントサイズを変更する方が良い方法を投稿していただければ幸いです。

関連する問題