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
|
||||
|
||||
`latex.sh` : a script for converting Markdown files in each of the subdirectories into a unified PDF typeset in LaTeX
|
||||
|
||||
## Usage
|
||||
|
||||
`get_all_links.py` :
|
||||
@ -11,3 +13,9 @@
|
||||
```
|
||||
./get_all_links.py ../
|
||||
```
|
||||
|
||||
`latex.sh` :
|
||||
|
||||
```
|
||||
./latex.sh
|
||||
```
|
||||
|
@ -5,11 +5,11 @@
|
||||
#!/bin/bash
|
||||
rm -r build
|
||||
mkdir build
|
||||
for D in *; do
|
||||
if [ -d "${D}" ] && [ "${D}" != "build" ]
|
||||
for D in $(ls ../); do
|
||||
if [ -d "../${D}" ]
|
||||
then
|
||||
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
|
||||
done
|
||||
|
||||
@ -20,8 +20,7 @@ do
|
||||
done
|
||||
|
||||
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
|
||||
|
||||
pdfunite ./build/*.pdf LinuxKernelInsides.pdf
|
||||
|
Loading…
Reference in New Issue
Block a user