章节格式和间距

章节格式和间距

我使用报告文档类,我想更改章节的格式、字母空间和页面位置。

现在章节如下: 在此处输入图片描述

我希望它看起来像这样: 在此处输入图片描述

我尝试过以下命令,但没有成功。

\documentclass[a4paper,11pt,twoside]{report}
\usepackage[english]{babel} 
\usepackage{MinionPro}
\usepackage{titlesec}
\usepackage[letterspace=100]
\titleformat{\section}{\lsstyle\uppercase}{\section}{1em}{}
\titlespacing{\section}{0pt}{2.5ex}{0ex}
\begin{document}
\chapter*{Acknowledgement}
\end{document}

我的最后一个问题是,如何将我的“11pt”改为“11.5pt”?有办法吗?

我将感激一切帮助。

谢谢你!

新图片: 在此处输入图片描述

更新的序言:

\documentclass[a4paper,11pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel} 
\usepackage{fixltx2e} 
\usepackage{layout}
\usepackage[protrusion=true,expansion=true]{microtype} 

% Different usepackages
\usepackage[T1]{fontenc}
\usepackage[lf]{MinionPro} %% MinionPro
\usepackage{icomma}
\usepackage{setspace}
\setstretch{1.1}
\usepackage{siunitx,booktabs}
\usepackage[pdftex]{graphicx}
\usepackage{tocloft}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\usepackage{tabu}

% Chapter
\SetTracking[no ligatures = {f}]{encoding = *}{100}
\usepackage{titlesec}
\titleformat{name=\chapter}[display]{ \figureversion{lining}}{\lsstyle\Large\MakeUppercase\chaptername\enspace \huge\thechapter}{2ex}{\huge\bfseries}%\uppercase
\titleformat{name=\chapter, numberless}{\lsstyle\LARGE\MakeUppercase}{}{0pt}{}
\titlespacing*{\chapter}{0pt}{2.5ex}{12ex}

% item / enumerate

\usepackage{enumitem}

% HTML code

\usepackage{listings}
\usepackage{color}

\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}

\lstset{frame=tb,
  language=Java,
  aboveskip=3mm,
  belowskip=3mm,
  showstringspaces=false,
  columns=flexible,
  basicstyle={\small\ttfamily},
  numbers=none,
  numberstyle=\tiny\color{gray},
  keywordstyle=\color{blue},
  commentstyle=\color{dkgreen},
  stringstyle=\color{mauve},
  breaklines=true,
  breakatwhitespace=true,
  tabsize=3
}


% Figure

\usepackage{chngcntr}
\counterwithout{figure}{chapter}

% More pdf-pages at same site

\usepackage{pdfpages}

% References
\usepackage[round, colon, sort, authoryear]{natbib}
\setlength{\bibsep}{0.0pt}
\setlength{\bibhang}{2em}
\bibpunct{(}{)}{;}{a}{}{}
\setcitestyle{notesep={: }}
\def\citeapos#1{\citeauthor{#1}'s (\citeyear{#1})}

% Quotes

\usepackage{csquotes}
\MakeOuterQuote{"}

% Page margins
\usepackage[left=3.5cm,right=3.5cm,top=3.5cm,bottom=3.5cm]{geometry}


% PDF background 
\usepackage{eso-pic}

% Random text
\usepackage{lipsum}

% Page style
\usepackage{fancyhdr}
\pagestyle{fancy}% <- !
% Defining MyStyle
\fancypagestyle{MyStyle}{%
    \fancyhead{}
    \fancyfoot{}
    \fancyfoot[RO]{\small{\leftmark} \ \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt} \ \small{\thepage}}
    \fancyfoot[LE]{\small{\thepage} \ \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt} \ \lsstyle\small{\MakeUppercase{\chaptername}}\ \thechapter}
\renewcommand{\headrulewidth}{0pt} % Remove header rule
\renewcommand{\chaptermark}[1]{\markboth{\lsstyle\uppercase{##1}}{}}
}
% Redefining the PLAIN style
\fancypagestyle{plain}{%
\fancyhead{} %Clean headers
\fancyfoot{} %Clean footers
\fancyfoot[RO]{{\vrule height 10pt width 1pt} \hspace{2pt} \ \thepage}
\fancyfoot[LE]{\thepage \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt}}
\renewcommand{\headrulewidth}{0pt} % Remove header rule
}

更新图片

在此处输入图片描述

已更新 - 目录 在此处输入图片描述

答案1

就像这样?我修正了你的代码,它无法编译(参见\usepackage[letterspace=100],它完全没有加载任何内容)。另外,如果你想更改章节的格式,请使用“titleformat{\chapter}”……

\documentclass[a4paper, twoside]{report}
\usepackage[utf8]{inputenc} 
\usepackage[english]{babel}
\usepackage{MinionPro}
\usepackage{microtype}
 \SetTracking[no ligatures = {f}]{encoding = *}{100}

\usepackage[explicit]{titlesec}
\titleformat{name=\chapter}[display]{ \figureversion{lining}}{\lsstyle\Large\MakeUppercase\chaptername\enspace \huge\thechapter}{2ex}{\LARGE\bfseries#1}%\uppercase
\titleformat{name=\chapter, numberless}{\lsstyle\LARGE}{}{0pt}{\MakeUppercase{#1}}
\titlespacing*{\chapter}{0pt}{2.5ex}{12ex}

\begin{document}

\chapter*{Acknowledgements}

It’s finished, finally. But it takes some time

\tableofcontents

\chapter{A first chapter}

Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.

\setcounter{chapter}{7}

\chapter{Conclusions}

A peremptory conclusion. A peremptory conclusion. A peremptory conclusion. A peremptory conclusion. A peremptory conclusion. A peremptory conclusion. A peremptory conclusion. A peremptory conclusion.

\end{document} 

至于11.5pt大小,我不确定差异是否会很明显。我认为,如果你使用 进行编译XeLaTeX,那么可以使用fontspecOpenType 版本的 Minion Pro 来完成。不过,没有测试过。

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

相关内容