LaTeX 看起来可能成为编写法律合同的有力工具。
我的合同格式非常简单,有三个降序标题级别。每个标题级别逐渐缩进 0.62 厘米。数字格式顺序如下:1. - (a) - (i)。
还有基本文本 - 其中一些居中,其他一些缩进,还有一些悬挂在标题下方。
我正在使用\documentclass{report}
,但还没有看到任何直接设置格式的方法。我是不是漏掉了什么?
简单合同:
1. Section (also boldface, all capitals and underlined) (b) Subsection - with possibly some text added. (i) Subsubsection - also possibly with some text.
答案1
我认为你要找的是一个名为的包,\titlesec
这是一个非常好的包,可以让你更改你的section subsection
和subsubsection
。你可以像这样使用它:
\documentclass{article}
\usepackage{titlesec}
\titleformat{\section}
{\huge\bfseries\uppercase} % What the formating looks like of the entire section
{\thesection} % This is for numbering, you can also leave it blank, or put simething else.
{0em} % This argument is for the distance, the distance between the second argument and that we feed to \titleformat
{}[\titlerule] % After the gap, between the number and the title but before the title
\begin{document}
\section{Some Section}
This is an example section.
\end{document}