# Displaying HTML, Asian fonts, fonttype and tabs

How do I get LaTeX to just print the following lines as plain text? The angled brackets are messed up when I compile the .tex file into .ps

the main texts are bounded by <p>...</p> within the <div class = paragraph section> ...</div> attributes

How do I change fonts for a single line in LaTeX? E.g. I want the 2nd line to be in Courier New font but the 1st line to be in the normal default font.

Httrack  was used for data collection.

How do I enable Vietnamese and Chinese fonts in LaTeX? I want to display the following lines in LaTeX:

‘quốc tế’ mean international, but seperating them by whitespaces could have caused a mis-tokenization

How do I get a tab in a line in LaTeX? E.g.

this    is  a   tabulated   line
-
Welcome to TeX.sx! Your question was migrated here from another stackexchange site. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. –  Tobi Dec 12 '11 at 20:31
Please edit your post to and reduce it to one single question. You may post the others as new questions. All your problems can be solved but it’s better to have them in separated questions. –  Tobi Dec 12 '11 at 20:31

## migrated from stackoverflow.comDec 12 '11 at 18:49

This question came from our site for professional and enthusiast programmers.

## Listings

\documentclass{article}

\usepackage{listings}
\lstset{%
basicstyle=\ttfamily,
language=HTML,
}
\lstMakeShortInline|

\begin{document}
Normal Text |<p>| normal text
\begin{lstlisting}
<html>
<title>Hello HTML</title>
<body>
<p>Hello World!</p>
</body>
</html>
\end{lstlisting}
\end{document}

## Vietnamese/Chinese

I guess XeLaTeX or LuaTeX can help. Both are able to process Unicode. All you need is a font containing the vietnamese/chinese characters.

## Tabs

\documentclass{article}

\begin{document}
\begin{tabbing}
Text \= Text \= Text\kill
a \> b \> c \\
ddd\> ee \> f \\
\end{tabbing}
\end{document}

See your preferred LaTeX book/manual for mor information

-
Tobi, I realized that when i use {tabbing}, it leaves a large space before it begins the next line. Anyway to resolve that? –  2er0 Dec 12 '11 at 20:57
@2er0: See “Removing vertical space before and after tabbing environment” … –  Tobi Dec 13 '11 at 11:54

I believe you can also use the verbatim environment and the fancyvrb package.

\begin{verbatim}[options]
\end{verbatim}

and "your text" will be typeset exactly as you have typed it in your .tex file and the options can be used to declare fonts. some of the options are fontseries, fontshape, fontsize, etc...

Check the package info for fancyvrb for all of the available options.