bookdown-demo icon indicating copy to clipboard operation
bookdown-demo copied to clipboard

I tried to used Korean alphabet but it does not come out right

Open Sumeun opened this issue 6 years ago • 7 comments

I use windows 10 and as a test, I put a little bit of Korean letters but nothing come out in pdf.

The whole thing are gone without any trace except a little bit of space...

It seems it does not support CJK?

Do you have any idea how to solve this?

Sumeun avatar Jan 03 '19 03:01 Sumeun

I'm not familiar with the Korean support in LaTeX. You may need to add certain LaTeX packages to https://github.com/rstudio/bookdown-demo/blob/master/preamble.tex

yihui avatar Jan 03 '19 15:01 yihui

Helped from https://statkclee.github.io/data-science/toolchain-docker-r-pkgs.html I added the following paragraph in the beginning of preamble.tex

\usepackage{zi4} \usepackage[hangul]{kotex}

I works okay... but I got several warnings...

Output created: _book/bookdown-demo.pdf Warning messages: 1: running command '"xelatex" -halt-on-error -interaction=batchmode "bookdown-demo.tex"' had status 1 2: running command '"xelatex" -halt-on-error -interaction=batchmode "bookdown-demo.tex"' had status 1 3: running command '"xelatex" -halt-on-error -interaction=batchmode "bookdown-demo.tex"' had status 1

Do you know what it means?

kwhkim avatar Jan 07 '19 05:01 kwhkim

Never mind. I installed http://mirrors.ctan.org/install/fonts/inconsolata.tds.zip and Warnings disappeared.

Awesome package!

kwhkim avatar Jan 07 '19 07:01 kwhkim

안녕하세요 저도 윈도우10에서 북다운으로 책 작성중 pdf로 변환하면 한글이 안나타나는 문제가 발생하는데

혹시 어떻게 해결하셨는지 알려주실수 있으면 감사하겠습니다.

\usepackage{zi4} \usepackage[hangul]{kotex}

해당 명령어를 입력해도 문제가 해결되지 않아서요..

(쓰신책 매우 재밌게 보았습니다 ㅎㅎ)

hyunyulhenry avatar Jun 11 '19 01:06 hyunyulhenry

정확히 기억은 안 나는데 여기 방법은 조금 복잡하고요 xelatex 쓰면 간단하게 해결되는데 저도 기억이 가물이라 ㅠㅠ

2019년 6월 11일 (화) 오전 10:29, HenryLee [email protected]님이 작성:

안녕하세요 저도 윈도우10에서 북다운으로 책 작성중 pdf로 변환하면 한글이 안나타나는 문제가 발생하는데

혹시 어떻게 해결하셨는지 알려주실수 있으면 감사하겠습니다.

\usepackage{zi4} \usepackage[hangul]{kotex}

해당 명령어를 입력해도 문제가 해결되지 않아서요..

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rstudio/bookdown-demo/issues/39?email_source=notifications&email_token=ABCE2CGBSBI2HDRBHC5PRI3PZ35XVA5CNFSM4GM6EPV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLVIKQ#issuecomment-500651050, or mute the thread https://github.com/notifications/unsubscribe-auth/ABCE2CBL3MPQE2T7HRWDXTDPZ35XVANCNFSM4GM6EPVQ .

kwhkim avatar Jun 11 '19 06:06 kwhkim

제 것 소스를 조금 살펴봤는데,

_output.yml에 latex_engine: xelatex 으로 되어 있네요...

xelatex 인스톨 되어 있다면, 이렇게 쓰면 되지 않을까요? 저도 인터넷 어디선가 보고 한 거라서 인터넷에 어딘가 있을 것이라 생각되지만... ^^;;;;

kwhkim avatar Jun 11 '19 13:06 kwhkim

아 말씀해주신거 덕분에 해결했네요 xelatex 인스톨하고 preamble.tex 에 \usepackage{kotex} 만 추가해주니 해결이 되었습니다 find sty 에서 시간이 너무 오래걸려서 안되는건가 했는데 그냥 원래 오래걸리는거였네요...

좋은 답변 좋은 책 감사드립니다.!

2019년 6월 11일 (화) 오후 10:48, Kim, KwonHyun [email protected]님이 작성:

제 것 소스를 조금 살펴봤는데,

_output.yml에 latex_engine: xelatex 으로 되어 있네요...

xelatex 인스톨 되어 있다면, 이렇게 쓰면 되지 않을까요? 저도 인터넷 어디선가 보고 한 거라서 인터넷에 어딘가 있을 것이라 생각되지만... ^^;;;;

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rstudio/bookdown-demo/issues/39?email_source=notifications&email_token=AE45OJ2VZ7ZTQRDHIN5XQETPZ6UKVA5CNFSM4GM6EPV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXNFWVA#issuecomment-500849492, or mute the thread https://github.com/notifications/unsubscribe-auth/AE45OJZEJLDZR57LINHPH5TPZ6UKVANCNFSM4GM6EPVQ .

--

이 현 열*, CFA FRM (Henry Lee)*

Web : http://henryquant.blogspot.kr/

Mobile : +82 10 3057 0072

Email : [email protected] [email protected]

hyunyulhenry avatar Jun 12 '19 23:06 hyunyulhenry