【发布时间】:2017-06-14 14:11:24
【问题描述】:
我一直在写一个项目报告,并使用以下命令添加了一些伪代码:lstlisting in Latex,如下所示。
\begin{lstlisting}[language=c++]
# On leave focus of email field
IF email is blank
Error message: "Please enter an email address"
ELSE IF email field value is not a valid email address
Error message: "Wrong email please try again"}
# On leave focus of password
IF password is not sufficiently strong
Error message: "Password strength is not good"
\end{lstlisting}
上面的工作很好,但在代码块中出现了一些行号,我想了解这些。关于如何删除它们的任何提示? 我还知道以下几点:
\section*{New section}
会给出一个没有数字的章节标题。但在代码清单的情况下,它不起作用并产生错误。
【问题讨论】:
标签: latex