Discussion:
[texworks] Adding an image in Texworks
Nicolas Peter Lane
2015-01-16 18:43:51 UTC
Permalink
Hello everyone, I've recently started learning LaTex and I'm having
troubles in adding an image to the document.

I've so far done this:
------------------------------------------------------------

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
%Necessary for working with images

\title{Using Images}
\author{Nicolas Peter Lane}
\date{01 16 2015}

\begin{document}

\maketitle

\section{Introduction}
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa

Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
\includegraphics{dog}
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb

Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
\end{document}
----------------------------------------------------------------------


I've watched a tutorial showing how to do this LaTex, but I can't find
the proper way within Texworks to add the image itself for then calling
it's name just as in the tutorial.

So, is there a way to add an image to the laTex? How?
Thanks for your time.


----- configuration info -----
TeXworks version : 0.4.5r1280 (MiKTeX 2.9)
Install location : C:/Program Files (x86)/MiKTeX
2.9/miktex/bin/miktex-texworks.exe
Library path : C:/Users/NICOLAS
PC/AppData/Local/MiKTeX/2.9/TeXworks/0.4\
pdfTeX location : C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/pdftex.exe
Operating system : Windows Microsoft Windows 8 Business Edition, 64-bit
(build 9200)
Qt4 version : 4.8.4 (build) / 4.8.4 (runtime)
------------------------------
--
Atenciosamente, Nicolas Peter Lane
Alain Delmotte
2015-01-17 10:09:00 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Comic Sans MS">Hi,<br>
<br>
Including an image in a document is *not* the work of TeXworks!
But of LaTeX.<br>
<br>
Your example is correct if you have a image file called </font><font
face="Comic Sans MS"><font face="Comic Sans MS">"dog.png", </font>"dog.jpeg",
</font><font face="Comic Sans MS"><font face="Comic Sans MS">"dog.jpg"
</font> or "dog.pdf" in the current directory, that is the
directory where the .tex file is; most probably "dog.eps" would
also work.<br>
<br>
Pay attention to create a paragraph for the picture, or it will be
included "in" the text and most probably create an overfull box.
You can also scale the picture:<br>
\includegraphics[scale=.50]{dog} <br>
<br>
--<br>
Alain<br>
<br>
</font>
<div class="moz-cite-prefix">Le 16/01/2015 19:43, Nicolas Peter Lane
a écrit :<br>
</div>
<blockquote cite="mid:***@gmail.com" type="cite">
<pre wrap="">Hello everyone, I've recently started learning LaTex and I'm having
troubles in adding an image to the document.

I've so far done this:
------------------------------------------------------------

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
%Necessary for working with images

\title{Using Images}
\author{Nicolas Peter Lane}
\date{01 16 2015}

\begin{document}

\maketitle

\section{Introduction}
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa

Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
\includegraphics{dog}
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb

Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
Bbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbb
\end{document}
----------------------------------------------------------------------


I've watched a tutorial showing how to do this LaTex, but I can't find
the proper way within Texworks to add the image itself for then calling
it's name just as in the tutorial.

So, is there a way to add an image to the laTex? How?
Thanks for your time.


----- configuration info -----
TeXworks version : 0.4.5r1280 (MiKTeX 2.9)
Install location : C:/Program Files (x86)/MiKTeX
2.9/miktex/bin/miktex-texworks.exe
Library path : C:/Users/NICOLAS
PC/AppData/Local/MiKTeX/2.9/TeXworks/0.4\
pdfTeX location : C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/pdftex.exe
Operating system : Windows Microsoft Windows 8 Business Edition, 64-bit
(build 9200)
Qt4 version : 4.8.4 (build) / 4.8.4 (runtime)
------------------------------

</pre>
</blockquote>
<br>
</body>
</html>

Loading...