[N+:1]([C:4]1[CH:5]=[C:6]([C:10]([O:12][CH3:13])=[O:11])[S:7][C:8]=1[CH3:9])([O-:3])=[O:2].CO[CH:16](OC)[N:17]([CH3:19])[CH3:18]>>[CH3:16][N:17]([CH3:19])/[CH:18]=[CH:9]/[C:8]1[S:7][C:6]([C:10]([O:12][CH3:13])=[O:11])=[CH:5][C:4]=1[N+:1]([O-:3])=[O:2]A solution of methyl 4-nitro-5-methylthiophene-2-carboxylate (23 g, 114 mmol) in N,N-dimethylformamide dimethyl acetal (115 ml) was stirred at 110° C. for 1 hr. The reaction mixture was cooled to room temperature, concentrated under reduced pressure to about half amount, and poured into water (500 ml). The precipitated solid was collected by filtration, washed with water (500 ml×2), and dried under reduced pressure to give methyl (E)-5-(2-dimethylaminovinyl)-4-nitrothiophene-2-carboxylate (28 g, yield 96%).