tex2lyx: backport new features from master

- support for bibtopic, \nameref and 2 math fonts