
答案1
為了使用最小間距,您可以載入eqparbox
並使用下列\eqmakebox[tag]
命令:共用相同標籤的所有此類方塊都具有與最寬內容相對應的寬度。
無關:沒有必要指定hang
樣式-它是預設的。另外,無需重複字體規格:第一個強制參數\titleformat
是全域分配(標籤+標題)。
\titleformat{\section}{\fontsize{10}{11}\selectfont\bfseries}{\eqmakebox[Sec][l]{\thesection.}}{20mm}{\MakeUppercase}