Re: [問題] 請問如何讓章、節等標題自動套用中文字型

看板LaTeX (論文排版)作者 (Myrmarachne)時間17年前 (2008/10/18 21:29), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《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)
文章代碼(AID): #18-UJDgh (LaTeX)
文章代碼(AID): #18-UJDgh (LaTeX)