在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):yixuan/prettydoc开源软件地址(OpenSource Url):https://github.com/yixuan/prettydoc开源编程语言(OpenSource Language):SCSS 43.3%开源软件介绍(OpenSource Introduction):Creating Pretty Documents From R Markdown
Themes for R MarkdownWith the powerful rmarkdown package, we could easily create nice HTML document by adding some meta information in the header, for example ---
title: Nineteen Years Later
author: Harry Potter
date: July 31, 2016
output:
rmarkdown::html_document:
theme: lumen
--- The html_document engine uses the Bootswatch theme library to support different styles of the document. This is a quick and easy way to tune the appearance of your document, yet with the price of a large file size (> 700KB) since the whole Bootstrap library needs to be packed in. For package vignettes, we can use the
html_vignette
engine to generate a more lightweight HTML file that is meant to minimize the
package size, but the output HTML is less stylish than the So can we do BOTH, a lightweight yet nice-looking theme for R Markdown? The prettydoc EngineThe answer is YES! (At least towards that direction) The prettydoc package provides an alternative engine, ---
title: Nineteen Years Later
author: Harry Potter
date: July 31, 2016
output:
prettydoc::html_pretty:
theme: cayman
highlight: github
--- You can also create documents from prettydoc templates in RStudio. Step 1: Click the "New File" button and choose "R Markdown". Step 2: In the "From Template" tab, choose one of the built-in templates. Options and ThemesThe options for the
Offline Math ExpressionsBy default, ---
title: Nineteen Years Later
author: Harry Potter
date: July 31, 2016
output:
prettydoc::html_pretty:
theme: cayman
highlight: github
math: katex
--- This option will enable KaTeX for rendering the math expressions, and all resource files will be included in for offline viewing. The offline document will be ~800k larger. Related Projects
GalleryHere are some screenshots of the HTML pages generated by prettydoc with different themes and syntax highlighters. (demo page)Cayman(demo page)Tactile(demo page)Architect(demo page)Leonids(demo page)HPSTR |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论