本文介绍了R降价中的德语变音字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 R-markdown 中显示非英文字符?在其他英文文档中,我想渲染一个 'u',上面有两个点(一个 'umlaut'). 这是 'u' 在名称 'Muller.'

解决方案

您可以使用

How can I display non-English characters in R-markdown? In an otherwise English document, I would like to render a single 'u' with two dots (an 'umlaut') on top of it. It is the correct spelling for 'u' in the name 'Muller.'

解决方案

You can use standard HTML code for this.For example, the German letter ä can be displayed by placing the corresponding vowel after an ampersand sign, followed by uml;, i.e., ä.

Here's an example of a .Rmd file:

---
title: "Umlauts with Rmarkdown"
output: html_document
---

## This is a sentence with many umlaut characters:

Herr Müller sagt: "Über den Wolken können Sonnenuntergänge
besonders schön sein."

这篇关于R降价中的德语变音字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 02:46