Added custom functions to latex render