Run fabric, inside out, under cold water to flush out as much of the ketchup as possible. Apply liquid laundry detergent to stained area and let it soak in cold water for 30 minutes. Rinse with cold water and sponge the affected area with white vinegar. Finally, pretreat the stain and launder the item on the hottest water allowed by the fabric.