[texworks] .jpg image won't load in the PDF output

Lee McManus leemmcmanus90 at outlook.com
Sun Sep 24 21:46:01 CEST 2017


Hi,

I am having trouble getting an image to show in the PDF output I am using (pdfLaTeX to compile it(if compile is the right word I am reasonably new). The following is in the preamble of my .tex file


\documentclass{article}

\usepackage{amsmath}

\usepackage{amssymb}

\usepackage{graphicx}

\author{Lee McManus}

\date{24 Sep 2017}

\title{MST124 Exercise Booklet 1}

\parindent 0pt

\parskip 4pt

\begin{document}
\maketitle

The following is the code used to generate the image. The file is stored in the same folder as the .tex file and has that exact file name within the folder.


\includegraphics{ou-logo.jpg}
\end{document}


The following is what it says in the .log file:

{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]
<ou-logo.jpg, id=13, 90.59196pt x 108.91394pt>
File: ou-logo.jpg Graphic file (type jpg)
<use ou-logo.jpg>
Package pdftex.def Info: ou-logo.jpg used on input line 69.
(pdftex.def)             Requested size: 90.59172pt x 108.91367pt.
[2 <./ou-logo.jpg>] ("MST124 exercise booklet 1.aux") )
Here is how much of TeX's memory you used:
2394 strings out of 493323
31337 string characters out of 3139072
93775 words of memory out of 3000000
5906 multiletter control sequences out of 15000+200000
11196 words of font info for 44 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
39i,8n,26p,261b,197s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Program Files/MiKTe
X 2.9/fonts/type1/public/amsfonts/cm/cmbx10.pfb><C:/Program Files/MiKTeX 2.9/fo
nts/type1/public/amsfonts/cm/cmbx12.pfb><C:/Program Files/MiKTeX 2.9/fonts/type
1/public/amsfonts/cm/cmex10.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public
/amsfonts/cm/cmmi10.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfont
s/cm/cmr10.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr1
2.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr17.pfb><C:
/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr7.pfb><C:/Program F
iles/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
Output written on "MST124 exercise booklet 1.pdf" (2 pages, 97004 bytes).
PDF statistics:
46 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
6 words of extra memory for PDF output out of 10000 (max. 10000000)

If I write the following:

\fbox{\includegraphics{ou-logo.jpg}}

Into my code and process it, it shows where the image should be but it’s just an empty box. I have tried a second image which is in the same folder but it also doesn’t show up.

As an extra because I will need this as I will be using LaTeX a lot. How do you get something like:


  1.  Equation on same line and centred?

Currently I using this:


\section{Numbers}

\textbf{Exercise 1}

\begin{enumerate}

\item[(a)] \[2 + 4 \times 3 - \left( 10 - 3^2 \right) + 1 \]



Using the rules of BIDMAS

\begin{align*}

&= 2 + 4 \times 3 - \left(10 - 9\right) + 1\\

&= 2 + 4 \times 3 - 1 + 1\\

&= 2 + 12\\

&= 14
\end{align*}


\end{enumerate

But in the pdf output it looks like this:

(a)
                        Equation on the following line and centred.

Just to be clear I would like the equation to be on the same line and centre-aligned with (a) on the same line before it left-aligned.


I will attach the pdf output I get from my code.

If you need anything else I am happy to give it to you.

Regards,

Lee McManus


----- configuration info -----
TeXworks version : 0.6.2r.7ecce17 (MiKTeX 2.9.6350 64-bit)
Install location : C:/Program Files/MiKTeX 2.9/miktex/bin/x64/miktex-texworks.exe
Library path     : C:/Users/lee/AppData/Local/MiKTeX/2.9/TeXworks/0.6\
pdfTeX location  : C:/Program Files/MiKTeX 2.9/miktex/bin/x64/pdftex.exe
Operating system : Windows 10 Home, 64-bit, build 15063
Qt version       : 5.6.0 (build) / 5.8.0 (runtime)
------------------------------
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texworks/attachments/20170924/f77c1db8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MST124 exercise booklet 1.pdf
Type: application/pdf
Size: 97075 bytes
Desc: MST124 exercise booklet 1.pdf
URL: <http://tug.org/pipermail/texworks/attachments/20170924/f77c1db8/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ou-logo.jpg
Type: image/jpeg
Size: 2986 bytes
Desc: ou-logo.jpg
URL: <http://tug.org/pipermail/texworks/attachments/20170924/f77c1db8/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MST124 exercise booklet 1.tex
Type: application/x-tex
Size: 1402 bytes
Desc: MST124 exercise booklet 1.tex
URL: <http://tug.org/pipermail/texworks/attachments/20170924/f77c1db8/attachment-0001.tex>


More information about the texworks mailing list