[英]How to change the font style to typewriter in R markdown
我想寫一篇使用R markdown的文章。 我想將文本類型更改為typewriter
。
我嘗試了這個,但是沒有用。
p.caption {
color: #777;
margin-top: 10px;
}
p code {
white-space: inherit;
}
pre {
word-break: normal;
word-wrap: normal;
}
pre code {
white-space: inherit;
}
/* Whole document: */
body{
font-family: typewriter;
font-size: 16pt;
}
/* Headers */
h1,h2,h3,h4,h5,h6{
font-size: 24pt;
}
有什么幫助嗎?
在第一個塊之前將其添加到Rmd文件中:
<style>
div.fontdoc { font-family: typewriter;}
</style>
<div class = "fontdoc">
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.