mirror of
https://github.com/0xAX/linux-insides.git
synced 2024-12-22 22:58:08 +00:00
Merge pull request #581 from MintCN/master
move latex.sh to Scripts folder
This commit is contained in:
commit
26622e3604
Binary file not shown.
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
`get_all_links.py` : justify one link is live or dead with network connection
|
`get_all_links.py` : justify one link is live or dead with network connection
|
||||||
|
|
||||||
|
`latex.sh` : a script for converting Markdown files in each of the subdirectories into a unified PDF typeset in LaTeX
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
`get_all_links.py` :
|
`get_all_links.py` :
|
||||||
@ -11,3 +13,9 @@
|
|||||||
```
|
```
|
||||||
./get_all_links.py ../
|
./get_all_links.py ../
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`latex.sh` :
|
||||||
|
|
||||||
|
```
|
||||||
|
./latex.sh
|
||||||
|
```
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
rm -r build
|
rm -r build
|
||||||
mkdir build
|
mkdir build
|
||||||
for D in *; do
|
for D in $(ls ../); do
|
||||||
if [ -d "${D}" ] && [ "${D}" != "build" ]
|
if [ -d "../${D}" ]
|
||||||
then
|
then
|
||||||
echo "Converting $D . . ."
|
echo "Converting $D . . ."
|
||||||
pandoc ./$D/README.md ./$D/linux-*.md -o build/$D.tex --template default
|
pandoc ../$D/README.md ../$D/linux-*.md -o build/$D.tex --template default
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -20,8 +20,7 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
pandoc README.md SUMMARY.md CONTRIBUTING.md CONTRIBUTORS.md \
|
pandoc ../README.md ../SUMMARY.md ../CONTRIBUTING.md ../contributors.md \
|
||||||
-o ./build/Preface.tex --template default
|
-o ./build/Preface.tex --template default
|
||||||
|
|
||||||
pdfunite ./build/*.pdf LinuxKernelInsides.pdf
|
pdfunite ./build/*.pdf LinuxKernelInsides.pdf
|
||||||
|
|
Loading…
Reference in New Issue
Block a user