While managing troops you can set any of your troops or companions to specific formations, i.e. 1: Infantry, 2: Ranged, 3: Cavalry etc.
My companions need custom formation settings because none are frontline infantry, and I also like setting some or all my archers as Skirmishers while keeping my...