R降价中的德语变音字符 [英] German Umlaut characters in R markdown

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

问题描述

如何在 R-markdown 中显示非英文字符?在其他英文文档中,我想渲染一个 'u',上面有两个点(一个 'umlaut'). 这是 'u'<的正确拼写/strong> 在名称 '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., &auml;.

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&uuml;ller sagt: "&Uuml;ber den Wolken k&ouml;nnen Sonnenunterg&auml;nge 
besonders sch&ouml;n sein."

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆