add index to latex compile