如何使用 titlesec 改变框架的粗细?
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{titlesec}
\begin{document}
\titleformat{\section}[frame]
{\normalfont}{\filleft\Huge\bfseries\ Chapter 7\ }
{30pt}{\Huge\bfseries\filcenter}\section{this section}
\end{document}
答案1
只需添加类似以下内容\setlength{\fboxrule}{5pt}
:
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{titlesec}
\begin{document}
\titleformat{\section}[frame]
{\normalfont\setlength{\fboxrule}{5pt}}{\filleft\Huge\bfseries\ Chapter 7\ }
{30pt}{\Huge\bfseries\filcenter}\section{this section}
\end{document}