Browse Source

move latex.sh to Scripts folder

pull/581/head
Dongliang Mu 1 year ago
parent
commit
0c5ebb0990
3 changed files with 12 additions and 5 deletions
  1. BIN
      Scripts/LinuxKernelInsides.pdf
  2. 8
    0
      Scripts/README.md
  3. 4
    5
      Scripts/latex.sh

BIN
LinuxKernelInsides.pdf → Scripts/LinuxKernelInsides.pdf View File


+ 8
- 0
Scripts/README.md View File

@@ -4,6 +4,8 @@
4 4
 
5 5
 `get_all_links.py` : justify one link is live or dead with network connection
6 6
 
7
+`latex.sh` : a script for converting Markdown files in each of the subdirectories into a unified PDF typeset in LaTeX
8
+
7 9
 ## Usage
8 10
 
9 11
 `get_all_links.py` :
@@ -11,3 +13,9 @@
11 13
 ```
12 14
 ./get_all_links.py ../
13 15
 ```
16
+
17
+`latex.sh` :
18
+
19
+```
20
+./latex.sh
21
+```

latex.sh → Scripts/latex.sh View File

@@ -5,11 +5,11 @@
5 5
 #!/bin/bash
6 6
 rm -r build 
7 7
 mkdir build
8
-for D in *; do
9
-    if [ -d "${D}" ] && [ "${D}" != "build" ]
8
+for D in $(ls ../); do
9
+    if [ -d "../${D}" ]
10 10
     then
11 11
         echo "Converting $D . . ."
12
-        pandoc ./$D/README.md ./$D/linux-*.md -o build/$D.tex --template default
12
+        pandoc ../$D/README.md ../$D/linux-*.md -o build/$D.tex --template default
13 13
     fi
14 14
 done
15 15
 
@@ -20,8 +20,7 @@ do
20 20
 done
21 21
 
22 22
 cd ../
23
-pandoc README.md SUMMARY.md CONTRIBUTING.md CONTRIBUTORS.md \
23
+pandoc ../README.md ../SUMMARY.md ../CONTRIBUTING.md ../contributors.md \
24 24
    -o ./build/Preface.tex --template default
25 25
 
26 26
 pdfunite ./build/*.pdf LinuxKernelInsides.pdf
27
-

Loading…
Cancel
Save