Synthesis of indoles and carbazoles from the nitrobutadienic building-blocks deriving from the ring-opening of nitrothiophenes