我有一些xml文本作为纯文本插入到文档中.我直接插入但它给出了奇怪的符号.我怎么能避免这种情况?
我要添加的XML:
\begin{tabular}{|c|}
<table>
<tr>
<td> Title and Logo</td>
</tr>
<tr>
<td> left Column </td>
<td> main table </td>
</tr>
</table>
\end{tabular}
Run Code Online (Sandbox Code Playgroud)
输出如下:
¡table¿ ¡tr¿ ¡td¿ Title and Logo¡/td¿ ¡/tr¿ ¡tr¿ ¡td¿ left Column ¡/td¿ ¡td¿ main table ¡/td¿ ¡/tr¿ ¡/table
Run Code Online (Sandbox Code Playgroud)
基本上我想在表格中添加HTML代码.我怎样才能做到这一点?
Wil*_*den 38
你试过这个verbatim环境吗?
\begin{verbatim}
Your text here.
\end{verbatim}
Run Code Online (Sandbox Code Playgroud)
如果不知道你的"怪异符号"是什么,很难为你的问题提出解决方案.
更新:为了嵌入一个verbatim表格单元格的环境中,您需要更改列到款柱(使用p,m或b作为列说明); 例如
\begin{tabular}{|p{10cm}|}
\begin{verbatim}
Your text here.
\end{verbatim}
\end{tabular}
Run Code Online (Sandbox Code Playgroud)
有关更多信息,请参阅Wikibooks.
| 归档时间: |
|
| 查看次数: |
72274 次 |
| 最近记录: |