://ftp.ktug.org/KTUG/texlive/tlnet ktug sudo tlmgr repository add http
Quarto 문서에서도 bookdown 패키지와 같이 html or pdf book을 만들 수 있다. 다만 html의 경우 한글이 오류 없이 작동하지만, pdf의 경우 한글을 활용한 문서를 만들기 위해서는 몇 가지 세팅을 해줘야 한다. 세팅을 따로 하지 않을 경우 한글을 인식하지 못하는 문제가 있다.
MAC texlive 세팅
- 해당 링크에서 mactex 설치 링크 들어가서 설치($10$분 소요)
터미널 켜기 :
- KTUG 사설 저장소 등록 :
- 사설 저장소로부터 폰트 다운로드와 등록 :
sudo tlmgr pinning add ktug
- texlive 업데이트 :
--all --self sudo tlmgr update
- 터미널 다시 키고, texlive의 폰트를 mac os 폰트로 등록 :
-s /Library/TeX/Root/texmf-dist/fonts/truetype ~/Library/Fonts/
ln
-s /Library/TeX/Root/texmf-dist/fonts/opentype ~/Library/Fonts/ ln
_Quarto.yml 파일에 kotex 업데이트
위의 절차를 완료한 후 _Quarto.yml 파일에 kotex 패키지를 수동으로 업데이트하면 된다.
:
project: book
type
:
book: "Qbook"
title: "Jane Doe"
author: "8/5/2022"
date:
chapters- index.qmd
- intro.qmd
- summary.qmd
- references.qmd
: references.bib
bibliography
:
format:
html: cosmo
theme:
pdf: scrreprt
documentclass-in-header:
include: |
text
\usepackage{kotex}
\usepackage{float}
: visual editor
Note
안될 경우 latex-tinytex: false
설정 후 knit를 진행하면 됨
Citation
BibTeX citation:
@online{don2022,
author = {Don, Don and Don, Don},
title = {Quarto Book {한글} {세팅}},
date = {2022-08-05},
url = {https://dondonkim.netlify.app/posts/2022-08-05-quarto-book/quartobook.html},
langid = {en}
}
For attribution, please cite this work as:
Don, Don, and Don Don. 2022. “Quarto Book 한글 세팅.”
August 5, 2022. https://dondonkim.netlify.app/posts/2022-08-05-quarto-book/quartobook.html.