Skip to content

Instantly share code, notes, and snippets.

View hasantahir's full-sized avatar

Hasan Tahir Abbas hasantahir

  • University of Glasgow
  • Glasgow, UK
  • 07:29 (UTC -12:00)
View GitHub Profile
@hasantahir
hasantahir / tikz2png.sh
Created March 28, 2017 17:13 — forked from gangeli/tikz2png.sh
A script to convert Tikz images to PNG format
#!/bin/bash
#
# A quick and dirty bash script to convert a tikz image to a png.
# The necessary tweaks to the script to get it to work for your
# use case are as follows:
#
# 1. Change FIGURE_DEFINITIONS to point to your own figures.
# This file should contain a series of \newcommand definitions,
# one per figure.
#
@hasantahir
hasantahir / latex-clean.sh
Created June 22, 2017 15:44 — forked from djsutherland/latex-clean.sh
A bash script to clean latex temp files
#!/bin/bash
exts=".aux .lof .log .lot .fls .out .toc .dvi .bbl .bcf .blg -blx.aux -blx.bib -blx.bib .run.xml .fdb_latexmk .synctex.gz .syntex.gz(busy) .pdfsync .algorithms .alg .loa .thm .nav .snm .vrb .acn .acr .glg .glo .gls .brf .lol .idx .ilg .ind .ist .maf .mtc .mtc0 .pyg .nlo .tdo .xdy .keys"
for x in "${@:-.}"; do
arg=$(echo ${x:-.} | perl -pe 's/\.(tex|pdf)$//')
if [[ -d "$arg" ]]; then
for ext in $exts; do
rm -f "$arg"/*$ext