wildgoat的个人空间 https://blog.eetop.cn/wildgoat [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

[ZZ] [Latex] Appearance of the section headers

已有 930 次阅读| 2013-1-6 14:25 |个人分类:Latex相关

Example of the uses of the sectsty package

Even though LaTeX knows most there is to know about font sizes and  spacing for different parts of the document, it cannot detect the  purpose of the text. Although many documents will be fine with the  standard fonts, there are also documents which need changes to the  headers to look interesting. This is what the sectstypackage is for.

There is a lot of things this package will do. Have a look at the documentation.  You can prevent the text from being justified between narrow margins,  add rules and boxes, or make the header underlined. But that whatever  you do, you should think it through thoroughly before making any  changes. Underlining, for example, should almost never be used. Pick a  book from your bookshelf and try to find underlining. Chances are there  will not be a single occurance. Underlining will lower the reading speed  (and will probably make your document look ugly as well).

\documentclass{article}
\usepackage{sectsty}
\allsectionsfont{\sffamily}
\subsectionfont{\mdseries\itshape}
\begin{document}
\section{Top level header}
Some text
\subsection{Subsection header}
Some other text
\end{document}



点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 122

    粉丝
  • 42

    好友
  • 272

    获赞
  • 118

    评论
  • 22101

    访问数
关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-20 06:01 , Processed in 0.016103 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部