You can write italic text in LaTeX by using the \textit{} command. The text which should be italic goes between the { and } symbol. See the example in Listing 1 in which "and parts of it" will be rendered italic.