trying shareLaTex compiling function