by reacting carboxylic acids or symmetrical anhydrides with ester groups or with a carbon-halogen bond