• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

eddelbuettel/linl: Linl Is Not Letter -- Markdown-based LaTeX Letter Template

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

eddelbuettel/linl

开源软件地址(OpenSource Url):

https://github.com/eddelbuettel/linl

开源编程语言(OpenSource Language):

TeX 51.6%

开源软件介绍(OpenSource Introduction):

linl: Linl is not Letter

CI Package-License CRAN Dependencies Downloads Last Commit

Motivation

The LaTeX Letter class is very useful for simple letters. As such letters are also somewhat standardized, they make for excellent candidates for use by Markdown.

This package leans on earlier work by Aaron Wolen in his pandoc-letter repository, and extends it for use from R via the rmarkdown package.

Example

Skeleton

The skeleton creates a very simple letter. This shows the (complete) source on the left and the rendered pdf on the right:

Several formatting defaults for font, fontsize, indentation are in use. See help(linl) for a complete list and default values.

Vignette

The vignette example is a little more featureful and shows how to include a letterhead on-demand, a signature, and a few formatting settings. All of these are driven by simple YAML headers as seen on the left:

The vignette also contains the few lines of vignette metadata one would exclude from a normal letter.

Status

The package is fully working, and on CRAN.

Usage

As the package is on CRAN, you can use the standard

install.packages("linl")

to install it from CRAN, and then use as a Markdown template via RStudio, or use code such as

library(rmarkdown)
draft("myletter.Rmd", template="pdf", package="linl", edit=FALSE)
render("myletter.Rmd")

to create a first draft of a new myletter.Rmd.

Interim and test versions may also appear on the ghrr drat repo from which they can be installed via one additional line as in

drat:::addRepo("ghrr")     # registers the ghrr drat repo
install.packages("linl")   # installs linl from ghrr

Once installed, the above code examples should work as expected.

Requirements

Beyond the R package dependencies, a working pandoc binary is needed. RStudio installs its own copy, otherwise do what is needed on your OS (i.e., something like sudo apt-get install pandoc pandoc-citeproc).

See Also

  • binb: Binb is not Beamer: Stylish pdf Presentations from RMarkdown
  • pinp: Pinp is not PNAS: Snazzy one-or two column short papers or vignettes
  • tint: tint is not tufte: Beautiful pdf or html handout or writeups

Authors

Dirk Eddelbuettel and Aaron Wolen.

License

GPL-3 for this package, the work in pandoc-letter, as well as underlying Pandoc template.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap