What's the reason for having the temporary ``latex_name`` variable rather than do:

```
if hasattr(unit, '_format'):
    s = unit._format.get('latex')
else:
    ...
```