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
ENGINE = latexmk -pdf -silent -view=none | |
SOURCES = cover_letter paper paper_supp | |
MERGEFILE = paper_wCoverLetterSupp_$(shell date "+%Y%m%d").pdf | |
TEMPS = aux blg fdb_latexmk log out synctex.gz | |
MERGECMD= | |
ifneq ($(MERGEFILE),) | |
MERGECMD=gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$(MERGEFILE) $(SOURCES:=.pdf) | |
endif |
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
#!/usr/bin/python | |
import sys, os, time | |
import tty | |
from select import select | |
class TerminalFile: | |
"""Adapted from http://code.activestate.com/recipes/203830/""" | |
def __init__(self,infile): | |
if not infile.isatty(): |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
MONitor & EXecute | |
Yong-Yeol Ahn (http://yongyeol.com/) | |
This script monitors multiple files and executes the given command when | |
any of those files is changed. |
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
MacVim + latexmk + Skim workflow: | |
MacVim http://code.google.com/p/macvim/ | |
Latexmk http://www.phys.psu.edu/~collins/software/latexmk-jcc/ | |
Skim.app http://skim-app.sourceforge.net/ | |
Open the texfile in macvim: | |
$ mvim <file>.tex | |
Watch tex file with latexmk (see also ~/.dotfiles/latexmkrc): | |
$ latexmk -pdf -pvc <file>.tex |
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/bash | |
echo -e "\033[0mCOLOR_NC (No color)" | |
echo -e "\033[1;37mCOLOR_WHITE\t\033[0;30mCOLOR_BLACK" | |
echo -e "\033[0;34mCOLOR_BLUE\t\033[1;34mCOLOR_LIGHT_BLUE" | |
echo -e "\033[0;32mCOLOR_GREEN\t\033[1;32mCOLOR_LIGHT_GREEN" | |
echo -e "\033[0;36mCOLOR_CYAN\t\033[1;36mCOLOR_LIGHT_CYAN" | |
echo -e "\033[0;31mCOLOR_RED\t\033[1;31mCOLOR_LIGHT_RED" | |
echo -e "\033[0;35mCOLOR_PURPLE\t\033[1;35mCOLOR_LIGHT_PURPLE" | |
echo -e "\033[0;33mCOLOR_YELLOW\t\033[1;33mCOLOR_LIGHT_YELLOW" | |
echo -e "\033[1;30mCOLOR_GRAY\t\033[0;37mCOLOR_LIGHT_GRAY" |
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
#!/usr/bin/env bash | |
# these can also be commandline args... | |
OLD_TEX=paper_orig.tex # previous draft, submission, etc. | |
NEW_TEX=paper.tex # current working version | |
if [[ "$1" = 'clean' ]]; then | |
rm -f diff* | |
else | |
latexdiff $OLD_TEX $NEW_TEX > diff.tex |
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
set palette defined (0 0.0 0.0 0.5, \ | |
1 0.0 0.0 1.0, \ | |
2 0.0 0.5 1.0, \ | |
3 0.0 1.0 1.0, \ | |
4 0.5 1.0 0.5, \ | |
5 1.0 1.0 0.0, \ | |
6 1.0 0.5 0.0, \ | |
7 1.0 0.0 0.0, \ | |
8 0.5 0.0 0.0 ) |
NewerOlder