Comments (17)
\documentclass[fontset=ubuntu]{article} %字体设置为Ubuntu
\usepackage{ctex} %引入CTeX宏包
可以设置fontset为Ubuntu,这样他就改用Ubuntu的配置文件了,就不会去找FandolSong-Regular这个字体了
from buptbachelorthesis.
这个CSDN博客中的方法不知道你有没有尝试过:https://blog.csdn.net/up_com/article/details/51099928
终极解决方案是,改用Windows写……
from buptbachelorthesis.
感谢回复!
我有一个不理解的地方是在主目录下搜索提示缺失的字体没有一个地方使用了,这个错误为什么会出现呢?
另外,请问外链是怎么添加的?
from buptbachelorthesis.
ctex宏包中有默认字体设置,即便你没有使用它。
如果希望有可以点击的外链,请搜索url宏包的使用。
from buptbachelorthesis.
感谢回复!
我下载了字体,安装好之后仍然报错,目前正在排查,如果找到错误原因我会更新。
renew:
solved
[text here](url here)
任何相关的疑问、链接、解决都是受欢迎的,请发布comment。
如果后续解决,我会更新这里。
from buptbachelorthesis.
其实我并不知道你的URL为什么会那样,我给出的CSDN链接,就是直接粘贴过来的,没有什么问题……
from buptbachelorthesis.
感谢回复!
已解决(成功编译)
-
linux用户:
- 确保系统安装字体
- 修改BUPTthesisbachelor.sty文件line22为:
\usepackage[fontset=windows]{ctex} % invole CJKfntef - 理由:因为ctex现在会自动检测系统,如果是linux系统会自动调用Fandol字体。
-
mac用户:
把相应字体从~/Library/Fonts移动到/Library/Fonts。
ref:sjtug/SJTUThesis#168 -
未能解决的问题:写小文件测试是可以找到Fandol字体并成功编译的,但是编译main.tex会报error,找不到字体。
任何相关的疑问、链接、解决都是受欢迎的,请发布comment。
如果后续解决,我会更新这里。
from buptbachelorthesis.
我也出现同样的问题,CSDN博客中的方法没用
texlive里面有Fandol字体,xelatex编译的时候找不到, fc-list
也能找到字体,就是编译找不到
from buptbachelorthesis.
@lsq
可以尝试@JoyBeginner的方案
(如果不行就换Win吧……)
from buptbachelorthesis.
@sqyx008 已尝试,在linux下好像问题没有解决 @JoyBeginner ,你的方案一还报错吗?
from buptbachelorthesis.
@JoyBeginner 试了几天了,不是字体的原因,也不是ctex-fontset-fandol.def
配置文件的原因,也不是 fontspec
按文件名选字体的原因,不理解为什么只有在编译main.tex时有问题
from buptbachelorthesis.
@lsq 只有main.tex有问题的意思是,如果你自己再造一个使用相同packages的中文.tex文件,是没有问题的么?
from buptbachelorthesis.
@sqyx008 在linux下把xetex的debug选项打开,看不出原因啊!
也重新试了相同usepackage一个新中文tex,完全没问题,应该就是sty文件的原因
from buptbachelorthesis.
- 确保系统安装sty文件里用的字体(字体拷贝过来以后fc-cashe更新一下缓存,fc-list看一下字体)
- fontspec设置为Windows
我之前也是单独测试Fandol字体没问题,但是不设置windows编译main.tex报错,目前没有找到原因。
如果仍然不能解决问题,尽快换Windows,很抱歉看到得晚了,不知道对你是否还有帮助。
找到解决方法后我会更新这里。
from buptbachelorthesis.
@JoyBeginner 的方法在Ubuntu16.04下是有效的,thx。
另:ubuntu下tex live默认配置编译后生成的pdf里,章节名称缺少数字序号。暂未找到具体原因。解决方案是打开terminal在编译一遍:xelatex main.tex
from buptbachelorthesis.
误打误撞解决了问题:把BUPTthesisbachelor.sty中的50行\renewcommand{\normalsize}{\xiaosihao\songti\normalfont}
改为\renewcommand{\normalsize}{\xiaosihao\normalfont}
即可成功编译(但是依然有FandolSong-Regular
字体的警告),并且格式看起来貌似没有问题。
本机环境:Ubuntu 18.04
tex version:
>>>tex --version
TeX 3.14159265 (TeX Live 2017/Debian)
kpathsea version 6.2.3
Copyright 2017 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
编译方式:xelatex-->bibtex-->xelatex*2
尝试\renewcommand
自定义的命令时带着\songti
是可以的,但\renewcommand{\normalsize}
时带着\songti
就会有问题,希望有大佬可以解答:pray:
from buptbachelorthesis.
在mac上遇到相同的问题,已尝试解决如下:将main.tex的第五行改为\documentclass[fontset=windows,a4paper,AutoFakeBold,oneside,12pt]{book}
即使用Windows下的字库,可成功编译。
from buptbachelorthesis.
Related Issues (20)
- 参考文献 论文集格式与指导手册有巨大出入 HOT 3
- 外文译文 含有chapter的页无法自动应用\pagestyle{empty} HOT 14
- Ubuntu 16.04 XeLaTex编译没有章节号 HOT 2
- 附录中的代码如何也设置出”附-代码-XX“的效果? HOT 2
- 参考文献段落间距 HOT 1
- chapter标题与参考文献标题上下间距 HOT 3
- 修改摘要的关键词不应该首行缩进问题 HOT 5
- 今天检查被指出的问题 HOT 4
- 目录、页码问题 HOT 2
- 6.21下午审查新出现的问题 HOT 1
- 最新的commmit页眉掉了…… HOT 1
- pdf格式知网查重会有问题吗? HOT 2
- 请问2019年会有更新嘛? HOT 4
- 目录两页页码大小不一致 HOT 6
- 在章节标题后直接写正文,标题和正文间隔太近 HOT 4
- Mac - fontspec error: "font-not-found" HOT 1
- 学长为什么我生成的pdf不符合ieee标准啊 HOT 1
- 目录中一级标题对应的页码号应该设置为黑体
- 研究生用这个行吗
- 多个图并排时,如何设置子标题的在对应图的正下方?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buptbachelorthesis.