Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert plain text?

Tags:

latex

tex

I have some xml text to be inserted in the document as plain text. I directly inserted but it gives weird symbols. How can I avoid that?

XML I want to add:

\begin{tabular}{|c|}

<table>
<tr>
<td> Title and Logo</td>
</tr>
<tr>
<td> left Column </td>
<td> main table </td>
</tr>
</table>


\end{tabular}

And the output is like :

¡table¿ ¡tr¿ ¡td¿ Title and Logo¡/td¿ ¡/tr¿ ¡tr¿ ¡td¿ left Column ¡/td¿ ¡td¿ main table ¡/td¿ ¡/tr¿ ¡/table

Basically I want to add the HTML code in a tabular. How can I do that?

like image 427
SwiftMango Avatar asked Jan 07 '13 20:01

SwiftMango


People also ask

How do I type in plain text?

On WindowsPress + S (on your keyboard). Type Notepad. Press Enter .

How do I insert plain text in Word?

Save as a text file and then copy and paste For most programs, to save a file as plain text: From the File menu, select Save As..., and specify ASCII or Text as the file format. For example, in WordPerfect, in the Save dialog box, select Text Export; in Microsoft Word, select Text only.

How do I paste in plain text in Chrome?

In the Chrome browser you can paste as plain text using Ctrl-Shift-V.

How do I make Windows plain text?

Microsoft provides a way of creating a new, blank text file using the right-click menu in File Explorer. Open File Explorer and navigate to the folder where you want to create the text file. Right-click in the folder and go to New > Text Document. The text file is given a default name, New Text Document.


1 Answers

Have you tried the verbatim environment?

\begin{verbatim}
  Your text here.
\end{verbatim}

Without knowing what your "weird symbols" are, it's difficult to suggest a solution to your problem.


Update: In order to embed a verbatim environment in a table cell, you need to change the column to a paragraph column (using either p, m, or b as the column specifier); e.g.

\begin{tabular}{|p{10cm}|}
  \begin{verbatim}
    Your text here.
  \end{verbatim}
\end{tabular}

See Wikibooks for more information.

like image 199
Will Vousden Avatar answered Oct 22 '22 05:10

Will Vousden