关于参考书目的 latex 错误

关于参考书目的 latex 错误
\documentclass[10pt]{article}
\author{soham}
\begin{document}
\title{Fist Document}
\maketitle
This is my first document & I like editing in LaTeX \cite{abc}.
\begin{enumerate}
\itemHello
\end{enumerate}
\begin{figure}
\includegraphics[scale=1]{fig1a.png}
\end{figure}
\begin{thebibliography}{9}
\bibitem {ab}
Holland, J.H., Adaptation in Natural and Artificial Systems. University of Michigan Press, 1975.
\end{thebibliography}
\end{document}

答案1

您的代码中有几个错误。我<==========在以下 MWE 中更正了它们(用 标记了重要更改)。要使用命令,\includegraphics您必须加载/调用包graphicx。我还更正了一些 typhos。

以下 MWE

\documentclass[10pt]{article}

\usepackage{graphicx} % <===============================================

\author{soham}


\begin{document}

\title{First Document}
\maketitle
This is my first document \& I like editing in LaTeX \cite{ab}. % <=====
\begin{enumerate}
\item Hello % <=========================================================
\end{enumerate}
\begin{figure}
\includegraphics[scale=0.5]{example-image} % <==========================
\end{figure}
\begin{thebibliography}{9}
\bibitem {ab}
Holland, J.H., Adaptation in Natural and Artificial Systems. University of Michigan Press, 1975.
\end{thebibliography}
\end{document}

编译无误

生成的 pdf

相关内容