Seven out of eight public sector banks that released quarterly results so far held on to or improved margins from the previous three months, helping them maintain profitability despite a challenging macro environment.