Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/polamjag/md2repotex

Markdown to report-styled XeLaTeX file, with support of pandoc
https://github.com/polamjag/md2repotex

Last synced: about 1 month ago
JSON representation

Markdown to report-styled XeLaTeX file, with support of pandoc

Awesome Lists containing this project

README

        

# md2repotex

Markdown to LaTeX converter, wraps pandoc, appends header and footer

## DEPENDENCIES

- [Pandoc](http://johnmacfarlane.net/pandoc/)
- GNU sed

## SYNOPSIS

```
$ md2repotex [-t ""] [-d "\\today"] [-f]
```

### OPTIONS

- `-t ""`: title for report
- `-d "\\today"`: specify `\date{}` in LaTeX (the character `\\` should be doubled because it works as escape sequence)
- `-f`: force overwriting output file

## DESCRIPTION

**You must have directory named `.md2repotex.d/` in your `$HOME`**.

Edit thees files to customize template for generated files.

It contains these files:

- `.md2repotex.d/meta`
- `.md2repotex.d/header`
- `.md2repotex.d/footer`

### `.md2repotex.d/meta`

This file contains metadata of the document like `\author`.

### `.md2repotex.d/header`

This file contains basic preambles for LaTeX files.

### `.md2repotex.d/footer`

This file is basically only for `\end{document}`, but you can append anything on bottom of .tex file by editing this.

## EXAMPLES

```
$ # this may opens compiled pdf
$ md2repotex -t "my awesome report" report.md && xelatex report.tex && open report.pdf
$ # specify date
$ md2repotex -t "another title" -d "Wed Jan 21, 2015" report.md
```