0

I saved the jpeg file in the same place where all my TeX files are placed at; which commands should I be using to make the pic appear?

I am using Bakoma TeX 11.85, but I believe it's the same in every software of TeX, but I may be wrong.

2

You may use the package graphicx: https://ctan.org/pkg/graphicx.

It can be employed for a wide range of image types (jpg, png, eps...) and moreover has a lot of useful options to deal with images, such as

  • \includegraphics[scale=0.5]{IMAGE.jpg} it halves the size of the image. You can choose any percentage, even greater than 1.
  • \includegraphics[width=0.5\textwidth]{IMAGE.jpg} it rescales the image by setting its width as the 50% of the text width and automatically adjust the height to maintain the proportion. You can choose any percentage: for example, \includegraphics[width=0.1\textwidth]{IMAGE.jpg} set the width as 1/10 of the textwidth.
  • \includegraphics[height=0.5\textheight]{IMAGE.jpg} it rescales the image by setting its height as the 50% of the text width and automatically adjust the width to maintain the proportion. You can choose any percentage, also greater than 1.
| improve this answer | |
  • How do I shrink the picture? I used the commands just after documentclass \usepackage{graphicx} and in the body of the text I used the command \includegraphicx{(b).jpg} but I believe I get a picture which is too big for the screen so I don't see the picture. What do you suggest me to do here? thanks! – Alan Apr 24 at 18:51
  • You can use some options for the \includegraphics command, such as \includegraphics[scale=0.5]{(b).jpg}, which halves the image; you can choose the percentage of the scaling as you desire. Nonetheless, the option that I prefer is to use \includegraphics[width=0.5\textwidth]{(b).jpg} which rescales the image's dimension as a percentage of the width of the text (in this case, it sets as 50% of the text width). You may play a little bit with this commands and see what better suits you. – Eddymage Apr 24 at 19:43
  • @Eddymage --- it would be much better if you put the info in this comment in the answer ;-) – Rmano Apr 24 at 19:49
  • @Rmano you're right, done it! – Eddymage Apr 24 at 20:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.