我不知道为什么目录在下面这个 WE 中位于底部。每当我增加
\titleformat{\chapter}
{\fontsize{5cm}{5em}\bfseries} % format
{} % label
{0pt} % sep
{\vfill\raggedleft} % before-code
{\vspace{4cm}\normalsize}
字体大小间隔越小,间隔越小\fontsize{5cm}{5em}
。有什么想法吗?
此外,有没有办法在章节标题上方写文字?我想在每个章节首页的章节标题上方创建一种 minitoc(手动和自动)。
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[UKenglish]{babel}
\usepackage[a5paper,
%hmargin = {3cm, .8in},
left = 2.3cm,
%right = 1cm,
%width = 10.8cm,
%height = 17cm
]
{geometry}
\usepackage{titlesec}
\titleformat{\chapter}
{\fontsize{5cm}{5em}\bfseries} % format
{} % label
{0pt} % sep
{\vfill\raggedleft} % before-code
{\vspace{4cm}\normalsize}
\addto\captionsUKenglish{% Replace "english" with the language you use
\renewcommand{\contentsname}%
{}%
}
\usepackage{titletoc}
%http://tex.stackexchange.com/questions/83184/how-to-change-style-and-color-of-table-of-content
\titlecontents{chapter}[4em]
{}
{\LARGE\bfseries}
{}
{\titlerule*[1pc]{.}\contentspage\\}
\begin{document}
\tableofcontents
\chapter{asdfasdf asdf asdf asdf asdf}
\newpage
\chapter{asdfasdf asdf asdf}
\newpage
\chapter{asdfasdf asdf}
\newpage
\chapter{asdfasdf asdf}
\newpage
\chapter{asdfasdf asdf}
\newpage
\chapter{asdfasdf asdf}
\newpage
\chapter{asdfasdf asdf}
\newpage
\chapter{asdfasdf asdf}
\newpage
\end{document}
答案1
我不太确定,但我认为这可以回答这个问题。
章节标题的排版暂时被禁用,因此不会刷新任何材料。
\documentclass{report}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[UKenglish]{babel}
\usepackage[a5paper,
%hmargin = {3cm, .8in},
left = 2.3cm,
%right = 1cm,
%width = 10.8cm,
%height = 17cm
]
{geometry}
\usepackage{showframe}
\usepackage{titlesec}
\titleformat{\chapter}
%{\fontsize{5cm}{5em}\bfseries}% JB I will not accept this for a page size of a5
{\Huge\bfseries}
{}
{0pt}
{\vfill\raggedleft}
{\vspace{4cm}}
\usepackage{titletoc}
%http://tex.stackexchange.com/questions/83184/how-to-change-style-and-color-of-table-of-content
\titlecontents{chapter}[4em]{}{\large\bfseries}{}{\titlerule*[1pc]{.}\contentspage\endgraf}
\begin{document}
{%we use a group to limit the redefinition
\renewcommand{\chapter}[2]{%do nothing
}
\tableofcontents}
\chapter{Wombats are cute}
\newpage
This is some text
\chapter{Capybaras are cool}
\newpage
\chapter{Maras are cuddly}
\newpage
\chapter{Penguins don't fly}
\newpage
\chapter{Ducks like to quack}
\newpage
\end{document}