标题样式哪里出问题了?

发布于 2024-06-30 16:19:10

documentclass[10pt,a4paper]{ctexbook}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[left=3.00cm, right=3.00cm, top=3.00cm, bottom=3.00cm,headheight=2.5cm]{geometry}
usepackage{chngcntr}

counterwithout{section}{chapter}
counterwithout{subsection}{section}

ctexset{%

contentsname = {\heiti\zihao{3} 目\ \ 录},
chapter={titleforma={\centering\heiti\zihao{-2}},
    beforeskip=2ex,
    afterskip=2ex
},
section={name={,、},
    number=\chinese{section},
    nameformat={\zihao{4}\bfseries},
    aftername={},
    titleformat={\raggedright\zihao{4}\bfseries\heiti},
    beforeskip = 1.8ex,
    afterskip = 1.8ex,
    break=\Needspace{4ex}
},
subsection={name={(,)},
    number=\chinese{subsection},
    nameformat={\zihao{-4}\bfseries},
    aftername={-},
    titleformat={\zihao{-4}\bfseries\heiti},
    beforeskip = 1.0ex,
    afterskip = 1.0ex,
    break=\Needspace{4ex}
}

}
begin{document}

\begin{titlepage}
    \tableofcontents
\end{titlepage}

\chapter*{AAAA}

\noindent\textbf{摘要:}aaaa

\noindent\textbf{关键词:}aa bb  

\section{BB}

This is some text.。

\section{CCC}

This is some text.

\subsection{DDD}

This is some text.


\subsection{EEE}

This is some text.

\subsection{FFF}

This is some text.

\section{GGGG}

\subsection{HHHH}

This is some text.

\subsection{III}

This is some text.

\subsection{JJJ}

This is some text.

\subsection{KKK}

This is some text.

\section{LLL}

\subsection{MMM}

This is some text.

\subsection{NNNN}

This is some text.
    
\subsection{OOO}
    
This is some text.
    
\subsection{加强信息化建设,提高财务管理效率}
    
This is some text.
    
\section{PPP}
    
This is some text.

end{document}

查看更多

关注者
0
被浏览
360
1 个回答
时珍
时珍 2024-08-08
面对困难的勇气!

代码块可以这样放,'' '代码块' '',左右两边各3个反引号(左上角esc键下方)。
另外这里导入包,至少要反斜杠吧。
代码太多了,先写一小部分,找错。

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览