以下 LaTeX 代码没有输出

以下 LaTeX 代码没有输出
\documentclass[12pt]{article}
\usepackage{amsfonts}
\usepackage{amsbsy}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{pst-all}
\usepackage{pstricks}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{wrapfig}
\newtheorem{Theorem}{Theorem}[section]
%\newtheorem{Theorem}{Abstract}[abstract]
\newtheorem{deftn}{Defination}[section]
\newtheorem{lem}{Lemma}[section]
%\begin{document}
\title{article on Ramanujan}
\author{Hirak Jyoti Das \thanks {This author thanks CSIR for providing fellowship.\\ email: [email protected]}\\
 Department of Mathematical Sciences, Tezpur University, Assam.}\\
\date{\today}
\begin{document}
\maketitle
\begin{abstract}
In this article we will briefly discuss about the life of great mathematician Srinivasa Ramanujan. During his short lifetime, Ramanujan independently compiled nearly $3900$ results. Most of his claims have now been proven correct. He stated results that were both original and highly unconventional, such as Ramanujan prime and the Ramanujan theta function and these have inspired a vast amount of further research.Without any formal training in pure mathematics, he made extraordinary contributions to the mathematical analysis, number theory, infinite series etc. Living in India with no access to the larger mathematical community, Ramanujan developed his own mathematical research in isolation.
\end{abstract}
\end{document}

答案1

\\如果我运行你的文档,我会收到关于之前的错误\date

! LaTeX Error: There's no line here to end.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.19 \date
        {\today}
? 

对于较旧的版本,\\无法在内部显示(未受保护)\thanks(感谢 campa 发现此问题)。添加前缀也修复了此问题\protect\\

\documentclass[12pt]{article}
\usepackage{amsfonts}
\usepackage{amsbsy}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{pst-all}
\usepackage{pstricks}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{wrapfig}
\newtheorem{Theorem}{Theorem}[section]
%\newtheorem{Theorem}{Abstract}[abstract]
\newtheorem{deftn}{Defination}[section]
\newtheorem{lem}{Lemma}[section]
%\begin{document}
\title{article on Ramanujan}
\author{Hirak Jyoti Das \thanks {This author thanks CSIR for providing fellowship.\protect\\ email: [email protected]}\\
 Department of Mathematical Sciences, Tezpur University, Assam.} % \\ <-- removed
\date{\today}
\begin{document}
\maketitle
\begin{abstract}
In this article we will briefly discuss about the life of great mathematician Srinivasa Ramanujan. During his short lifetime, Ramanujan independently compiled nearly $3900$ results. Most of his claims have now been proven correct. He stated results that were both original and highly unconventional, such as Ramanujan prime and the Ramanujan theta function and these have inspired a vast amount of further research.Without any formal training in pure mathematics, he made extraordinary contributions to the mathematical analysis, number theory, infinite series etc. Living in India with no access to the larger mathematical community, Ramanujan developed his own mathematical research in isolation.
\end{abstract}
\end{document}

答案2

可以尝试这个:

\documentclass[12pt]{article}
\usepackage[left=1.5cm,right=1.0cm,top=1.5cm,bottom=1.5cm,bindingoffset=0cm]{geometry}
\usepackage{amsfonts}
\usepackage{amsbsy}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{pst-all}
\usepackage{pstricks}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{wrapfig}
\newtheorem{Theorem}{Theorem}[section]
%\newtheorem{Theorem}{Abstract}[abstract]
\newtheorem{deftn}{Defination}[section]
\newtheorem{lem}{Lemma}[section]
%\begin{document}
\title{article on Ramanujan}
\author{Hirak Jyoti Das \thanks {This author thanks CSIR for providing fellowship. email: [email protected]}
 Department of Mathematical Sciences, Tezpur University, Assam.}
\date{\today}
\title{title}

\begin{document}
\maketitle
\begin{abstract}
    In this article we will briefly discuss about the life of great mathematician Srinivasa Ramanujan. During his short lifetime, Ramanujan independently compiled nearly $3900$ results. Most of his claims have now been proven correct. He stated results that were both original and highly unconventional, such as Ramanujan prime and the Ramanujan theta function and these have inspired a vast amount of further research.Without any formal training in pure mathematics, he made extraordinary contributions to the mathematical analysis, number theory, infinite series etc. Living in India with no access to the larger mathematical community, Ramanujan developed his own mathematical research in isolation.
\end{abstract}
\end{document}

相关内容