如何解决label 和 sectiontitle 之间的间距
我想更改标签和部分标题之间的间距。现在我将 titlesec
与 scrartcl
一起使用,但有警告。我猜是因为 titlesec
的 KOMA 脚本存在一些问题。
所以我想通过使用 KOMA-Script 命令来创建相同的内容。你有什么想法吗?
\documentclass[pdftex,a4paper]{scrartcl}
\usepackage{titlesec}
\titleformat{\section}[hang]
{\normalfont\bfseries}{\thesection}{1cm}{}
\titleformat{\subsection}[hang]
{\normalfont\bfseries}{\thesubsection}{3cm}{}
\titleformat{\subsubsection}[hang]
{\normalfont\bfseries}{\thesubsubsection}{5cm}{}
\begin{document}
\section{Ein erster Abschnitt}
\subsection{Unterabschnitt}
\subsubsection{Unter-Unterabschnitt}
\end{document}
解决方法
快速破解:
\documentclass[
%pdftex,a4paper]{scrartcl}
\renewcommand*{\sectionformat}{\thesection\autodot\enskip\hspace{2cm}}
\renewcommand*{\subsectionformat}{\thesubsection\autodot\enskip\hspace{2cm}}
\renewcommand*{\subsubsectionformat}{\thesubsubsection\autodot\enskip\hspace{2cm}}
\begin{document}
\section{Ein erster Abschnitt}
\subsection{Unterabschnitt}
\subsubsection{Unter-Unterabschnitt}
\end{document}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。