-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
75 lines (67 loc) · 2.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
ppt:
cp README.md docs/README.md
cp README.pdf docs/README.pdf
marp -I docs/content -o docs && mv docs/ppt.html docs/index.html && marp -s docs
install:
sudo pacman -S ghc cabal-install pandoc texlive-most plantuml pandoc-crossref
pip install matplotlib
make pandoc-plot
pdf:
cat article/*.md extra/md-pandoc.md extra/crossref.md > README.md
@pandoc README.md \
--pdf-engine=lualatex \
--metadata-file=metadata.yaml --mathjax \
-F pandoc-plot \
-F pandoc-crossref --citeproc \
--highlight-style vendor/pygments.theme \
--template=plantilla --pdf-engine-opt=-shell-escape \
-s --toc --toc-depth=2 --number-sections --columns=80 \
-o README.pdf
brave README.pdf
lite:
cat ./article/*.md > ./README-lite.md
@pandoc ./README-lite.md -f markdown \
--metadata-file=./metadata.yaml --mathjax \
-F pandoc-crossref --citeproc \
--highlight-style ./vendor/pygments.theme \
--template=plantilla --pdf-engine-opt=-shell-escape \
-s --toc --toc-depth=2 --number-sections --columns=80 \
-o ./README-lite.pdf
pandoc-plot:
git clone https://aur.archlinux.org/pandoc-plot-bin.git
cd ./pandoc-plot-bin;
makepkg -si
cd ../;
rm pandoc-plot-bin -r
# crossref:
# @pandoc extra/crossref.md \
# --mathjax \
# -F pandoc-crossref --citeproc \
# --highlight-style vendor/pygments.theme \
# --pdf-engine-opt=-shell-escape \
# -s --columns=80 \
# -o extra/crossref.pdf
# apendice:
# @pandoc extra/md-pandoc.md
# --mathjax \
# -F pandoc-crossref --citeproc \
# --highlight-style vendor/pygments.theme \
# --pdf-engine-opt=-shell-escape \
# -s --columns=80 \
# -o extra/md-pandoc.pdf
# concat:
# pdfunite README.pdf extra/md-pandoc.pdf extra/crossref.pdf concat.pdf
#
#
#
# mermaid-filter:
# sudo npm install --global mermaid-filter
#
#
#--include-after-body=extra/md-pandoc.tex \
#cat article/*.md extra/md-pandoc.md extra/crossref.md > README.md
# wget https://sourceforge.net/projects/plantuml/files/plantuml.jar/download -O plantuml.jar
# pandoc --print-highlight-style pygments > my.theme
# wget raw.githubusercontent.com/citation-style-language/styles/master/ieee.csl
#https://github.com/raghur/mermaid-filter
#librsvg