Added concat full lecture handout generator
This commit is contained in:
parent
37750c2395
commit
4cb6095c92
1
Lecture notes/.gitignore
vendored
Normal file
1
Lecture notes/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
handout.pdf
|
8
Lecture notes/build.py
Normal file
8
Lecture notes/build.py
Normal file
@ -0,0 +1,8 @@
|
||||
import os
|
||||
import pathlib
|
||||
from glob import glob
|
||||
import subprocess
|
||||
files = dict(sorted((int(file.name[4:-12]), file) for file in pathlib.Path('.').rglob('week*-handout.pdf')))
|
||||
fileList = map(lambda x: f'\"{str(x)}\"', files.values())
|
||||
command = f"pdftk {' '.join(fileList)} cat output handout.pdf"
|
||||
subprocess.run(command)
|
Loading…
Reference in New Issue
Block a user