ADD svg2png and update readme with semi-useful information
This commit is contained in:
parent
d42aa3db97
commit
c60993bad1
|
@ -9,6 +9,10 @@ thesis/*
|
||||||
abstract/*
|
abstract/*
|
||||||
!abstract/*.tex
|
!abstract/*.tex
|
||||||
|
|
||||||
|
!bin
|
||||||
|
bin/*
|
||||||
|
!bin/*
|
||||||
|
|
||||||
!figures
|
!figures
|
||||||
figures/*
|
figures/*
|
||||||
!figures/*.svg
|
!figures/*.svg
|
||||||
|
|
11
README.md
11
README.md
|
@ -1,2 +1,13 @@
|
||||||
# thesis
|
# thesis
|
||||||
epic thesis outlining my plans for total world domination...with puppies
|
epic thesis outlining my plans for total world domination...with puppies
|
||||||
|
|
||||||
|
## building
|
||||||
|
|
||||||
|
1. convert all the svg images to png images using `bin/svg2png`
|
||||||
|
2. build `thesis/thesis.tex` as you normally would
|
||||||
|
|
||||||
|
## dependencies
|
||||||
|
|
||||||
|
* most of the latex ecosystem (see packages in the preamble)
|
||||||
|
* inkscape to convert svg to png
|
||||||
|
* probably Linux
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Convert all arguments (assumed SVG) to a PNG
|
||||||
|
# Requires Inkscape
|
||||||
|
|
||||||
|
for i in $@; do
|
||||||
|
BN=$(basename $i .svg)
|
||||||
|
inkscape --export-area-drawing --export-type=png --export-filename="$BN.png" --export-dpi 300 $i
|
||||||
|
done
|
Loading…
Reference in New Issue