问题描述
在我的 Rmarkdown 项目中,我无法正确导出 PDF 文件中的连字。
font-config.tex
文件 -
\usepackage{fontspec}
\setmainfont{Noto Sans}
Rmd 文件中的 YAML 前言 -
---
title: "test"
author: "author"
date: "22/02/2021"
output:
pdf_document:
latex_engine: xelatex
includes:
in_header: font-config.tex
---
The following text is in hindi language.
गुरु
输出显示为 PDF -
预期输出 -
Nakula
字体显示正确,但没有粗体字体。
我使用的 Noto Sans
字体在 html 输出中工作正常,但在 PDF 输出中存在连字问题。
我尝试过 stackoverflow 和 tex.stackexchange 上的 pandoc 文档和其他 similar questions,但没有运气。
我是 TeX 的新手,希望它有一个非常简单的解决方案。
解决方法
根据 here 提供的信息,这可能对您有用:
SELECT x.item,sum(x.count) total,group_concat(x.vendor,':',x.count) per_user
FROM (SELECT t.item,t.vendor,sum(t.count) count
FROM elbat t
GROUP BY t.item,t.vendor) x
GROUP BY x.item;
-输出