
我使用了以下程式碼段為該部分中編寫的文字著色。我面臨的唯一問題是,添加此代碼後,我的部分被編號,這是我不想要的。有什麼建議麼?
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=0.4in]{geometry}
\usepackage{titling}
\usepackage{titlesec}
\usepackage{xcolor,lipsum}
\usepackage[most]{tcolorbox}
\titleformat{name=\section}[block]
{\sffamily\large}
{}
{0pt}
{\colorsection}
\newcommand{\colorsection}[1]{%
\colorbox{blue!20}{\parbox{\dimexpr\textwidth-2\fboxsep}{\thesection\ #1}}}
\begin{document}
\section{This is the title}
\end{document}