1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-21 22:28:08 +00:00

Now successfuly converting each chapter into LaTeX, compiling it and then merging each PDF together into a single book. Currently no image support!

This commit is contained in:
Joshua Murphy 2018-02-14 10:58:22 -03:30
parent 6d69c2431b
commit 463fcd587a
4 changed files with 25 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.tex
build

BIN
LinuxKernelInsides.pdf Normal file

Binary file not shown.

23
latex.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
rm -r build
mkdir build
for D in *; do
if [ -d "${D}" ] && [ "${D}" != "build" ]
then
echo "Converting $D . . ."
pandoc ./$D/README.md ./$D/linux-*.md -o build/$D.tex --template default
fi
done
cd ./build
for f in *.tex
do
pdflatex -interaction=nonstopmode $f
done
cd ../
pandoc README.md SUMMARY.md CONTRIBUTING.md CONTRIBUTORS.md \
-o ./build/Preface.tex --template default
pdfunite ./build/*.pdf LinuxKernelInsides.pdf