
titlesec
문서 클래스 와 함께 패키지를 사용하고 있습니다 scrartcl
. 내 섹션의 형식을 다음과 같이 지정하고 싶습니다.
강의 1. 섹션명
지금은 명령을 사용하고 있습니다
\titleformat{\section}{\fontsize{13}{13}\bfseries\sffamily}{Lecture \thesection}{1em}{}
내가 필요한 결과를 얻지 못하는 것 같지만. 번호 매기기 및 레이블은 단순히 무시됩니다.
답변1
titlesec
KOMA-Script 클래스와 함께 패키지를 사용하지 마십시오 . KOMA-Script 명령을 재정 \sectionformat
의하여 접두사를 삽입 할 수 있습니다 Lecture
.
\renewcommand\sectionformat
{Lecture\enskip\thesection\autodot\hspace{1em}}
예:
\documentclass[numbers=withenddot]{scrartcl}
\renewcommand\sectionformat
{Lecture\enskip\thesection\autodot\hspace{1em}}
\addtokomafont{section}{\large}
\usepackage{lipsum}
\begin{document}
\section{Section name}
\lipsum
\end{document}
결과