你好,我生成了我的乳胶代码,但是在 Mitex 中运行时抛出了这个错误
! Missing $ inserted.
<inserted text>
$
<to be read again>
_
l.1 {"rows_
views":[[{"style":{"borders":"","font_style":{},"text_color":"","...
?
我的代码:
\begin{table}[]
\begin{tabular}{|l|l|l|l|l|}
\hline
Sr.No. & Paper Title & Article Type & Publishing Year & Published By \\ \hline
1 & A Review of Medical Image Watermarking Requirements for Teleradiology & Information Systems & 2013 & Hussain Nyeem \\ \hline
2 & Russia’s Cyber and Information Warfare & Information Systems & 9, November 2016 & Valeriy Akimenko and Keir Giles \\ \hline
\end{tabular}
\end{table}
当我在 mitex 中运行时出现错误:
这是 pdfTeX,版本 3.14159265-2.6-1.40.21(MiKTeX 2.9.7400 64 位)进入扩展模式
(C:/Users/salman/Desktop/ttt.tgn
! Undefined control sequence.
l.1 \begin
{table}[]
?
答案1
您没有给出很多有关文档意图的线索,但是为了将代码块显示为源代码(而不是解释为乳胶标记),您可以使用verbatim
如下方法:
\documentclass[a4paper]{article}
\begin{document}
\begin{verbatim}
{"rows_ views":
[[{"style":{"borders":"","font_style":{},"text_color":"","
\end{verbatim}
\end{document}
带有表格的更新示例类似,但您需要格式化列以使其适合:
\documentclass[a4paper]{article}
\usepackage{array}
\begin{document}
\begin{verbatim}
{"rows_ views":
[[{"style":{"borders":"","font_style":{},"text_color":"","
\end{verbatim}
\begin{table}
\setlength\tabcolsep{4pt}
\begin{tabular}{
@{}
|l||
>{\raggedright\arraybackslash}p{2.5cm}|
>{\raggedright\arraybackslash}p{2cm}|
l|>{\raggedright\arraybackslash}p{2.1cm}|
@{}
}
\hline
Sr.No. & Paper Title & Article Type & Publishing Year & Published By \\ \hline
1 & A Review of Medical Image Watermarking Requirements for Teleradiology & Information Systems & 2013 & Hussain Nyeem \\ \hline
2 & Russia’s Cyber and Information Warfare & Information Systems & 9, November 2016 & Valeriy Akimenko and Keir Giles \\ \hline
\end{tabular}
\end{table}
\end{document}