package Ġnl . h ann ah sten . tex ify idea . templates . macros Ċ Ċ import Ġcom . intellij . code Insight . template .* Ċ import Ġcom . intellij . code Insight . template . macro . Macro Base Ċ import Ġnl . h ann ah sten . tex ify idea . templates . Lat ex Context Ċ import Ġnl . h ann ah sten . tex ify idea . util . format As Label Ċ Ċ class ĠLat ex Format As Label Macro Ġ: ĠMacro Base (" latex Format As Label ", Ġ" latex Format As Label ( String )") Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġcalculate Result ( params : ĠArray < out ĠExpression >, Ġcontext : ĠExpression Context ?, Ġquick : ĠBoolean ): ĠResult ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtext Ġ= ĠgetText Result ( params , Ġcontext , Ġtrue ) Ġ?: Ġreturn Ġnull ĊĠĠĠĠĠĠĠ Ġreturn ĠText Result ( text . format As Label ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġis Accept able In Context ( context : ĠTemplate Context Type ?) Ġ= Ġcontext Ġis ĠLat ex Context Ċ }