Rmarkdown / bookdown pdf 输出中的连字问题

问题描述

在我的 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 -

Output shown

预期输出 -

Output expected

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;

-输出

enter image description here

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...