소스 검색

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

Joshua Murphy 7 년 전
부모
커밋
463fcd587a
4개의 변경된 파일25개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      .gitignore
  2. 0 0
      Cgroups/linux-cgroups-1.md
  3. BIN
      LinuxKernelInsides.pdf
  4. 23 0
      latex.sh

+ 2 - 0
.gitignore

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

+ 0 - 0
Cgroups/linux-cgroups1.md → Cgroups/linux-cgroups-1.md


BIN
LinuxKernelInsides.pdf


+ 23 - 0
latex.sh

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