
LaTeX preset for wooorm/remark
Table of Contents
Install
npm i remark remark-cli @paperist/remark-preset-latex
Usage
$ remark index.md -p @paperist/remark-preset-latex -o index.tex
Syntax
Inspired by pandoc-crossref.
Image labels
{#fig:label}
{#fig:label2 width=5cm,height=5cm}
Equation labels
$$ math $$ {#eq:label}
Table labels
| a | b | c |
|:---:|:---:|:---:|
| 1 | 2 | 3 |
: Caption {#tbl:label}
Section labels
# Section {#sec:section}
Code Block labels
Not implemented
```{#lst:code .haskell caption="Listing caption"}
main :: IO ()
main = putStrLn "Hello World!"
```
References
[@fig:label1] or [@fig:label1;@fig:label2;...]
[@jones99] or [@jones99;@smith06;...]
YAML
Templates
You can use ejs template.
%% TeX Template written by ejs format.
\author{<%= author %>}
\title{<%= title %>}
\begin{document}
\maketitle
<%= body %>
\end{document}
latex:
baseTemplateFile: ./template.tex
documentInfo:
author: 3846masa
title: Document Title
Bibliography
Not implemented
Contribute
PRs accepted.
License
MIT © 3846masa