Re: [問題] 請問如何讓章、節等標題自動套用中文字型
※ 引述《lovehoward (LOVE&PEACE)》之銘言:
: 我用的是 linux 下的 latex + CJK。
: 我知道在 cwtex 中有 \ctxfdef 可用,但是不曉得在 latex 中要怎麼寫。
你的問題是如何自動地在 title 與 chapter/section/... 之處使用
特定的中文字型嗎(在 latex + CJK 之下)?
我的做法是:使用 titlesec package,並配合 CJK package 的 \CJKfamily。
例子:
\usepackage{CJKutf8}
\usepackage{titlesec}
\titleformat{\section}%
[]%
{\huge\sffamily\bfseries\CJKfamily{cwheib}}%
{\thesection}%
{1em}%
{}%
[]%
就會在標題中使用 \sffamily\bfseries 與 cwheib 字型。
請再閱讀 titlesec 的手冊。
(我上面的例子並沒有測試過,所以可能有小誤,但方法差不多就這樣。請
看看 titlesec package 的 manual 後多試試。)
至於 title 就直接在 \title{xxx} 中使用 \CJKfamily{} 即可。
--
http://apansharing.blogspot.com/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.128.117.83
※ 編輯: andrew43 來自: 140.128.117.83 (10/18 21:30)
推
10/20 12:07, , 1F
10/20 12:07, 1F
※ 編輯: andrew43 來自: 140.128.117.83 (10/30 23:34)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章