我有以下程式碼:
\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}