1. A method of writing a pattern by electronic radiation, comprising the steps of: S 1 ) providing a pattern to be formed on a substrate to a calculator; S 2 ) forming a work pattern from the pattern to be formed, the work pattern comprising a single external envelope; S 3 ) breaking down the work pattern into a set of elementary outlines comprising a plurality of elementary outlines each having a single external envelope, and defining a set of irradiation conditions for each elementary outline; and S 4 ) comparing the pattern to be formed with a simulation pattern representing the sets of irradiation conditions for the elementary outlines to discriminate a simulation pattern representative of the pattern to be formed from a simulation pattern which is not representative of the pattern to be formed; wherein, if the simulation pattern is not representative of the pattern to be formed, the method comprises the steps of: S 7 ) determining at least one shift vector between at least a portion of the external envelope of the pattern to be formed and a corresponding portion of the external envelope of the simulation pattern; S 8 ) displacing at least a portion of the external envelope of the work pattern or of the pattern to be formed according to a displacement vector determined at least from the corresponding shift vector to form a new work pattern; and carrying out at least a new iteration of steps S 3 ) and S 4 ) before writing the pattern on the substrate using at least a final iteration of the work pattern, the method further comprising: S 9 ) writing the pattern using at least the final iteration of the work pattern.