added pandoc template

This commit is contained in:
2026-05-28 01:10:21 +09:00
parent 5f2b85feeb
commit 506ab689c1
3 changed files with 55 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
%.pdf: %.md
pandoc --from markdown --to pdf -o $@ $^ --pdf-engine=lualatex -N
+23
View File
@@ -0,0 +1,23 @@
{
description = "Template for Pandoc Markdown";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
report-temp.url = "github:kenryuS/report-temp";
};
outputs = { self, nixpkgs, flake-utils, report-temp }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config = {};
overlays = [];
};
in
{
devShells.default = report-temp.devShells.${system}.pandoc;
}
);
}
+30
View File
@@ -0,0 +1,30 @@
---
documentclass: bxjsarticle
classoption:
- lualatex
- ja=standard
- 11pt
title: テストレポート
author: 高専太郎
date: 1970-01-01
---
# Test
* Normal
* *Italic*
* **Bold**
* `code`
> quote
```python
def fib(n):
if n <= 2:
return 1
return fib(n - 1) + fib(n - 2)
```
$$
e^{i\pi} + 1 = 0
$$