mirror of
https://github.com/0xAX/linux-insides.git
synced 2025-05-06 14:39:02 +00:00
Merge branch 'ranguli-master'
This commit is contained in:
commit
a36078f2ea
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*.tex
|
||||||
|
build
|
BIN
LinuxKernelInsides.pdf
Normal file
BIN
LinuxKernelInsides.pdf
Normal file
Binary file not shown.
27
latex.sh
Executable file
27
latex.sh
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
# latex.sh
|
||||||
|
# A script for converting Markdown files in each of the subdirectories into a unified PDF typeset in LaTeX.
|
||||||
|
# Requires TexLive, Pandoc templates and pdfunite. Not necessary if you just want to read the PDF, only if you're compiling it yourself.
|
||||||
|
|
||||||
|
#!/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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user