support creation of latex widgets from arbitrary objects that can write to text/html (e.g. SymPy objects)