modifying wp-latex to respond to our env