我一直在尝试甚至尝试使用这个论坛来解决我遇到的问题但我不知道如何解决它......
我对此等的代码是:
\documentclass[11pt,a4paper,oneside]{report}
\usepackage[utf8]{inputenc}
\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry} % setting pages
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{amsmath}
\usepackage{graphicx}
\graphicspath{ {images/} }
\linespread{2}
\usepackage{hyperref}
\usepackage{indentfirst}
\usepackage{float}
\usepackage{natbib}
\setcitestyle{firstauthoryear,open={(},close={)}}
\begin{document}
\begin{titlepage}
\begin{center}
\vspace*{1cm}
\Huge
\textbf{Thesis Title}
\vspace{0.5cm}
\LARGE
Thesis Subtitle
\vspace{1.5cm}
\textbf{}
\vfill
\vspace{0.8cm}
\includegraphics[width=0.4\textwidth]{logo.png}
\Large
Department of \\
College of Arts and Sciences\\
University of \\
Date
\end{center}
\end{titlepage}
\tableofcontents
\chapter{Introduction}
\input{chapters/introduction}
\chapter{Materials and Methods}
\input{chapters/chapter02}
\bibliographystyle{chicago}
\bibliography{refer}
\appendix
\end{document}
如果有人能阐明如何改变这一点,我将不胜感激。
谢谢
答案1
这是一个使用包的可能解决方案 titlesec
。
\documentclass[11pt,a4paper,oneside]{report}
\usepackage[utf8]{inputenc}
\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry} % setting pages
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{amsmath}
\usepackage{graphicx}
\graphicspath{ {images/} }
\linespread{2}
\usepackage{hyperref}
\usepackage{indentfirst}
\usepackage{float}
\usepackage{titlesec}
\usepackage{natbib}
\setcitestyle{firstauthoryear,open={(},close={)}}
\begin{document}
\titleformat{\chapter}[display]
{\normalfont\large\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\LARGE}
\titleformat{\section}
{\normalfont\Large\bfseries}{\thesection}{1em}{}
\titleformat{\subsection}
{\normalfont\large\bfseries}{\thesubsection}{1em}{}
\titlespacing{\chapter}{0pt}{-50pt}{1.8ex plus .2ex}
\titlespacing{\section}{0pt}{2.0ex plus 1ex minus .2ex}{1.8ex plus .2ex}
\titlespacing{\subsection}{0pt}{2ex plus 1ex minus .2ex}{1.0ex plus .2ex}
\begin{titlepage}
\begin{center}
\vspace*{1cm}
\Huge
\textbf{Thesis Title}
\vspace{0.5cm}
\LARGE
Thesis Subtitle
\vspace{1.5cm}
\textbf{}
\vfill
\vspace{0.8cm}
% \includegraphics[width=0.4\textwidth]{logo.png}
\Large
Department of \\
College of Arts and Sciences\\
University of \\
Date
\end{center}
\end{titlepage}
\tableofcontents
\chapter{Introduction}
%\input{chapters/introduction}
\chapter{Materials and Methods}
%\input{chapters/chapter02}
%
%\bibliographystyle{chicago}
%\bibliography{refer}
%
%\appendix
\end{document}
其中空间控制如下:\titlespacing{<command>}{<left>}{<before-sep>}{<after-sep>}