LaTeX, CJK and Chinese gives missing font file cyberb65
up vote
2
down vote
favorite
MWE:
documentclass{scrbook}
usepackage[utf8]{inputenc} % For non-English languages
% Install cjk for Chinese, zhmetrics for font size.
usepackage{CJKutf8}
% OT1 for Chinese. T1 for English.
usepackage[OT1, T1]{fontenc} % T1 will be active encoding.
begin{document}
This is mainly an English document.
begin{CJK}{UTF8}{song}
With a smattering of Chinese: {fontencoding{OT1}selectfont 中文}
end{CJK}
end{document}
The error:
!pdfTeX error: pdflatex (file cyberb65): Font cyberb65 at 657 not found
I would at least like to know which fonts come default with which packages. In the MWE, the packages I installed are:
- koma-script
- inputenc
- cjk
- fontenc
For some unknown reason, I already have access to the gbsn
font. Am on MacOS.
Side question: Is it difficult to transition to an engine that better supports UTF-8 and non-English languages?
Working answer: Don't use song
font family. Use gbsn
. If you wanna know how/where that font got installed by default, private message Jon who wrote this question.
And thanks to @cfr, I'm not using OT1
font encoding anymore. Not needed with gbsn
font family.
Updated MWE:
documentclass{scrbook}
usepackage[utf8]{inputenc} % For non-English languages.
% Install babel-vietnamese, vntex for Vietnamese.
usepackage[vietnamese, english]{babel} % English will be active language.
% Install cjk for Chinese, zhmetrics for font size.
usepackage{CJKutf8}
% T5 for Vietnamese.
usepackage[T5, T1]{fontenc} % T1 will be active encoding.
begin{document}
This is mainly an English document.
begin{CJK}{UTF8}{gbsn}
With a smattering of Chinese: 中文
end{CJK}
And some Vietnamese: {fontencoding{T5}selectfont Tiếng Việt}
end{document}
fonts errors pdftex cjk
|
show 5 more comments
up vote
2
down vote
favorite
MWE:
documentclass{scrbook}
usepackage[utf8]{inputenc} % For non-English languages
% Install cjk for Chinese, zhmetrics for font size.
usepackage{CJKutf8}
% OT1 for Chinese. T1 for English.
usepackage[OT1, T1]{fontenc} % T1 will be active encoding.
begin{document}
This is mainly an English document.
begin{CJK}{UTF8}{song}
With a smattering of Chinese: {fontencoding{OT1}selectfont 中文}
end{CJK}
end{document}
The error:
!pdfTeX error: pdflatex (file cyberb65): Font cyberb65 at 657 not found
I would at least like to know which fonts come default with which packages. In the MWE, the packages I installed are:
- koma-script
- inputenc
- cjk
- fontenc
For some unknown reason, I already have access to the gbsn
font. Am on MacOS.
Side question: Is it difficult to transition to an engine that better supports UTF-8 and non-English languages?
Working answer: Don't use song
font family. Use gbsn
. If you wanna know how/where that font got installed by default, private message Jon who wrote this question.
And thanks to @cfr, I'm not using OT1
font encoding anymore. Not needed with gbsn
font family.
Updated MWE:
documentclass{scrbook}
usepackage[utf8]{inputenc} % For non-English languages.
% Install babel-vietnamese, vntex for Vietnamese.
usepackage[vietnamese, english]{babel} % English will be active language.
% Install cjk for Chinese, zhmetrics for font size.
usepackage{CJKutf8}
% T5 for Vietnamese.
usepackage[T5, T1]{fontenc} % T1 will be active encoding.
begin{document}
This is mainly an English document.
begin{CJK}{UTF8}{gbsn}
With a smattering of Chinese: 中文
end{CJK}
And some Vietnamese: {fontencoding{T5}selectfont Tiếng Việt}
end{document}
fonts errors pdftex cjk
OT1 for Chinese? I don't think so. OT1 is an older Latin encoding, which does not support accented characters in the way T1 does. Not too bad for English, but pretty crap for other European languages and certainly hopeless for Chinese.
– cfr
Jun 11 at 0:22
The error means that you do not have the font installed. However, this may not be true given that you've switched to OT1 which the font probably doesn't support. But the CJK fonts are not installed as part of a standard installation of TeX Live because they take a great deal of space and are not much used, even by people who need to typeset CJK. Is there some reason you want to use pdfTeX? These days, XeTeX would be the obvious solution.
– cfr
Jun 11 at 0:24
Definitelyfontencoding{OT1}selectfont
is wrong. Whatever else is or isn't right or wrong about your code, that part surely needs to go.
– cfr
Jun 11 at 0:27
@cfr Which encoding should I use for Chinese? I'm using pdfTeX because that's what online tutorials seem to start with, but will surely transition to XeTeX now. Is XeTeX better and more modern that pdfTeX these days? How should I select an encoding if not byfontencoding
?
– Jon Wong
Jun 11 at 1:02
I don't know how the Chinese encodings work. Look at the documentation for the CJK packages you're using. I don't use XeTeX myself, but I certainly would if I needed to typeset Chinese, Japanese, Hebrew, Arabic or any other non-Latin script. It isn't wrong to usefontencoding
. The problem is the encoding you're using. That said, you should rarely, if ever, need to usefontencoding
directly in a document.
– cfr
Jun 11 at 1:04
|
show 5 more comments
up vote
2
down vote
favorite
up vote
2
down vote
favorite
MWE:
documentclass{scrbook}
usepackage[utf8]{inputenc} % For non-English languages
% Install cjk for Chinese, zhmetrics for font size.
usepackage{CJKutf8}
% OT1 for Chinese. T1 for English.
usepackage[OT1, T1]{fontenc} % T1 will be active encoding.
begin{document}
This is mainly an English document.
begin{CJK}{UTF8}{song}
With a smattering of Chinese: {fontencoding{OT1}selectfont 中文}
end{CJK}
end{document}
The error:
!pdfTeX error: pdflatex (file cyberb65): Font cyberb65 at 657 not found
I would at least like to know which fonts come default with which packages. In the MWE, the packages I installed are:
- koma-script
- inputenc
- cjk
- fontenc
For some unknown reason, I already have access to the gbsn
font. Am on MacOS.
Side question: Is it difficult to transition to an engine that better supports UTF-8 and non-English languages?
Working answer: Don't use song
font family. Use gbsn
. If you wanna know how/where that font got installed by default, private message Jon who wrote this question.
And thanks to @cfr, I'm not using OT1
font encoding anymore. Not needed with gbsn
font family.
Updated MWE:
documentclass{scrbook}
usepackage[utf8]{inputenc} % For non-English languages.
% Install babel-vietnamese, vntex for Vietnamese.
usepackage[vietnamese, english]{babel} % English will be active language.
% Install cjk for Chinese, zhmetrics for font size.
usepackage{CJKutf8}
% T5 for Vietnamese.
usepackage[T5, T1]{fontenc} % T1 will be active encoding.
begin{document}
This is mainly an English document.
begin{CJK}{UTF8}{gbsn}
With a smattering of Chinese: 中文
end{CJK}
And some Vietnamese: {fontencoding{T5}selectfont Tiếng Việt}
end{document}
fonts errors pdftex cjk
MWE:
documentclass{scrbook}
usepackage[utf8]{inputenc} % For non-English languages
% Install cjk for Chinese, zhmetrics for font size.
usepackage{CJKutf8}
% OT1 for Chinese. T1 for English.
usepackage[OT1, T1]{fontenc} % T1 will be active encoding.
begin{document}
This is mainly an English document.
begin{CJK}{UTF8}{song}
With a smattering of Chinese: {fontencoding{OT1}selectfont 中文}
end{CJK}
end{document}
The error:
!pdfTeX error: pdflatex (file cyberb65): Font cyberb65 at 657 not found
I would at least like to know which fonts come default with which packages. In the MWE, the packages I installed are:
- koma-script
- inputenc
- cjk
- fontenc
For some unknown reason, I already have access to the gbsn
font. Am on MacOS.
Side question: Is it difficult to transition to an engine that better supports UTF-8 and non-English languages?
Working answer: Don't use song
font family. Use gbsn
. If you wanna know how/where that font got installed by default, private message Jon who wrote this question.
And thanks to @cfr, I'm not using OT1
font encoding anymore. Not needed with gbsn
font family.
Updated MWE:
documentclass{scrbook}
usepackage[utf8]{inputenc} % For non-English languages.
% Install babel-vietnamese, vntex for Vietnamese.
usepackage[vietnamese, english]{babel} % English will be active language.
% Install cjk for Chinese, zhmetrics for font size.
usepackage{CJKutf8}
% T5 for Vietnamese.
usepackage[T5, T1]{fontenc} % T1 will be active encoding.
begin{document}
This is mainly an English document.
begin{CJK}{UTF8}{gbsn}
With a smattering of Chinese: 中文
end{CJK}
And some Vietnamese: {fontencoding{T5}selectfont Tiếng Việt}
end{document}
fonts errors pdftex cjk
fonts errors pdftex cjk
edited Jun 11 at 14:37
asked Jun 10 at 23:26
Jon Wong
1368
1368
OT1 for Chinese? I don't think so. OT1 is an older Latin encoding, which does not support accented characters in the way T1 does. Not too bad for English, but pretty crap for other European languages and certainly hopeless for Chinese.
– cfr
Jun 11 at 0:22
The error means that you do not have the font installed. However, this may not be true given that you've switched to OT1 which the font probably doesn't support. But the CJK fonts are not installed as part of a standard installation of TeX Live because they take a great deal of space and are not much used, even by people who need to typeset CJK. Is there some reason you want to use pdfTeX? These days, XeTeX would be the obvious solution.
– cfr
Jun 11 at 0:24
Definitelyfontencoding{OT1}selectfont
is wrong. Whatever else is or isn't right or wrong about your code, that part surely needs to go.
– cfr
Jun 11 at 0:27
@cfr Which encoding should I use for Chinese? I'm using pdfTeX because that's what online tutorials seem to start with, but will surely transition to XeTeX now. Is XeTeX better and more modern that pdfTeX these days? How should I select an encoding if not byfontencoding
?
– Jon Wong
Jun 11 at 1:02
I don't know how the Chinese encodings work. Look at the documentation for the CJK packages you're using. I don't use XeTeX myself, but I certainly would if I needed to typeset Chinese, Japanese, Hebrew, Arabic or any other non-Latin script. It isn't wrong to usefontencoding
. The problem is the encoding you're using. That said, you should rarely, if ever, need to usefontencoding
directly in a document.
– cfr
Jun 11 at 1:04
|
show 5 more comments
OT1 for Chinese? I don't think so. OT1 is an older Latin encoding, which does not support accented characters in the way T1 does. Not too bad for English, but pretty crap for other European languages and certainly hopeless for Chinese.
– cfr
Jun 11 at 0:22
The error means that you do not have the font installed. However, this may not be true given that you've switched to OT1 which the font probably doesn't support. But the CJK fonts are not installed as part of a standard installation of TeX Live because they take a great deal of space and are not much used, even by people who need to typeset CJK. Is there some reason you want to use pdfTeX? These days, XeTeX would be the obvious solution.
– cfr
Jun 11 at 0:24
Definitelyfontencoding{OT1}selectfont
is wrong. Whatever else is or isn't right or wrong about your code, that part surely needs to go.
– cfr
Jun 11 at 0:27
@cfr Which encoding should I use for Chinese? I'm using pdfTeX because that's what online tutorials seem to start with, but will surely transition to XeTeX now. Is XeTeX better and more modern that pdfTeX these days? How should I select an encoding if not byfontencoding
?
– Jon Wong
Jun 11 at 1:02
I don't know how the Chinese encodings work. Look at the documentation for the CJK packages you're using. I don't use XeTeX myself, but I certainly would if I needed to typeset Chinese, Japanese, Hebrew, Arabic or any other non-Latin script. It isn't wrong to usefontencoding
. The problem is the encoding you're using. That said, you should rarely, if ever, need to usefontencoding
directly in a document.
– cfr
Jun 11 at 1:04
OT1 for Chinese? I don't think so. OT1 is an older Latin encoding, which does not support accented characters in the way T1 does. Not too bad for English, but pretty crap for other European languages and certainly hopeless for Chinese.
– cfr
Jun 11 at 0:22
OT1 for Chinese? I don't think so. OT1 is an older Latin encoding, which does not support accented characters in the way T1 does. Not too bad for English, but pretty crap for other European languages and certainly hopeless for Chinese.
– cfr
Jun 11 at 0:22
The error means that you do not have the font installed. However, this may not be true given that you've switched to OT1 which the font probably doesn't support. But the CJK fonts are not installed as part of a standard installation of TeX Live because they take a great deal of space and are not much used, even by people who need to typeset CJK. Is there some reason you want to use pdfTeX? These days, XeTeX would be the obvious solution.
– cfr
Jun 11 at 0:24
The error means that you do not have the font installed. However, this may not be true given that you've switched to OT1 which the font probably doesn't support. But the CJK fonts are not installed as part of a standard installation of TeX Live because they take a great deal of space and are not much used, even by people who need to typeset CJK. Is there some reason you want to use pdfTeX? These days, XeTeX would be the obvious solution.
– cfr
Jun 11 at 0:24
Definitely
fontencoding{OT1}selectfont
is wrong. Whatever else is or isn't right or wrong about your code, that part surely needs to go.– cfr
Jun 11 at 0:27
Definitely
fontencoding{OT1}selectfont
is wrong. Whatever else is or isn't right or wrong about your code, that part surely needs to go.– cfr
Jun 11 at 0:27
@cfr Which encoding should I use for Chinese? I'm using pdfTeX because that's what online tutorials seem to start with, but will surely transition to XeTeX now. Is XeTeX better and more modern that pdfTeX these days? How should I select an encoding if not by
fontencoding
?– Jon Wong
Jun 11 at 1:02
@cfr Which encoding should I use for Chinese? I'm using pdfTeX because that's what online tutorials seem to start with, but will surely transition to XeTeX now. Is XeTeX better and more modern that pdfTeX these days? How should I select an encoding if not by
fontencoding
?– Jon Wong
Jun 11 at 1:02
I don't know how the Chinese encodings work. Look at the documentation for the CJK packages you're using. I don't use XeTeX myself, but I certainly would if I needed to typeset Chinese, Japanese, Hebrew, Arabic or any other non-Latin script. It isn't wrong to use
fontencoding
. The problem is the encoding you're using. That said, you should rarely, if ever, need to use fontencoding
directly in a document.– cfr
Jun 11 at 1:04
I don't know how the Chinese encodings work. Look at the documentation for the CJK packages you're using. I don't use XeTeX myself, but I certainly would if I needed to typeset Chinese, Japanese, Hebrew, Arabic or any other non-Latin script. It isn't wrong to use
fontencoding
. The problem is the encoding you're using. That said, you should rarely, if ever, need to use fontencoding
directly in a document.– cfr
Jun 11 at 1:04
|
show 5 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f435891%2flatex-cjk-and-chinese-gives-missing-font-file-cyberb65%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
OT1 for Chinese? I don't think so. OT1 is an older Latin encoding, which does not support accented characters in the way T1 does. Not too bad for English, but pretty crap for other European languages and certainly hopeless for Chinese.
– cfr
Jun 11 at 0:22
The error means that you do not have the font installed. However, this may not be true given that you've switched to OT1 which the font probably doesn't support. But the CJK fonts are not installed as part of a standard installation of TeX Live because they take a great deal of space and are not much used, even by people who need to typeset CJK. Is there some reason you want to use pdfTeX? These days, XeTeX would be the obvious solution.
– cfr
Jun 11 at 0:24
Definitely
fontencoding{OT1}selectfont
is wrong. Whatever else is or isn't right or wrong about your code, that part surely needs to go.– cfr
Jun 11 at 0:27
@cfr Which encoding should I use for Chinese? I'm using pdfTeX because that's what online tutorials seem to start with, but will surely transition to XeTeX now. Is XeTeX better and more modern that pdfTeX these days? How should I select an encoding if not by
fontencoding
?– Jon Wong
Jun 11 at 1:02
I don't know how the Chinese encodings work. Look at the documentation for the CJK packages you're using. I don't use XeTeX myself, but I certainly would if I needed to typeset Chinese, Japanese, Hebrew, Arabic or any other non-Latin script. It isn't wrong to use
fontencoding
. The problem is the encoding you're using. That said, you should rarely, if ever, need to usefontencoding
directly in a document.– cfr
Jun 11 at 1:04