Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eddelbuettel/linl
Linl Is Not Letter -- Markdown-based LaTeX Letter Template
https://github.com/eddelbuettel/linl
cran letter markdown package pandoc r
Last synced: 2 days ago
JSON representation
Linl Is Not Letter -- Markdown-based LaTeX Letter Template
- Host: GitHub
- URL: https://github.com/eddelbuettel/linl
- Owner: eddelbuettel
- Created: 2017-10-15T14:33:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-30T22:25:20.000Z (5 months ago)
- Last Synced: 2024-10-12T21:26:15.518Z (3 months ago)
- Topics: cran, letter, markdown, package, pandoc, r
- Language: TeX
- Homepage:
- Size: 1.48 MB
- Stars: 111
- Watchers: 8
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
Awesome Lists containing this project
README
## linl: Linl is not Letter
[![CI](https://github.com/eddelbuettel/linl/workflows/ci/badge.svg)](https://github.com/eddelbuettel/linl/actions?query=workflow%3Aci)
[![Package-License](https://img.shields.io/badge/license-GPL--3-brightgreen.svg?style=flat)](http://www.gnu.org/licenses/gpl-3.0.html)
[![CRAN](https://www.r-pkg.org/badges/version/linl)](https://cran.r-project.org/package=linl)
[![Dependencies](https://tinyverse.netlify.app/badge/linl)](https://cran.r-project.org/package=linl)
[![Downloads](https://cranlogs.r-pkg.org/badges/linl?color=brightgreen)](https://www.r-pkg.org:443/pkg/linl)
[![Last Commit](https://img.shields.io/github/last-commit/eddelbuettel/linl)](https://github.com/eddelbuettel/linl)### 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](https://www.aaronwolen.com/) in his
[pandoc-letter](https://github.com/aaronwolen/pandoc-letter) repository, and extends it for use from
R via the [rmarkdown](https://cran.r-project.org/package=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:![](https://eddelbuettel.github.io/linl/skeleton.png)
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:![](https://eddelbuettel.github.io/linl/vignette.png)
The vignette also contains the few lines of vignette metadata one would exclude from a normal
letter.
### StatusThe package is fully working, and on [CRAN](https://cran.r-project.org/).
### Usage
As the package is on CRAN, you can use the standard
```r
install.packages("linl")
```to install it from CRAN, and then use as a Markdown template via RStudio, or use code such as
```r
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](https://ghrr.github.io/drat/) from
which they can be installed via one additional line as in```r
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](https://github.com/eddelbuettel/binb): Binb is not Beamer: Stylish pdf Presentations from RMarkdown
- [pinp](https://github.com/eddelbuettel/pinp): Pinp is not PNAS: Snazzy one-or two column short papers or vignettes
- [tint](https://github.com/eddelbuettel/tint): tint is not tufte: Beautiful pdf or html handout or writeups### Authors
Dirk Eddelbuettel and Aaron Wolen with contribution by Michal Bojanowski and Iñaki Ucar.
The included `wallpaper.sty` was written by Michael H.F. Wilkinson.
### License
GPL-3 for this package, the work in [pandoc-letter](https://github.com/aaronwolen/pandoc-letter),
as well as underlying Pandoc template.