章节(或部分)标题前的装饰钩或符号

章节(或部分)标题前的装饰钩或符号

我正在用 latex 写我的博士论文,从这个论坛学到了很多东西。但是,我找不到如何在章节标题前添加装饰钩的问题的答案。我认为这样做看起来相当不错,但这只是个人意见。

答案1

如果你想看得更深入,而不仅仅是章节标题前的“钩子”,请查看以下示例文森特·祖尼金德对于普通书籍类。Lars Madsen 为回忆录汇编了一些很好的例子:回忆录章节风格甚至还有 Stefan Kottwitz 的 TikZTeX博客

答案2

Sander van Delden 在问题中给出了解决方案。我将其移至答案。


也许我问这个问题太快了,但我想我找到了答案。由于网上没有答案(几个月前我搜索过这个),我将在下面为那些可能想在章节标题前加装饰的人提供一个最小的工作示例。

\documentclass[fleqn,10pt,twoside]{book} % title page, draft - warning draft turns off hyperref fleqn = left alignment of equantion flushleft
\usepackage{titlesec} %you can set the layout of the chapter title with this one

%-----this creates a decorative hook (picture) that can be put before the capter-----------------
\newcommand{\hook}{
\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\linethickness{.4mm} % linethickness of next line
\put(0,-2){\line(0,10){8}} % horizontal line(vector x, vector y){length} were length is in unitlength (in this case mm)  \put(vector x, vector y) this puts the line -2 mm below startpoint 
\linethickness{.6mm} % linethickness of next line
\put(0,-2){\line(10,0){6}} % vertical line(vector x, vector y){length} were length is in unitlength (in this case mm) \put(vector x, vector y) this puts the line -2 mm below startpoint 
\end{picture}
}
%----------------------------------------------------------------------------------------------------------------

\begin{document}
\titleformat{\chapter}[hang]{\huge}{}{1em}{\hook} %\titleformat{ command }[ shape ]{ format }{ label }{ sep }{ before }[ after ] see package titlesec for more info
\titlespacing{\chapter}{6mm}{1pt}{12mm} %\titlespacing{ command }{ left }{ beforesep }{ aftersep }[ right ] see package titlesec for more info

\chapter{Funding}

\end{document}

结果:

编译结果

相关内容