未定义的控制序列问题

未定义的控制序列问题

我有以下代码:

\title{Improvement of the Cascadic Multigrid Algorithm with a Gauss Seidel 
Smoother to Efficiently Compute the Fiedler Vector of a Graph Laplacian}
\author{Shivam Gandhi \href{email: [email protected]}
   \and \href{Tufts University Department of Mathematics}}
\date{November 2015}

但是,它返回以下错误:

Undefined control sequence.
\@author ->Shivam Gandhi \href 
                               {email: [email protected]} \and \href ...
l.19 \maketitle

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

我正在使用 ShareLaTeX 撰写论文,所以可能是编译器的问题。有什么办法可以解决这个问题吗?

谢谢。

答案1

你可能想要这样的东西

\documentclass[a4paper]{article}
\usepackage{hyperref}
\begin{document}
\title{Improvement of the Cascadic Multigrid Algorithm with a Gauss Seidel 
Smoother to Efficiently Compute the Fiedler Vector of a Graph Laplacian}
\author{Shivam Gandhi
  \href{mailto:[email protected]}{[email protected]}
  \and \href{http://math.tufts.edu/}{Tufts University Department of Mathematics}}
\date{November 2015}
\maketitle
\end{document}

相关内容