mirror of
https://github.com/kenryuS/report-temp.git
synced 2026-06-15 00:36:13 +09:00
added pandoc template
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
%.pdf: %.md
|
||||
pandoc --from markdown --to pdf -o $@ $^ --pdf-engine=lualatex -N
|
||||
@@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -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
|
||||
$$
|
||||
Reference in New Issue
Block a user