Skip to content

Commit 463fcd5

Browse files
author
Joshua Murphy
committed
Now successfuly converting each chapter into LaTeX, compiling it and then merging each PDF together into a single book. Currently no image support!
1 parent 6d69c24 commit 463fcd5

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.tex
2+
build
File renamed without changes.

LinuxKernelInsides.pdf

4.56 MB
Binary file not shown.

latex.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
rm -r build
3+
mkdir build
4+
for D in *; do
5+
if [ -d "${D}" ] && [ "${D}" != "build" ]
6+
then
7+
echo "Converting $D . . ."
8+
pandoc ./$D/README.md ./$D/linux-*.md -o build/$D.tex --template default
9+
fi
10+
done
11+
12+
cd ./build
13+
for f in *.tex
14+
do
15+
pdflatex -interaction=nonstopmode $f
16+
done
17+
18+
cd ../
19+
pandoc README.md SUMMARY.md CONTRIBUTING.md CONTRIBUTORS.md \
20+
-o ./build/Preface.tex --template default
21+
22+
pdfunite ./build/*.pdf LinuxKernelInsides.pdf
23+

0 commit comments

Comments
 (0)