LaTeX 如何同时使用两种word好看的中文字体体

怎么在latex中使用除了ctex有的6种字体的其他字体?_百度知道
怎么在latex中使用除了ctex有的6种字体的其他字体?
RT因为字体对于排版美观而言地位作用非常重要!而ctex中的6种字体并不是非常漂亮。我想试用方正黑体简体,方正仿宋,方正楷体这类好看的字体。
在阅读了xeCJK宏包和fontspec宏包的前面几页之后,现在出现的问题是英文能够实现字体更改,而中文不行。我的代码如下%!TEX program =&xelatex&\documentclass[UTF8]{ctexbook}\usepackage{xeCJK,fontspec}\begin{document}\fontspec{华文彩云.ttf}一二三gshdhfkfk\end{document}唯独中文字体不是华文彩云的。
我有更好的答案
给你一个范例。在TeX Live 2015的 XeLaTeX 环境下通过:\documentclass[UTF8]{ctexrep}\setCJKmainfont[BoldFont=SimHei,ItalicFont=KaiTi]{SimSun}\begin{document}...{\CJKfontspec{SimHei} 内容}...\end{document}以上命令中使用了Simsun(宋体)作为文章的主要字体。并且规定主要字体的粗样式为黑体,斜样式为楷体。这个字体如果你安装了Office是一定会有的。你也可以直接使用中文字体的名称,比如:\setCJKmainfont[BoldFont=SimHei,ItalicFont=KaiTi]{华文新魏}至于CJKfontspec命令也是类似,不过是用于临时更改字体的。这个实现原理是ctexrep/ctexart/ctexbook的文档类自动调用xeCJK宏包,在UTF8编码下就能直接书写中文。如果你有疑惑,请在命令行中输入texdox xeCJK阅读宏包帮助文档——该文档是中文的。
采纳率:80%
为您推荐:
其他类似问题
ctex的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。没有更多推荐了,
不良信息举报
举报内容:
关于LaTeX下的中文字体的引用(windows下)
举报原因:
原文地址:
原因补充:
最多只允许输入30个字
加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!当前位置:
&IEEE 会议 Latex模板下字体嵌入问题的解决
IEEE 会议 Latex模板下字体嵌入问题的解决
作者 一涵妈妈
环境:latex, IEEE Conference 模板
PDF采样 foxit reader
PDF打印 foxit pdf printer
出现的问题:
I'm getting the error &A PDF font is not embedded.& What can I do about this?
This error occurs when a PDF document does not include all the fonts that it references. This may cause fonts to be substituted when printing or rendering, yielding papers that have incorrect spacing or equations. IEEE, ACM and other publishers require all fonts to be embedded.
Hints on fixing this problem can be found at Adobe, Adobe (Law), IEEE or PaperPlaza or dvipdfm.
To check if all fonts are embedded, open the PDF of the paper or the figure in Acrobat and check under &File/Document Properties/Fonts& (Windows) or &File/Properties/Fonts& (MacOS). All fonts must say &embedded& or &embedded-subset&. (The precise location of the menu option may depend on the version of Adobe Acrobat.)
The IEEE maintains a set of Acrobat job options.
For MacOS, you can open the file in Preview and save the document to another file. This will embed all the fonts. Also, Microsoft Word on MacOS exports proper PDF with embedded fonts.
Gnuplot-generated PostScript often has this problem. Mohit Lad recommends the following:
& & By default, gnuplot does not embe insert this line in your gnuplot script (note that 26 is the font size that can be changed).
& & set terminal postscript eps enhanced &NimbusSanL-Regu& fontfile &uhvr8a.pfb& 26
If you convert Postscript to PDF using ps2pdf, use the following arguments
ps2pdf -dEmbedAllFonts=true -dSubsetFonts=true -dEPSCrop=true graph.eps
You may also try the command above if your LaTeX file produces an embedded-font error.
For EPS files generated by xmgrace, one should deactivate the Option &use device fonts& in the xmgrace print setup window.
It has been reported that FreePDFConvert and cutePDF properly include fonts.
该问题的原因:
通常pdf生成中均嵌入错误信息中提到的信息,但是由matlab生成的eps中还是有字体嵌入问题,
网上的解决方法:()
1. 后来发现这些Helvetica字体全都来自matlab保存的eps图形中,于是用Ultraledit把eps文件中的Helvetica全部替换成为Arial,再次生成PDF文件后,发现所有的字体都能够embedded了。
我的解决方法:
用latex生成pdf以后,将该pdf用foxit pdf printer 再打印一次,打印是选择
Print -- 选择(Foxit PDF Printer)-- Propertties -- Fonts -- Embed Fonts (选择 Use the font embedding list below)
选择下面全部字体
不错,这个经常碰见。
希望能成功,今天就遇到了,
24小时热帖
下载小木虫APP
与700万科研达人随时交流Latex中文字体问题_Linux教程_Linux公社-Linux系统门户网站
你好,游客
Latex中文字体问题
来源:Linux社区&
作者:xjwjava
正常安装好了texlive2011,英文显示正常,可是中文就一直纠结着。。。
用xelatex编译,能显示部分中文,但是很诡异地不能字体加粗或变为斜体,并且伴随着以下这些错误提示:
LaTeX Font Warning: Font shape `EU1/AdobeSongStd(0)/m/sl' undefined(Font)&&&&&&&&&&&&& using `EU1/AdobeSongStd(0)/m/n' instead on input line 69.
Underfull \hbox (badness 10000) in paragraph at lines 69--69
Overfull \hbox (3.31209pt too wide) in paragraph at lines 101--101
&[][]\EU1/lmr/m/n/10.95 10.7[]|[1] (/tmp/.Resume-zh.tex.aux)
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
(see the transcript file for additional information)Error 35584 (driver return code)file /tmp/.Resume-zh.tex.pdf may not be valid.
Transcript written on /tmp/.Resume-zh.tex.log.
找了好多资料都解决不了,一直觉得是缺少什么东西没装。。可是网上说的xeCJK、xelatex之类的明明texlive2011都自带了呀。。百思不解。。。
最后,发现原来是个很坑爹的原因:有些系统能识别的字体是无法在latex使用的。。。。。。。
比如我的系统里,WenQuanYi Bitmap Song,WenQuanYi Bitmap Song,Adobe Song Std,Adobe Fangsong Std这些都识别不了,所以我的问题就是使用了不该使用的Adobe Song Std和Adobe Fangsong Std。。。。。。。
如果有遇到类似错误提示的朋友,不妨试试也换换字体。。。
PS:在下可以用命令:
fc-list :lang=zh-cn
查出所有中文字体。
相关资讯 & & &
& (06/27/:12)
& (07/27/:25)
& (01月18日)
& (09/08/:10)
& (03/04/:51)
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款

我要回帖

更多关于 word好看的中文字体 的文章

 

随机推荐