I try to insert a picture using the code below


\caption{Example TA}

However, the error says Missing $ inserted; may someone help me?

  • 5
    Don't quite see how you get that error message form the given code snippet. But, while code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Nov 15 '12 at 3:38
  • 5
    Please add a minimal working example (MWE) that illustrates your problem. It is considered a lot better to put in some code that will compile, as it makes it a lot easier for us to copy it into our text editor and work with it, and see exactly what it is you are trying to do. – Werner Nov 15 '12 at 3:38
  • I don't know what the pgf is for. Usually \usepackage{graphicx} is used for JPEGs and pictures in general. – Christian Nov 15 '12 at 14:11
  • 1
    Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers. – Reinstate Monica - M. Schröder Jan 8 '13 at 23:38

To end this I include here a complete MWE that compiles without errors (notice, that the used figure is part of package MWE you should have installed but must not be loaded). It contains everything needed to print a figure in LaTeX:



\begin{figure}%                 use [hb] only if necceccary!
  \caption{test figure}


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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