This question already has an answer here:

Could someone please explain to me why the figure in my code is not appearing when I compile the code thanks.


\fancyhf{}% Clear all headers/footers
\renewcommand{\headrulewidth}{0pt}% No header rule
\renewcommand{\footrulewidth}{0.4pt}% No footer rule









some writing

    % invoke external gnuplot as
    % calculator:
    \addplot[smooth,samples=180,domain=0.0001:20] {1/(1+(1/x))};


some writing 



marked as duplicate by Gonzalo Medina, Paul Gessler, barbara beeton, ChrisS, Adam Liter Feb 17 '15 at 3:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Your document produces the warning Package multicol Warning: Floats and marginpars not allowed inside `multicols' environment!. and that's the answer, multicol doesn't support figure. – David Carlisle Feb 17 '15 at 1:46
  • Is there a way to fix that. I just need to plot this function 1/(1+(1/x)) with a caption under it in two column paper. Also the figure does appear when I remove the figure tag and leave the tikzpicture tag. – MrDi Feb 17 '15 at 1:50
  • 1
    remove figure and use \captionof{figure}{zzzz} (capt-of package) under the tikzpicture – David Carlisle Feb 17 '15 at 1:54

If you're not too picky about where the figure is placed, there's a much simpler solution with a regular twocolumn article and the abstract package.

enter image description here



\twocolumn[ % http://tex.stackexchange.com/a/28110
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.

\caption{A figure}

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