1

This is likely a naive and simple question, so apologies for that. I'm trying to incorporate figures in TeXworks. I understand I need to use the graphicx package. What I can't figure out is whether I need to install something before I put the \usepackage{graphicx} into the preamble. If so, I have downloaded the .ins-file from CTAN and it's in the folder with all the other .tex docs, but not sure how to "activate" it from there.

Thank you

closed as unclear what you're asking by barbara beeton, Henri Menke, user36296, Mico, Stefan Pinnow Sep 20 '16 at 12:48

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • the package is usually included in the basic installation of either MiKTeX or TeX Live distributions. it would help, if you could provide a.) information about your technical layout and b.) a minimal working example of what you're trying to achieve. – naphaneal Aug 14 '16 at 1:12
  • 3
    Welcome! You shouldn't need to install anything. – cfr Aug 14 '16 at 1:12
  • Look first for graphicx.sty in your installation. It should already be there. – jon Aug 14 '16 at 2:02
  • 5
    graphicx is part of the required core of the latex distribution, if you have latex without graphicx (which seems unlikely) then report that as an error to whoever distributed the latex that you are using. – David Carlisle Aug 14 '16 at 6:58
2

As mentioned by others, graphicx should be installed already, and you don't need to do anything more than \usepackage{graphicx} into your preamble. It is highly unlikely in my opinion that you have a TeX-installation which doesn't include this package.

To install/update packages in the future, you can have a look at this post: How do I update my TeX distribution?

Here is a quick test-example which uses graphicx

Output

enter image description here

Code

\documentclass[11pt]{article}
\usepackage{graphicx}

\begin{document}

\begin{figure}[hbt]
\centering
  \includegraphics[width=5cm]{example-image-a}
  \caption{An example image}
\end{figure}

\end{document}

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