Latex source code, how to display \section on the left

Table of contents

Problem Description:

problem solved:

How to not display the serial number:

How to align to the left:


Problem Description:

Generally, whether you are submitting to a journal or a conference, the \section in the default .tex source code may not be displayed on the left. Sometimes, it is necessary to display the section title on the left without changing the .sty without displaying the serial number.

problem solved:

How to not display the serial number:

After section, add *, such as

\section*{title}

How to align to the left:

Insert the corresponding package and use the following code at the corresponding location:

\usepackage{titlesec}
% 保存原始 \section 格式
\newcommand{\sectionbackup}{\titleformat*{\section}{\Large\bfseries\centering}}

% 设置 \section 居左
\titleformat*{\section}{\Large\bfseries\raggedright}

% 你的居左 \section
\section{Your Left-Justified Section}

% 恢复原始 \section 格式
\sectionbackup

Note that the above code only processes the part, that is, only controls the section you want to change the position, and the rest will not be affected.

Guess you like

Origin blog.csdn.net/weixin_41862755/article/details/132831634