tmap_format function

Get or add format options