Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • poquet/irit-latex-pandoc-template
  • sepia-pub/mael/irit-latex-pandoc-template
2 results
Select Git revision
Show changes
Commits on Source (2)
result
# irit-latex-pandoc-template
This project contains my [Pandoc template](https://pandoc.org/MANUAL.html#templates) to generate [IRIT](https://www.irit.fr/en/home/)-looking PDFs from a [Pandoc Markdown](https://pandoc.org/MANUAL.html#pandocs-markdown) content.
## Usage
1. Clone this repo
2. (Install [Pandoc](https://pandoc.org/) and a [LaTeX suite](https://en.wikipedia.org/wiki/TeX_Live))
3. `pandoc -o example.pdf example.md --template latex.template`
## Example
See [example.md](./example.md)
{ pkgs ? import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/22.05.tar.gz";
sha256 = "0d643wp3l77hv2pmg2fi7vyxn4rwy0iyr8djcw1h5x72315ck9ik";
}) {}
}:
let
self = rec {
example = pkgs.stdenv.mkDerivation rec {
name = "report";
nativeBuildInputs = with pkgs; [
texlive.combined.scheme-full
pandoc
];
src = pkgs.lib.sourceByRegex ./. [
"irit-logo\.pdf"
".*\.md"
"latex\.template"
];
buildPhase = ''
pandoc -o example.pdf example.md --template latex.template
'';
installPhase = ''
mkdir -p $out
mv example.pdf $out/
'';
};
};
in
self