Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese support #9

Closed
albert-ying opened this issue Dec 22, 2023 · 3 comments
Closed

Chinese support #9

albert-ying opened this issue Dec 22, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@albert-ying
Copy link

Hi I'm wondering how can I use Chinese in this template?

Usually adding \usepackage{ctex} works for latex, but in this case I got an error:

compilation failed- error
LuaTeX-ja error: File `jfm-zh_CN.lua' not found.
<recently read> ltj@@jfont@inner 
                 
l.1226 \tl_set:Nn \CJK@family { song } \selectfont
                                                
@mps9506 mps9506 self-assigned this Dec 29, 2023
@mps9506 mps9506 added the bug Something isn't working label Dec 29, 2023
@mps9506
Copy link
Owner

mps9506 commented Dec 29, 2023

I'll update the template to fix this.

@mps9506
Copy link
Owner

mps9506 commented Dec 29, 2023

@albert-ying We can use quarto's built-in support for the xeCJK package now by setting the CJKmainfont: yaml key to a locally installed Asian script font. The xelatex pdf engine also has to be used:

---
title: CV
format:
  quarto-cv-pdf:
    pdf-engine: xelatex
author: William Gosset
date: last-modified
phone: 123-456-7890
address: "Guinness Brewery · Park Royal · London NW10 7RR, UK"
email: guinness@consumer-care.net
fontsize: 11pt
CJKmainfont: Noto Sans CJK JP
fontawesome: yes
---

# Heading 1

本ラげぎは瀬所な祭頂カレイエ聞記政義幸はゅくた裕態けざやゆ済51込ゆやン難都ぎゆきの制交ゃばをさ速会ゆ細効エ究導どね様親破そた。相ハテ挙要2芸ひそぜず援裁ぜだっみ洗際像マ教判くぽ表長ワタ取経シナ写皇マワ割96並掛焼詐加ぱげ。惑ラヘ位容らぼ馬学売エ北後フヲ部書つラルび井女相ラ局純主ぱ応終フセ告味てるー稿更ンらよ収94成ロヒ疑憲ぶ車取ヘハ山銘リ員知ド。

抜ゃね月情よ激案ひラし合暮ヱマ厳要1主ら返総画せいれ惑棋どレごイ磯北っよ枠細ミヘ多敢渓窮胡ゅと。身目ー靖堀報トヤホ養四シレ総8発ケサロキ強7討わちりの作発群ヲ断14朝隠シ谷帯ンぞ出村ハナ掲屋だむづじ世確組ロワ沢人ネヨコ駅昇捜昭垣だうぽ。字コモ表家2第み海停ロホ在苦ハチ渉断ね英再フめべ康知クモテ葛選スセ折内にラへ写再み大左め市皇トぽラお入社側圧ろぼつ。

image

I don't have any experience using Chinese characters so let me know if there are any problems.

@mps9506
Copy link
Owner

mps9506 commented Jan 31, 2024

@albert-ying I am marking this as closed. If there are still any issues feel free to reopen the issue.

@mps9506 mps9506 closed this as completed Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants