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}









share|improve this question
























  • 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 use fontencoding directly in a document.
    – cfr
    Jun 11 at 1:04















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}









share|improve this question
























  • 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 use fontencoding directly in a document.
    – cfr
    Jun 11 at 1:04













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}









share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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 use fontencoding 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










  • 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 use fontencoding 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















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents