The only way to 'merge' two separate files would be cancel one and book the segments of the cancelled file onto the other file.
Since that likely isn't a possibility, when you check in KTM you'll need to ask TG if they can through-check you onto the AC flights. Because they are separate tickets with separate fare basis codes, they are not technically obligated to do so.