Setting lang: zh-CN
, then installing hyphen-chinese (1 of 1)
until ERROR: compilation failed- missing hyphenation file
#10517
-
DescriptionI want to render a Chinese qmd to pdf. But I failed. Steps to reproduceUsing vscode to create a qmd. ---
title: test
subtitle: test
author:
- name: test
orcid: 823211321
affiliations:
- name: test
department: test
date: last-modified
date-format: MMMM YYYY
format:
pdf:
pdf-engine: xelatex
documentclass: scrreprt
template-partials:
- before-body.tex
papersize: a4
toc: true
toc-depth: 3
toc-title: TOC
number-sections: true
number-depth: 3
# lof: true
# lot: true
geometry:
- top=30mm
- left=20mm
- heightrounded
colorlinks: true
code-line-numbers: true
execute:
warning: false
# listings: true
include-in-header:
text: |
% \usepackage{ctex}
\usepackage{fvextra}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{
commandchars=\\\{\},
breaklines, breaknonspaceingroup, breakanywhere
}
lang: zh-CN
# mainfont: LXGW WenKai
---
# 测试
$if(has-frontmatter)$
\frontmatter
$endif$
$if(title)$
\cleardoublepage
\thispagestyle{empty}
{\centering
\hbox{}\vskip 0cm plus 1fill
{\Huge\bfseries $title$ \par}
$if(subtitle)$
\vspace{3ex}
{\Large\bfseries $subtitle$ \par}
$endif$
\vspace{12ex}
$for(by-author)$
{\Large\bfseries $by-author.name.literal$ \par}
\vspace{3ex}
{\Large orcid: $by-author.orcid$ \par}
\vskip 0cm plus 2fill
{\bfseries\large Master of Applied Statistics \par}
\vspace{3ex}
{\bfseries\large $date$ \par}
\vspace{12ex}
$for(by-author.affiliations)$%
$if(it.department)$%
{\bfseries\large $it.department$ \par}
\vspace{3ex}
$endif$%
{\bfseries\large $it.name$ \par}
$endfor$$endfor$%
\vspace{12ex}
% {\small Submitted in total fulfilment of the requirements
% of the degree of Doctor of Philosophy \par}
}
$endif$ The qmd and tex files is listed in this zip. Expected behavior
Your environmentvscode version
system: Windows 11 Quarto check output
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I had test this problem in my another old windows computer using |
Beta Was this translation helpful? Give feedback.
-
I believe this is the same as: |
Beta Was this translation helpful? Give feedback.
I believe this is the same as: