Skip to content

Commit

Permalink
/xtras/splitting-thesis/pdfs
Browse files Browse the repository at this point in the history
  • Loading branch information
mxochicale committed Sep 2, 2019
1 parent d3c304e commit c13779a
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ LaTeX, Inkscape and other dependencies.
# LaTeX
https://github.com/mxochicale/latex/tree/master/installation


# Inkscape
https://github.com/mxochicale/tools/tree/master/inkscape


# Make
sudo apt-get install make

# pdftk
https://github.com/mxochicale/tools/tree/master/pdftk


Binary file added xtras/splitting-thesis/pdfs/abstract.pdf
Binary file not shown.
Binary file added xtras/splitting-thesis/pdfs/appendixes.pdf
Binary file not shown.
Binary file added xtras/splitting-thesis/pdfs/ch1.pdf
Binary file not shown.
Binary file added xtras/splitting-thesis/pdfs/ch2.pdf
Binary file not shown.
Binary file added xtras/splitting-thesis/pdfs/ch3.pdf
Binary file not shown.
Binary file added xtras/splitting-thesis/pdfs/ch4.pdf
Binary file not shown.
Binary file added xtras/splitting-thesis/pdfs/ch5.pdf
Binary file not shown.
Binary file added xtras/splitting-thesis/pdfs/ch6.pdf
Binary file not shown.
Binary file added xtras/splitting-thesis/pdfs/ch7.pdf
Binary file not shown.
Binary file added xtras/splitting-thesis/pdfs/references.pdf
Binary file not shown.
31 changes: 31 additions & 0 deletions xtras/splitting-thesis/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
splitting-thesis
---

Run the following shell script:

```
sh splitting.sh
```


```
.
├── [ 4096] pdfs
│   ├── [ 77168] abstract.pdf
│   ├── [ 22478399] appendixes.pdf
│   ├── [ 3269528] ch1.pdf
│   ├── [ 238601] ch2.pdf
│   ├── [ 10267593] ch3.pdf
│   ├── [ 14113372] ch4.pdf
│   ├── [ 40984014] ch5.pdf
│   ├── [ 27920169] ch6.pdf
│   ├── [ 205907] ch7.pdf
│   └── [ 146465] references.pdf
├── [ 662] readme.md
└── [ 1159] splitting.sh
1 directory, 12 files
```


42 changes: 31 additions & 11 deletions xtras/splitting-thesis/splitting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,49 @@
#


#################################
# NOTE: Running this shell takes
# a bit of time! (Not sure what is the reason)



# PhD Working Path
WP=$HOME/phd
WP=$HOME/phd/thesis
#echo "$WP"

# create tmp path
mkdir -p $HOME/phd/tmp



##abstract
#pdftk $WP/phd-thesis/thesis.pdf cat 3 output $WP/tmp/abstract.pdf

##chapter1
#pdftk $WP/phd-thesis/thesis.pdf cat 21-38 output $WP/tmp/ch1.pdf
###abstract
pdftk $WP/thesis.pdf cat 3 output $WP/xtras/splitting-thesis/pdfs/abstract.pdf

###chapter1
pdftk $WP/thesis.pdf cat 21-38 output $WP/xtras/splitting-thesis/pdfs/ch1.pdf

###chapter2
pdftk $WP/thesis.pdf cat 39-52 output $WP/xtras/splitting-thesis/pdfs/ch2.pdf

###chapter3
pdftk $WP/thesis.pdf cat 53-74 output $WP/xtras/splitting-thesis/pdfs/ch3.pdf

###chapter5
#pdftk $WP/phd-thesis/thesis.pdf cat 87-122 output $WP/tmp/ch5.pdf
###chapter4
pdftk $WP/thesis.pdf cat 75-86 output $WP/xtras/splitting-thesis/pdfs/ch4.pdf

##chapter5
pdftk $WP/thesis.pdf cat 87-122 output $WP/xtras/splitting-thesis/pdfs/ch5.pdf

##chapter6
#pdftk $WP/phd-thesis/thesis.pdf cat 123-148 output $WP/tmp/ch6.pdf
pdftk $WP/thesis.pdf cat 123-148 output $WP/xtras/splitting-thesis/pdfs/ch6.pdf

##chapter7
#pdftk ../../thesis.pdf cat 147-155 output ../../../tmp/ch7.pdf
pdftk $WP/thesis.pdf cat 149-158 output $WP/xtras/splitting-thesis/pdfs/ch7.pdf

##appendixes
pdftk $WP/thesis.pdf cat 159-252 output $WP/xtras/splitting-thesis/pdfs/appendixes.pdf

#references
pdftk $WP/thesis.pdf cat 253-266 output $WP/xtras/splitting-thesis/pdfs/references.pdf



0 comments on commit c13779a

Please sign in to comment.