move minted codes to ltx file