本科毕设tex模板中字体的问题

48 views
Skip to first unread message

宋景和

unread,
Mar 16, 2014, 9:31:32 PM3/16/14
to beihang-open...@googlegroups.com
症状是:\bf和\heiti长的一样。如图:
内嵌图片 1


以及另一个地方:



内嵌图片 2



上面的源码是:
    \item {\heiti 床前明月光,疑是地上霜。举头望明月,低头思故乡。}
    \item {\bf 床前明月光,疑是地上霜。举头望明月,低头思故乡。}

但是生成的pdf我是看不出区别。。。
我用的是ubuntu11.04 ,自己装的texlive2013(北航mirror上CTAN下的),模板是从github下载的zip
上的一些提示改了ctex-xecjk-winfonts.def文件,并且用这个直接把adobe字体的那个ctex-xecjk-adobe.def覆盖了。。。
个人感觉貌似是找不到宋体的粗体。。。。请各位学长学弟们给点tips——怎么解决?
编译的log文件见附件。。。
以下是我修改后的 ctex-xecjk-winfonts.def文件:
% ctex-xecjk-winfonts.def: Windows 的 xeCJK 字体设置,默认为六种中易字体
% vim:ft=tex
% 中括号里面直接写字体"文件"名,如果是大括号就写字体名,通过
%    fc-list :lang=zh family style file spacing
% 命令查看
% 另外如果文件名不是绝对路径的话默认在当前目录下找。。。
% 安装字体后运行更新:sudo mkfontscale; sudo mkfontdir; sudo fc-cache -fsv
\setCJKmainfont[BoldFont={SimHei},ItalicFont={[/usr/share/fonts/truetype/microsoft/simkai.ttf]}]{SimSun}
\setCJKsansfont{SimHei}
\setCJKmonofont{FangSong}
\setCJKfamilyfont{zhsong}{SimSun}
\setCJKfamilyfont{zhhei}{SimHei}
\setCJKfamilyfont{zhkai}{KaiTi}
\setCJKfamilyfont{zhfs}{FangSong}
\setCJKfamilyfont{zhli}{LiSu}
\setCJKfamilyfont{zhyou}{YouYuan}
\newcommand*{\songti}{\CJKfamily{zhsong}} % 宋体
\newcommand*{\heiti}{\CJKfamily{zhhei}}   % 黑体
\newcommand*{\kaishu}{\CJKfamily{zhkai}}  % 楷书
\newcommand*{\fangsong}{\CJKfamily{zhfs}} % 仿宋
\newcommand*{\lishu}{\CJKfamily{zhli}}    % 隶书
\newcommand*{\youyuan}{\CJKfamily{zhyou}} % 幼圆
\endinput


以下是fc-list :lang=zh family style file spacing的运行结果:
==>fc-list :lang=zh family style file spacing
/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing TW MBE:style=Light
/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai CN:style=Book
/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai HK:style=Book
/usr/share/fonts/truetype/windows/FZBSJW.TTF: 方正报宋简体,FZBaoSong\-Z04S:style=Regular
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTiMono-Italic.ttf: DejaVu Sans YuanTi Mono:style=Italic
/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai TW:style=Book
/usr/share/fonts/truetype/windows/经典楷体简.TTF: 经典楷体简:style=regular
/usr/share/fonts/truetype/microsoft/simhei.ttf: 黑体,SimHei:style=Normal,obyčejné,Standard,Κανονικά,Regular,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta:spacing=90
/usr/share/fonts/truetype/microsoft/simsun.ttc: 宋体,SimSun:style=Regular:spacing=90
/usr/share/fonts/truetype/microsoft/simsun.ttf: 宋体,SimSun:style=Regular:spacing=90
/usr/share/fonts/truetype/windows/幼圆.TTF: 幼圆,YouYuan:style=Regular:spacing=90
/usr/share/fonts/truetype/windows/方正硬笔行书简体.TTF: 方正硬笔行书简体,FZYingBiXingShu\-S16S:style=Regular
/usr/share/fonts/truetype/windows/方正北魏楷书繁体.ttf: 方正北魏楷书繁体,FZBeiWeiKaiShu\-Z15T:style=Regular
/usr/share/fonts/truetype/wqy/wqy-microhei.ttc: 文泉驿微米黑,文泉驛微米黑,WenQuanYi Micro Hei:style=Regular
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTiMono-Regular.ttf: DejaVu Sans YuanTi Mono:style=Regular
/usr/share/fonts/X11/misc/wenquanyi_10ptb.pcf: WenQuanYi Bitmap Song:style=Bold
/usr/share/fonts/truetype/windows/xjlFont.fon: 方正静蕾简体,FZJingLeiS\-R\-GB:style=Regular
/usr/share/fonts/truetype/microsoft/simsun.ttc: 新宋体,NSimSun:style=Regular:spacing=90
/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc: 文泉驿正黑,文泉驛正黑,WenQuanYi Zen Hei:style=Regular
/usr/share/fonts/X11/misc/wenquanyi_12pt.pcf: WenQuanYi Bitmap Song:style=Regular
/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc: 文泉驿点阵正黑,文泉驛點陣正黑,WenQuanYi Zen Hei Sharp:style=Regular
/usr/share/fonts/truetype/windows/JDJLS.TTF: 经典隶书简:style=regular
/usr/share/fonts/truetype/windows/方正硬笔楷书简体.TTF: 方正硬笔楷书简体,FZYingBiKaiShu\-S15S:style=Regular
/usr/share/fonts/truetype/windows/汉仪大宋繁.ttf: 汉仪大宋繁,HYDaSongF:style=regular
/usr/share/fonts/X11/misc/wenquanyi_10pt.pcf: WenQuanYi Bitmap Song:style=Regular
/usr/share/fonts/truetype/windows/汉仪长美黑简.ttf: 汉仪长美黑简,HYChangMeiHeiJ:style=regular
/usr/share/fonts/truetype/microsoft/Msjh.ttf: 微軟正黑體,Microsoft JhengHei:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/share/fonts/truetype/microsoft/simfang.ttf: 仿宋,FangSong:style=Normal,obyčejné,Standard,Κανονικά,Regular,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta:spacing=90
/usr/share/fonts/X11/misc/wenquanyi_9pt.pcf: WenQuanYi Bitmap Song:style=Regular
/usr/share/fonts/X11/misc/wenquanyi_11pt.pcf: WenQuanYi Bitmap Song:style=Regular
/usr/share/fonts/truetype/windows/华文行楷.ttf: 华文行楷,STXingkai:style=Regular
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTi-Bold.ttf: DejaVu Sans YuanTi:style=Bold
/usr/share/fonts/truetype/windows/汉仪综艺体简.ttf: 汉仪综艺体简,HYZongYiJ:style=regular
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTiCondensed-BoldItalic.ttf: DejaVu Sans YuanTi Condensed:style=Bold Italic
/usr/share/fonts/truetype/windows/华文隶书.TTF: 华文隶书,STLiti:style=Regular
/usr/share/fonts/truetype/windows/汉仪菱心体简.ttf: 汉仪菱心体简,HYLingXinJ:style=regular
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTiCondensed-Bold.ttf: DejaVu Sans YuanTi Condensed:style=Bold
/usr/share/fonts/X11/misc/wenquanyi_9ptb.pcf: WenQuanYi Bitmap Song:style=Bold
/usr/share/fonts/truetype/windows/droidsans_final_fixed.ttf: DejaVu Sans:style=Book
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTiMono-BoldItalic.ttf: DejaVu Sans YuanTi Mono:style=Bold Italic
/usr/share/fonts/truetype/windows/汉仪长宋简.ttf: 汉仪长宋简,HYChangSongJ:style=regular
/usr/share/fonts/truetype/microsoft/msyh.ttf: 微软雅黑,Microsoft YaHei:style=Regular
/usr/share/fonts/X11/misc/wenquanyi_11ptb.pcf: WenQuanYi Bitmap Song:style=Bold
/usr/share/fonts/truetype/windows/华康超特楷体繁.TTC: 華康超特楷體,DFKaiSUBold\-B5:style=Regular:spacing=90
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTiCondensed-Regular.ttf: DejaVu Sans YuanTi Condensed:style=Regular
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTi-Italic.ttf: DejaVu Sans YuanTi:style=Italic
/usr/share/fonts/truetype/microsoft/simkai.ttf: 楷体,KaiTi:style=Normal,obyčejné,Standard,Κανονικά,Regular,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta:spacing=90
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTi-BoldItalic.ttf: DejaVu Sans YuanTi:style=Bold Italic
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTi-Regular.ttf: DejaVu Sans YuanTi:style=Regular
/usr/share/fonts/truetype/windows/fzlsjw.ttf: 方正隶书简体,FZLiShu\-S01S:style=Regular
/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai TW MBE:style=Book
/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing TW:style=Light
/usr/share/fonts/truetype/windows/方正行楷.ttf: 方正行楷简体,FZXingKai\-S04S:style=Regular
/usr/share/fonts/truetype/windows/汉仪粗篆繁.ttf: 汉仪粗篆繁,HYCuZhuanF:style=regular
/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc: 文泉驿等宽正黑,文泉驛等寬正黑,WenQuanYi Zen Hei Mono:style=Regular
/usr/share/fonts/truetype/windows/STXINWEI.TTF: 华文新魏,STXinwei:style=Regular
/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing CN:style=Light
/usr/share/fonts/truetype/microsoft/simli.ttf: 隶书,LiSu:style=Regular:spacing=90
/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing HK:style=Light
/usr/share/fonts/truetype/wqy/wqy-microhei.ttc: 文泉驿等宽微米黑,文泉驛等寬微米黑,WenQuanYi Micro Hei Mono:style=Regular
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTiCondensed-Italic.ttf: DejaVu Sans YuanTi Condensed:style=Italic
/usr/share/fonts/truetype/windows/FZXKJW.TTF: 方正行楷简体,FZXingKai\-S04S:style=Regular
/usr/share/fonts/truetype/DejaVuSanYuanTi/DejaVuSansYuanTiMono-Bold.ttf: DejaVu Sans YuanTi Mono:style=Bold
/usr/share/fonts/truetype/windows/yy幼圆.TTF: 幼圆,YouYuan:style=Regular:spacing=90
/usr/share/fonts/truetype/windows/华康超特楷体繁.TTC: 華康超特楷體(P),DFPKaiSUBold\-B5:style=Regular
/usr/share/fonts/X11/misc/wenquanyi_12ptb.pcf: WenQuanYi Bitmap Song:style=Bold
sample-bachelor.log

Xuan (Sean) Hu

unread,
Mar 16, 2014, 11:44:14 PM3/16/14
to beihang-open...@googlegroups.com

中文字体貌似没有粗体的概念?貌似就是用黑体代替的

--
-- Beihang Open Source Club
beihang-open...@googlegroups.com
https://groups.google.com/d/forum/beihang-open-source-club
---
您收到此邮件是因为您订阅了Google网上论坛中的“北航开源俱乐部”论坛。
要取消订阅此论坛,并停止接收其发来的电子邮件,请发送电子邮件至beihang-open-sourc...@googlegroups.com
如需了解更多选项,请访问https://groups.google.com/d/optout

Qingwen GUAN

unread,
Mar 16, 2014, 11:47:34 PM3/16/14
to beihang-open...@googlegroups.com

那么我很好奇,M$ WORD是怎么实现BoldItalic的?

如果中文字体本身没有Bold, Italic的概念。

要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到beihang-open-sourc...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

image001.jpg
image002.jpg

Zuyang Kou

unread,
Mar 16, 2014, 11:49:57 PM3/16/14
to BHOSC
伪斜体之类的,计算机算出来的
Code is poetry.

Qingwen GUAN

unread,
Mar 16, 2014, 11:52:08 PM3/16/14
to beihang-open...@googlegroups.com

所以可以得出结论Latex这方面比Word弱?

Word能算出来,但是Latex只能换用别的字体?

image001.jpg
image002.jpg
Reply all
Reply to author
Forward
0 new messages