To fix the one-line-text problem, enclose the relevant text in [ ] to make it a single character vector:
txt = {'Primary energy factors:',['Biomass =' num2str(Basisdaten.Primaerenergiefaktor.Biomasse.today)], ... ['Electricity =' num2str(Basisdaten.Primaerenergiefaktor.Strom.today)]};