#!/bin/bash file_name="${1##*/}" file="${file_name%.*}" pandoc "$1" --variable "geometry=margin=1in" -o "/tmp/$file.pdf" && zathura "/tmp/$file.pdf"