ADD svg2png and update readme with semi-useful information

This commit is contained in:
Nathan Dwarshuis 2021-09-21 12:35:17 -04:00
parent d42aa3db97
commit c60993bad1
3 changed files with 25 additions and 1 deletions

6
.gitignore vendored
View File

@ -9,6 +9,10 @@ thesis/*
abstract/*
!abstract/*.tex
!bin
bin/*
!bin/*
!figures
figures/*
!figures/*.svg
@ -19,4 +23,4 @@ tables/*
!tables/*.tex
!code
!code/*
!code/*

View File

@ -1,2 +1,13 @@
# thesis
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

9
bin/svg2png Executable file
View File

@ -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