Transverse heat transport in polyatomic gases under influence of a magnetic field