我在制作乳胶目录时遇到了问题。
- Latex 正在制作空白的目录后的页面如何消除?
- 我想缩小单词的字体内容通过设置字体大
- 我想将内容移到页面顶部
- 在实际的目录中,它们
\subsubsection
不会出现在目录中 - 我有四个 latex 文件。您建议将所有文件合并到一个 latex 中,还是最好将它们分开?我还采用了不同的页码样式,前 4 页使用罗马字母,而论文的其余部分则使用阿拉伯字母。
我只是把序言和乳胶选项放在目录里
\documentclass[10pt,a4paper,titlepage]{book}
\usepackage[paperwidth=165mm, paperheight=238mm, left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry}
%\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\newcommand*{\Resize}[2]{\resizebox{#1}{!}{$#2$}}%
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{empheq, nccmath}
%\usepackage{amsmath}
% \usepackage[overload]{empheq}
\usepackage{empheq, nccmath}
\usepackage{amsfonts}
\usepackage{showframe}
\usepackage{cases}
\DeclareFontFamily{U}{mathx}{\hyphenchar\font45}
\DeclareFontShape{U}{mathx}{m}{n}{
<-6> mathx5 <6-7> mathx6 <7-8> mathx7
<8-9> mathx8 <9-10> mathx9
<10-12> mathx10 <12-> mathx12
}{}
\DeclareSymbolFont{mathx}{U}{mathx}{m}{n}
\DeclareFontSubstitution{U}{mathx}{m}{n}
\DeclareMathAccent{\widebar}{0}{mathx}{"73}
%\usepackage{rotating}
\usepackage{subfloat}
\usepackage{subcaption}
\usepackage{adjustbox}
\usepackage{showframe}
\usepackage{fontspec}
\usepackage{lineno}
%\linenumbers
%\renewcommand{\baselinestretch}{1.8}
\setlength{\parindent}{4em}
\pagenumbering{arabic}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\cfoot{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
%\bibliographystyle{plain}
\renewcommand\thesection{\arabic{section}}
\setcounter{secnumdepth}{5}
\usepackage{epstopdf}
\usepackage{nomencl}
\makenomenclature
\usepackage{cases}
\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{A}{Symbols}{%
\ifstrequal{#1}{B}{Subscripts}{%
\ifstrequal{#1}{C}{Superscripts}{%
\ifstrequal{#1}{D}{Acronyms{}}}}}%
]}
% This will add the units
%----------------------------------------------
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
%----------------------------------------------
\usepackage{titlesec}
\titleformat*{\section}{\bfseries\Large}
%\usepackage{imakeidx}
\usepackage[utf8]{inputenc}
\begin{document}
\tableofcontents
\section{Hello}
..
\subsection{Hello 1.1}
..
\subsubsection{Hello1.1.1}
..
\section{Road}
..
\section{Road}
..
\section{Road}
...
\end{document}}
答案1
首先:我踢出了一些(但不是全部)与问题无关的包。
- 我无法重现空白页问题
- 例如,目录标题可以向上移动
\setlength{\cftbeforetoctitleskip}{0pt}
(这需要tocloft
包) 目录标题字体大小(和其他功能)可以设置
\renewcommand{\cfttoctitlefont}{\bfseries\Large}
这
tocloft
也需要subsubsection
默认情况下,不会出现在目录中,因为计数器tocdepth
的默认值为2
,即只有到subsections
才会出现在目录中。请使用或更大的值3
。
\documentclass[10pt,a4paper,titlepage]{book}
\usepackage[paperwidth=165mm, paperheight=238mm, left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{tabularx}
\newcommand*{\Resize}[2]{\resizebox{#1}{!}{$#2$}}% Where is this used?
\usepackage[english]{babel}
\usepackage{showframe}
%\linenumbers
%\renewcommand{\baselinestretch}{1.8}
\setlength{\parindent}{4em} %Sure???
\pagenumbering{arabic}
\usepackage{lineno}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\cfoot{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
%\bibliographystyle{plain}
\renewcommand\thesection{\arabic{section}}
\setcounter{secnumdepth}{5}
\usepackage{epstopdf}
\usepackage{nomencl}
\makenomenclature
\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{A}{Symbols}{%
\ifstrequal{#1}{B}{Subscripts}{%
\ifstrequal{#1}{C}{Superscripts}{%
\ifstrequal{#1}{D}{Acronyms{}}}}}%
]}
% This will add the units
%----------------------------------------------
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
%----------------------------------------------
\usepackage{titlesec}
\titleformat*{\section}{\bfseries\Large}
%\usepackage{imakeidx}
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage{tocloft}
\setlength{\cftbeforetoctitleskip}{0pt}
\setlength{\cftaftertoctitleskip}{0pt}
\renewcommand{\cfttoctitlefont}{\bfseries\Large} % Only large font
\setcounter{tocdepth}{3}
\begin{document}
\tableofcontents
\section{Hello}
\blindtext[5]
\subsection{Hello 1.1}
\subsubsection{Hello1.1.1}
\blindtext[5]
\section{Road}
\blindtext[5]
\section{Road}
\blindtext[5]
\section{Road}
\blindtext[5]
\end{document}}