Browse Source

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

pull/567/head
Joshua Murphy 1 year ago
parent
commit
463fcd587a
4 changed files with 25 additions and 0 deletions
  1. 2
    0
      .gitignore
  2. 0
    0
      Cgroups/linux-cgroups-1.md
  3. BIN
      LinuxKernelInsides.pdf
  4. 23
    0
      latex.sh

+ 2
- 0
.gitignore View File

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

Cgroups/linux-cgroups1.md → Cgroups/linux-cgroups-1.md View File


BIN
LinuxKernelInsides.pdf View File


+ 23
- 0
latex.sh View File

@@ -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
+

Loading…
Cancel
Save