Bangladesh, seeking a first win over New Zealand, ended the penultimate day on Sunday with a 122-run lead on 66 for three but possibly only six wickets in hand after opener Imrul Kayes retired hurt.
Although a draw remains the most likely outcome, both sides have the chance to force the issue should Bangladesh offer a sporting final-day declaration on a pitch still full of runs.
A short-pitched barrage by the Bangladesh quicks and poor shot selection against part-time Mahmudullah stopped the New Zealand first innings at 539.
Tamim Iqbal made 25 and Imrul was stretchered off after injuring his left hip when diving for a single having made 24.
Also Read
After New Zealand resumed the fourth day at 292 for three, opener Latham batted on to 177 to ensure the follow-on mark was comfortably passed.
BJ Watling (49) and Mitchell Santner (73) reduced the deficit to less than 100, with Santner and Trent Boult (4 not out) frustrating Bangladesh with a 35-run partnership for the final wicket.
- Bouncer barrage -
===================
Bangladesh tried to rattle the New Zealand tail with short balls. Santner took one fierce blow to the head from Taskin Ahmed and Neil Wagner was hit three times by Kamrul Islam drawing blood from his chin.
Wagner, New Zealand's short-ball specialist, passed a concussion test and replaced his helmet after the third blow only to be dismissed two balls later for 18.
Despite the pace barrage it was part-time spinner Mahmudullah who broke through the Watling-Santner partnership.
Mahmudullah's first ball was short-pitched and well off-line which Watling went to smack to the boundary only to scoop it into the hands of wicketkeeper Imrul down the leg side.
With his fifth ball, Mahmudullah had Tim Southee trapped in front for one.
Wagner was caught behind trying to hook his way out of Kamrul's bouncer onslaught to give Imrul his fifth catch, a Test record for a substitute wicketkeeper.
Last man out Santer was the fourth New Zealander and ninth player in the match to pass 50.
But he could not escape the umpire's finger when trapped in front for 177 by Shakib Al Hasan.
Disclaimer: No Business Standard Journalist was involved in creation of this content