注意到\tableofcontents命令里面调用如下(texdoc classes)

因此最简单的办法是临时renewcommand即可(目录的\section*可以整些不一样的样式)

\documentclass[]{ctexart}
\ctexset{section/format+=\raggedright}
\begin{document}
{
\RenewDocumentCommand{\section}{som}
{\bigskip\centering\bfseries#3\par\bigskip}
\tableofcontents
}
\section{111}
\section{222}
\section{333}
\end{document}multitoc兼容:

\documentclass[]{ctexart}
\usepackage[toc]{multitoc}
\ctexset{section/format+=\raggedright}
\begin{document}
{
\RenewDocumentCommand{\section}{som}
{\bigskip\centering\bfseries#3\par\bigskip}
\tableofcontents
}
\section{111}
\section{222}
\section{333}
\end{document}



问 在ctexart框架中,希望不借助tocloft的设置修改「目录」的对齐情况而不影响`\section*`