diff options
author | Ekaitz Zárraga <ekaitz.zarraga@protonmail.com> | 2019-01-28 17:09:49 +0100 |
---|---|---|
committer | Ekaitz Zárraga <ekaitz.zarraga@protonmail.com> | 2019-01-28 18:26:50 +0100 |
commit | 2ead4e9758fe8fbb00e5fa91c0b44db8f48e3b21 (patch) | |
tree | 4ac674dd408a2db19c3fdf452e54e4b8d213a793 /README.md |
First commit
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 70 |
1 files changed, 70 insertions, 0 deletions
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. |