-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_book.sh
More file actions
executable file
·39 lines (38 loc) · 893 Bytes
/
Copy pathbuild_book.sh
File metadata and controls
executable file
·39 lines (38 loc) · 893 Bytes
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
#!/bin/bash
./clang-format-helper.sh
cd Markdown
mkdir -p tmp
cp preamble.tex tmp
cp template.latex tmp
./create_mds_with_cpp.sh
cd tmp
cat Content.md \
GCDAndModInverse.md \
PrimeSieve.md \
LongestIncreasingSubsequence.md \
DisjointSets.md \
DisjointIntervals.md \
RangeMinQuery.md \
Fenwick.md \
LinearProgramming.md \
NaturalNumber.md \
GameTheory.md \
Graph.md \
ConnectedComponents.md \
Trees.md \
MST.md \
LCA.md \
ShortestPath.md \
BipartiteGraph.md \
BipartiteMatching.md \
MaxFlow.md \
RabinKarp.md \
> OneForAll.md
sed -i 's/^## \(.*\)/\\newpage\n## \1/g' OneForAll.md
# tail -n +2 OneForAll.md > OFA.md
pandoc OneForAll.md -o OneForAll.pdf -H preamble.tex --template=template.latex -V geometry:margin=1in -V fontsize=12pt
# cp OneForAll.md ..
# cp OFA.md ..
cp OneForAll.pdf ..
cd ..
# rm -rf tmp