Comments (41)
不建议还用GB2312字符集的字体,缺字严重。
from tongjithesis.
@chennanzhang 同意你的看法。
不过,如果不用GB2312字符集的话,字体会和word版的有细微差别,当然,不仔细看是看不出来的。
如果不想安装GB2312字体的话,可参考 自动进行字体配置+pifont的修改,将tongjithesis.cls
中的这一行:\IfFileExists{/dev/null}{}{\PassOptionsToClass{fontset=windowsold}{ctexbook}}
删掉。
from tongjithesis.
我用了你的模板,和学校给的word模板比较,感觉标题(包括章节标题,一二级标题)的黑体好像都不够黑?有点细感觉?难道是系统字体原因,我用的是win10。
from tongjithesis.
@wyznio ,你好
据我所知,目前只能使用伪黑体(还请指正)。
如果你嫌不够粗的话,可以更改cls
文件的这一行的数值:
%将伪粗体与伪斜体的选项传递给xeCJK package
\PassOptionsToPackage{AutoFakeBold=1.2,AutoFakeSlant}{xeCJK}
from tongjithesis.
前辈你好,为什么将tongjithesis.cls中的这一行:\IfFileExists{/dev/null}{}{\PassOptionsToClass{fontset=windowsold}{ctexbook}} 删掉后,参考文献列表依旧没有打印出来。我用的是2019TeXLive,编译也是按照XeLatex-biber-XeLatex-XeLatex。搞了一个晚上,简直要炸毛了。还请前辈指点。
from tongjithesis.
@bianlaing 我才毕业一年多,算不算前辈啦😁
参考文献列表和这一行 \IfFileExists{/dev/null}{}{\PassOptionsToClass{fontset=windowsold}{ctexbook}}
没啥关系吧,这一行的意思是,在windows系统中使用windowsold的字符集配置。
你好好看一下biber的输出?贴出来看看吧。
我还在嘉定校区旁边住着,实在不行就现场去解决了。
from tongjithesis.
from tongjithesis.
@bianlaing 你用的什么编辑器?编译命令是命令行运行的还是用编辑器调用?你可以把每个步骤的输出贴出来看看的。
from tongjithesis.
from tongjithesis.
from tongjithesis.
那你就在命令行运行一遍看看输出是啥样的?
from tongjithesis.
看每个命令是否都正确输出了。
from tongjithesis.
@bianlaing 最好在issue里解决吧,这样别人看见了也能借鉴一下。
最好用xelatex。
你再根据 @hushidong 大神的指示看一下输出。
from tongjithesis.
from tongjithesis.
@bianlaing 解决了没?
没解决的话就把
xelatex a.tex
biber a
xelatex a.tex
这三步编译结果贴上来,这里a指代你的文档名。
from tongjithesis.
from tongjithesis.
from tongjithesis.
from tongjithesis.
Window环境下,已经将biblatex-gb7714-2015四个文件放在了编译的主目录下,然后也将tongjithesis.cls中的这一行:\IfFileExists{/dev/null}{}{\PassOptionsToClass{fontset=windowsold}{ctexbook}} 删掉后,参考文献列表依旧没有打印出来。我用的是2019TeXLive,编译也是按照XeLatex
运行 xelatex thesis.tex提示的错误信息是:
! Undefined control sequence.
\xeCJK/family/rm ...e:n \fontspec_gset_family:Nnn
\g__xeCJK_fontspec_family_...
l.110 }
from tongjithesis.
还是缺字体,改成fontset=windowsnew
from tongjithesis.
还是缺字体,改成fontset=windowsnew
修改了之后还是不行
from tongjithesis.
两个方法
1.从其他电脑把缺的字体拷过来。
2.自己设置用你现有的字体。
from tongjithesis.
字体按照你说的修改好了,但是参考文献还是有问题:
首先将https://github.com/hushidong/biblatex-gb7714-2015 master分支上的四个gb7714-2015文件放在了本项目的主目录下,thesis.tex中选择了bibtype=numeric,然后采用xelatex进行编译,但是正文中cite{}引用的参考文献不能显示上标数字,只显示bib文件里面的英文名称,最后参考文献也没打印出来,这是怎么回事呢?
from tongjithesis.
使用(一定要仔细看啊)
主文件为 thesis.tex,该文档头部说明了本模板的所有选项(包含 数字式引用及作者年份引用的切换选项,默认使用数字上标的引用格式)。
基本的编译步骤是:tex,biber,tex,tex(这里的tex替换成你常用的tex,如xelatex)。一般的前端都可以定制成一键运行这些步骤,如emacs的C-c C-a,vscode的 LaTeX Workshop 插件,WinEdt自带的编译按键等。
首选xelatex编译,次选pdflatex,lualatex貌似也能用。
使用xelatex时,如果提示缺少某字体,不要慌,请参考下面的字体安装说明。
from tongjithesis.
看一下项目说明。
from tongjithesis.
最后终于弄好了,按照这个方式
用命令提示符打开当前路径
然后依次执行:1.xelatex thesis.tex 2.biber thesis(这里千万别写成biber thesis.tex我困扰了好久)3.再次运行xelatex thesis.tex,即可生成带参考文献的PDF
from tongjithesis.
您好,我windows下载安装的的texlive2019-20190410.iso,Xelatex运行thesis.tex时,出现如下错误,请问知道怎么解决吗?
! LaTeX Error: Unknown option AutoFakeBold=1.2' for package
fontspec'.
See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...
l.257 \ProcessOptions*
?
from tongjithesis.
师兄,这个biber的输出在哪儿看,是运行完biber后看message吗? 我上午又尝试了一下,发现还是不行哎。 师兄一般什么时间有空啊
…
------------------ 原始邮件 ------------------ 发件人: "Marquis"<[email protected]>; 发送时间: 2019年10月31日(星期四) 上午10:26 收件人: "marquistj13/TongjiThesis"<[email protected]>; 抄送: "海鸟和鱼相遇"<[email protected]>;"Mention"<[email protected]>; 主题: Re: [marquistj13/TongjiThesis] 字体安装 (#18) @bianlaing 我才毕业一年多,算不算前辈啦😁 参考文献列表和这一行 \IfFileExists{/dev/null}{}{\PassOptionsToClass{fontset=windowsold}{ctexbook}} 没啥关系吧,这一行的意思是,在windows系统中使用windowsold的字符集配置。 你好好看一下biber的输出?贴出来看看吧。 我还在嘉定校区旁边住着,实在不行就现场去解决了。 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
您好 问题解决了吗?能发一份模板到我的邮箱吗 谢谢 [email protected]
from tongjithesis.
师兄您好,为何我编译出来只有一级标题显示为了黑体,二级、三级标题都是宋体呢
from tongjithesis.
我试了一下用老模板编译出来字体是对的,用最新master的模板编译出来好像字体都不太对,比如很多地方没有加粗,英文的显示也和老板出来的不太一样
from tongjithesis.
@wyznio ,你好
据我所知,目前只能使用伪黑体(还请指正)。如果你嫌不够粗的话,可以更改
cls
文件的这一行的数值:%将伪粗体与伪斜体的选项传递给xeCJK package \PassOptionsToPackage{AutoFakeBold=1.2,AutoFakeSlant}{xeCJK}
师兄您好,我修改了这一行AutoFakeBold数值以后,只有封面的黑体字加粗了,其他章节标题依然很细,二级三级标题几乎和正文宋体显示一样了,我怀疑是tongjititlefont这里设置有问题
from tongjithesis.
@marquistj13 前辈知道在Ubuntu 上如何安装修改ctex 的文件配置字体吗?
from tongjithesis.
@Wei-Mao 不知道
from tongjithesis.
师兄好,我在Ubuntu上使用时碰到了一个奇怪的问题,反复清理文件都不能解决,\makecover命令报错,错误信息是 undefined control sequence,但是封面也是照常输出了,这个错误会导致编译中断,尤其是在vscode上。在win10上,直接使用终端或者vscode编译,依次执行xelatex thesis.tex -->biber thesis -->xelatex thesis.tex 得到了完整版的pdf,与参考pdf相比基本一致,波特图也显示正常。不知道师兄有没有什么解决这个问题,谢谢师兄
from tongjithesis.
from tongjithesis.
@Megabyte1996 我也是,我是在mac上的ctex-fontset-mac.def中找不到类似的命令语句,于是把ctex-fontset-macnew.def增加了\setCJKfamilyfont { zhli } { LiSu }和\NewDocumentCommand \lishu { } { \CJKfamily { zhli } },仍然报相同的错
我之前一直使用命令latex thesis.tex
dvipdfmx thesis.dvi编译,但是图片和引用会有错误,于是用了 @guangxush 的命令 虽然没有解决\makecover的错误但可以顺利排版编译了
from tongjithesis.
@Landy330 @KuiLiu-ops 我搞定定了在Windows下的方案,使用vscode的插件latex workshop,使用其自带的recipe:latexmk,完成编译,没有错误,是一个完整的编译链。目前的问题是各章和各小节的标题不能加粗,我是打算先用着,问题应该不是很大,碰到了解决,Ubuntu上问题暂时弃了,回头有空再看。最后推荐一下Sumatra pdf来预览pdf效果,好像还可以配置正向搜索和反向搜索,还没研究,用到了再说。
from tongjithesis.
@Megabyte1996 Ubuntu 上应该是字体问题,Ubuntu 没有windows 系统的那些字体。把windows 字体安装上刷一下字体缓存应该就行了。
from tongjithesis.
@chennanzhang 我是从win10系统里的fonts把字体都拷到ubuntu里,装了之后也刷新了,查看中文字体包时也有,还是没解决
from tongjithesis.
我试了一下用老模板编译出来字体是对的,用最新master的模板编译出来好像字体都不太对,比如很多地方没有加粗,英文的显示也和老板出来的不太一样
好兄弟解决了,我也是这个问题,用的最新的master,但是只有一级标题是黑体,其他的都是宋体,不知道怎么办
from tongjithesis.
from tongjithesis.
Related Issues (20)
- 关于格式 HOT 8
- LaTeX Error: Command `\Bbbk' already defined. HOT 6
- Mactex 2019 封面排版问题
- 关于Mac中“Undefined control sequence. [\makecover]”问题的解决方法 HOT 2
- bfseries,\textbf,\bf,\bm,\mathbf 对英文字体不起作用 HOT 1
- 如何阻止二级标题另起一页 HOT 1
- 请问该模板支持英文嘛?
- 这个项目遵循的license是什么?
- 参考文献的作者都是英文大写 HOT 2
- 编译后不显示参考文献 HOT 2
- About the custom fontsize command.
- 伪黑体错误
- 2021年还能用吗?
- 如何删除多余的空白页 HOT 2
- 2022年实测还可以用
- 关于字体大小 HOT 1
- 版本一定要正确 2019版 实测MacTex 2019编译没问题 2022版本死活不对 HOT 1
- 哪位大神可以分享一下2023年2月后修订的模版,谢谢 HOT 6
- 有人出现参考文献编译之后文章名字之后出现两条斜杠的吗
- 如何每章设置单独的图片搜索路径 HOT 5
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 tongjithesis.