This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
set -o | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y \ | |
autojump \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Convert all arguments (assumed SVG) to a TIFF acceptable to PLOS | |
# Requires Inkscape and ImageMagick 6.8 (doesn't work with 6.6.9) | |
for i in $@; do | |
BN=$(basename $i .svg) | |
inkscape --without-gui --export-png="$BN.png" --export-dpi 300 $i | |
convert -compress LZW -alpha remove $BN.png $BN.tiff | |
mogrify -alpha off $BN.tiff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{amsart} | |
\usepackage[round]{natbib} | |
\usepackage{graphicx} | |
\usepackage[notref,notcite]{showkeys} | |
\usepackage{url} | |
% in case of supplementary material | |
% \usepackage{xr} | |
% \externaldocument{lcfit_supp} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from SCons.Script import VariantDir, Environment, \ | |
Builder, Depends, Flatten | |
import os | |
VariantDir('_build', src_dir='.') | |
env = Environment(ENV=os.environ) | |
inkscape = Builder(action = 'inkscape --without-gui --export-pdf=$TARGET $SOURCE') | |
env['BUILDERS']['Inkscape'] = inkscape | |
env['BUILDERS']['Latexdiff'] = Builder(action = 'latexdiff $SOURCES > $TARGET') |
NewerOlder