我的图形文件没有显示在 PDF 上,后续文本也没有显示,这是为什么?

我的图形文件没有显示在 PDF 上,后续文本也没有显示,这是为什么?

我一直在尝试通过 LaTeX 展示我的作品,我基本上是个初学者。到目前为止,我使用了以下代码:

\documentclass[a4paper]{article}
\usepackage{graphicx}
\usepackage{float}


\title{ECM2709 Continuous Assessment}
\author{H. Millard}
\date{October 12, 2015}


\begin{document}
\maketitle

\section{Question 1}
\subsection{1(a)}

The simplest way to compare the distributions of the forecast and recorded data is to plot a histogram of each variable against each other and visually compare the two (see Figure 1).

\begin{figure}[H] \centering
    \includegraphics[scale=1]{hist1}
     \caption{A histogram of the forecast and the observed wind speeds across all years}
\end{figure}

Purely from visual observation we can make certain assumptions. Firstly, an obvious similarity is the spread of data. For both sets, the minimum value is between 0 and 1 and the maximum falls between 17 and 19.

\end{document}

hist1 文件是一个 .PNG 文件,与 .tex 文件保存在同一个文件夹中。我使用 TeXMaker 上的 PDFLaTeX 选项编译代码。

没有抛出任何 LaTeX 错误,尽管我确实收到了第 1 行的“未给出作者”警告,这很奇怪,因为显然有一个作者。

PDF 文件包含标题(不含作者)和第一段文本,但没有图像或标题,也没有图形后的第二个文本段。

LOG FILE :
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9) (preloaded format=pdflatex 2015.7.21) 2 NOV 2015 16:14
entering extended mode
**CW.tex
(U:\ecm2709\coursework\CW.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans,      ancientgreek, arabic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files (x86)\MiKTeX\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(U:\ecm2709\coursework\CW.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line 7.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 7.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line 7.
LaTeX Warning: No \author given.
[1
{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]
(U:\ecm2709\coursework\CW.aux) )
Here is how much of TeX's memory you used:
230 strings out of 493921
2498 string characters out of 3146456
50031 words of memory out of 3000000
3599 multiletter control sequences out of 15000+200000
7587 words of font info for 27 fonts, out of 3000000 for 9000
841 hyphenation exceptions out of 8191
23i,6n,17p,175b,193s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Program Files (x86)/MiKTeX/fonts/type1/publ
ic/amsfonts/cm/cmbx12.pfb><C:/Program Files (x86)/MiKTeX/fonts/type1/public/ams
fonts/cm/cmr10.pfb><C:/Program Files (x86)/MiKTeX/fonts/type1/public/amsfonts/c
m/cmr12.pfb><C:/Program Files (x86)/MiKTeX/fonts/type1/public/amsfonts/cm/cmr17
.pfb>
Output written on CW.pdf (1 page, 46843 bytes).
PDF statistics:
22 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)

如果您需要任何特定的图像或代码,请询问并建议如何呈现它们,我是新手。

相关内容