A non-local thermodynamical equilibrium line formation for neutral and singly ionized titanium in model atmospheres of reference A–K stars