楼主: oliyiyi
1828 1

titlesec宏包定制的part样式分享 [推广有奖]

版主

已卖:2997份资源

泰斗

1%

还不是VIP/贵宾

-

TA的文库  其他...

计量文库

威望
7
论坛币
27300 个
通用积分
31674.3271
学术水平
1454 点
热心指数
1573 点
信用等级
1364 点
经验
384134 点
帖子
9629
精华
66
在线时间
5508 小时
注册时间
2007-5-21
最后登录
2025-7-8

初级学术勋章 初级热心勋章 初级信用勋章 中级信用勋章 中级学术勋章 中级热心勋章 高级热心勋章 高级学术勋章 高级信用勋章 特级热心勋章 特级学术勋章 特级信用勋章

楼主
oliyiyi 发表于 2016-2-27 21:23:05 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
这是比较不错的part样式,采用titlesec来定制的,有兴趣的用户可以修改为chapter的样式,总体样式非常适合书籍使用。

[color=rgb(255, 255, 255) !important]



其定制代码如下:
  1. \documentclass{book}

  2. \usepackage{fourier}% change to lmodern if fourier is no available

  3. \usepackage{tikz}

  4. \usepackage[explicit]{titlesec}



  5. \definecolor{mybluei}{RGB}{0,173,239}

  6. \definecolor{myblueii}{RGB}{63,200,244}

  7. \definecolor{myblueiii}{RGB}{199,234,253}



  8. \renewcommand\thepart{\arabic{part}}



  9. \newcommand\partnumfont{% font specification for the number

  10.   \fontsize{380}{130}\color{myblueii}\selectfont%

  11. }



  12. \newcommand\partnamefont{% font specification for the name "PART"

  13.   \normalfont\color{white}\scshape\small\bfseries

  14. }



  15. \titleformat{\part}

  16.   {\normalfont\huge\filleft}

  17.   {}

  18.   {20pt}

  19.   {\begin{tikzpicture}[remember picture,overlay]

  20.   \fill[myblueiii]

  21.     (current page.north west) rectangle ([yshift=-13cm]current page.north east);

  22.   \node[

  23.       fill=mybluei,

  24.       text width=2\paperwidth,

  25.       rounded corners=6cm,

  26.       text depth=18cm,

  27.       anchor=center,

  28.       inner sep=0pt] at (current page.north east) (parttop)

  29.     {\thepart};%

  30.   \node[

  31.       anchor=south east,

  32.       inner sep=0pt,

  33.       outer sep=0pt] (partnum) at ([xshift=-20pt]parttop.south)

  34.     {\partnumfont\thepart};

  35.   \node[

  36.       anchor=south,

  37.       inner sep=0pt] (partname) at ([yshift=2pt]partnum.south)

  38.   {\partnamefont PART};

  39.   \node[

  40.       anchor=north east,

  41.       align=right,

  42.       inner xsep=0pt] at ([yshift=-0.5cm]partname.east|-partnum.south)

  43.   {\parbox{.7\textwidth}{\raggedleft#1}};

  44.   \end{tikzpicture}%

  45.   }



  46. \begin{document}



  47. \part{Theory and Application of Continuous-Time Signals and Systems}



  48. \end{document}
复制代码

选自:http://tex.stackexchange.com/questions/159551/customizing-part-style-with-tikz




[url=][/url]








二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Titles Title PART les ART available change arabic 书籍 用户

缺少币币的网友请访问有奖回帖集合
https://bbs.pinggu.org/thread-3990750-1-1.html

沙发
hjtoh 发表于 2016-3-1 11:14:13
楼主很强大呀

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-27 23:51