是否可以使用 typearea 包获取文档的页面布局,但 frontmatter(我的论文封面)除外,它应该是经典的书本单面文档类?
我当前的代码(简化)是:
\documentclass[10pt,a4paper,italian,oneside]{book}
\usepackage[headinclude = true, footinclude=false]{typearea}
\setlength{\footnotesep}{0.3cm}
\setlength{\skip\footins}{1cm}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\usepackage{subcaption}
\usepackage{gensymb}
\usepackage{url}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[italian]{babel} %sillabazione
\usepackage{enumerate}
\usepackage{array}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{\thechapter\ #1}{}}
\fancyhf{}
\fancyhead[R]{\bfseries\thepage}
\fancyhead[L]{\bfseries\nouppercase{\leftmark}}
\usepackage{float}
\usepackage{algorithm}
\floatname{algorithm}{Algoritmo}
\usepackage{algorithmic}
\usepackage{listingsutf8,multicol}
\usepackage{natbib}
\usepackage{setspace}
\numberwithin{figure}{chapter}
\numberwithin{table}{chapter}
\usepackage{hyperref}
\hypersetup{bookmarksnumbered}
\linespread{1.5}
\begin{document}
\frontmatter
\input{./beginEnd/title.tex}
\cleardoublepage
\tableofcontents
\typearea[2mm]{12}
\recalctypearea
\mainmatter
\input{./chapters/chapter01_introduzione.tex}
\input{./chapters/chapter02_movementepathfinding.tex}
\backmatter
\bibliographystyle{alpha}
\nocite{*}
\bibliography{./beginEnd/biblio}
\addcontentsline{toc}{chapter}{Bibliografia}
\end{document}
编辑:
我设法仅在标题页和目录之后按以下方式设置自定义 DIV 和 BCOR 设置:
\documentclass[10pt,a4paper,italian,oneside]{book}
\usepackage{typearea}
\setlength{\footnotesep}{0.3cm}
\setlength{\skip\footins}{1cm}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\usepackage{subcaption}
\usepackage{gensymb}
\usepackage{url}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[italian]{babel} %sillabazione
\usepackage{enumerate}
\usepackage{array}
\usepackage{fancyhdr}
\renewcommand{\chaptermark}[1]{%
\markboth{\thechapter\ #1}{}}
\fancyhf{}
\fancyhead[R]{\bfseries\thepage}
\fancyhead[L]{\bfseries\nouppercase{\leftmark}}
\usepackage{float}
\usepackage{algorithm}
\floatname{algorithm}{Algoritmo}
\usepackage{algorithmic}
\usepackage{listingsutf8,multicol}
\usepackage{natbib}
\usepackage{setspace}
\numberwithin{figure}{chapter}
\numberwithin{table}{chapter}
\usepackage{hyperref}
\hypersetup{bookmarksnumbered}
\linespread{1.5}
\begin{document}
\frontmatter
\input{./beginEnd/title.tex}
\cleardoublepage
\tableofcontents
\KOMAoptions{DIV=12,BCOR=2mm,headinclude=true,footinclude=false}
\recalctypearea
\pagestyle{fancy}
\mainmatter
\input{./chapters/chapter01_introduzione.tex}
\input{./chapters/chapter02_movementepathfinding.tex}
\backmatter
\bibliographystyle{alpha}
\nocite{*}
\bibliography{./beginEnd/biblio}
\addcontentsline{toc}{chapter}{Bibliografia}
\end{document}
对于目录之后的页面,它显然可以工作,但调用 \usepackage{typearea} 已经加载了一些 DIV 和 BCOR 的默认值,因此标题页和目录已经受到影响。相反,我希望实现的是让这两个页面具有与默认 latex 书籍类定义的相同的顶部和底部边距比率(应该是 1:1,而不是 KOMAscript 的 1:2)。有没有办法说:“仅从这个特定点开始对我的页面进行 KOMAscripting”?