![框架厚度与 titlesec](https://linux22.com/image/410628/%E6%A1%86%E6%9E%B6%E5%8E%9A%E5%BA%A6%E4%B8%8E%20titlesec.png)
如何使用 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}