该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
如何在目录中产生“附录A”
为产生“附录A、A.1(附录章节)”的样式,我在书中找到了如下代码(期望效果如图):
\makeatletter
\newcommand{\listofappendix}{\chapter{附录}\@starttoc{app}}%创建一种新的目录需要使用系统内部命令:@starttoc{扩展名}\makeatother
\newcommand{\appchapter}[1]{\chapter{#1}\addcontentsline{app}{chapter}{附录~\thechapter#1}}\newcommand{\appsection}[1]{\section{#1}\addcontentsline{app}{section}{\thesection#1}}
\listofappendix
\appendix
\appchapter{MATLAB 程序}
\appsection{傅立叶函数曲线}
\appsection{频率响应曲线}
根据上述内容输入后,latex总是提示
“File ended while scanning use of \appchapter.”
\documentclass[UTF8,a4paper,11pt,titlepage,oneside]{ctexbook}
\usepackage{titlesec}%section,subsection格式
\usepackage{amsmath}
\usepackage{zhnumber}
\setcounter{tocdepth}{1}%设置目录深度
\titleformat{\part}{\centering\Hug