From 2ead4e9758fe8fbb00e5fa91c0b44db8f48e3b21 Mon Sep 17 00:00:00 2001 From: Ekaitz Zárraga Date: Mon, 28 Jan 2019 17:09:49 +0100 Subject: First commit --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..e896640 --- /dev/null +++ b/README.md @@ -0,0 +1,70 @@ +# ElenQ Documentation templates + +`pandoc` templates for ElenQ documents. + +## Installation + +Run `install.sh` script and it'll automagically link all the templates to your +`~/.pandoc/templates/` folder. + +This method doesn't work on a non-Unix-like OS. + + +## Usage + +Once installed `pandoc` will be aware of the place where the templates are so +they can be used directly like: + +``` +pandoc input.md -o output.pdf --template=elenq-article +``` + +### Specific details + +These templates only work with `pandoc`'s `--latex-engine=xelatex` option. + +> NOTE: Recent `pandoc` versions changed the name of the option to `--pdf-engine` + +### Metadata + +Templates expect some metadata to be set, no field is mandatory but some can be +important (judge yourself): + +``` yaml +lang: english | spanish | basque | ... +title: The title of the document +subtitle: The subtitle of the article +author: Author's name +license: License of the document +``` + +> NOTE: Templates automatically put the copyleft symbol in the PDF, they are +> only prepared for copyleft licenses. + +### Helpful help + +You'd probably want to create some aliases like these: + +``` bash +# Pandoc for ElenQ +alias pandoc-xelatex="pandoc $@ --latex-engine=xelatex --to latex -N" +alias elenqdoc-article="pandoc-xelatex $@ --template elenq-article --metadata=documentclass:article" +alias elenqdoc-book="pandoc-xelatex $@ --template elenq-book --metadata=documentclass:book" +``` + +## Editing + +Just edit the content of the templates as they were LaTeX files. + +### Logos + +The ElenQ Technology logo is embedded inside the templates as a `tikz` image. + +There's a way to convert from SVG to TikZ you'd probably want to use to change +the logo from the templates. + +https://github.com/kjellmf/svg2tikz + +## License + +This repository is distributed under the terms of the Apache License 2.0. -- cgit v1.2.3