[Tex/LaTex] Escape “> and <"


I have the following piece of text which I want to output literally: <<"Welcome">>. However it's converted to those funky quotations. I've been trying all sorts of things with \ mostly but to no avail.

\verb=!<<"Welcome">>! kind of works, or gets the job done, but then it loses all other formatting (font face, size, etc.) as well.

Best Answer

A quick solution would be to use inline math mode: $<<$``Welcome''$>>$

edit: if you want to preserve formatting, have you considered \textgreater and \textless ?

Related Question