Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to include a tikz figure in a IEEE paper. I have the IEEE.cls, and IEEE.bib files in my current directory, but I can't seem to compile with pdflatex. I've used tikz successfully before, and I've followed my old examples, so I'm not sure what the problem is.

share|improve this question
5  
Welcome to TeX.sx! As the problem currently stands, it would be difficult (impossible) to reproduce your problem and therefore assess what could be wrong. As such, please add a minimal working example (MWE) that clearly illustrates your problem. –  Werner Feb 3 '12 at 2:57
1  
There may be a tagging problem here. You say that you're using IEEE.cls but have tagged this as IEEEtran (corresponding to IEEEtran.cls). I tried a simple TikZ picture using IEEEtran without issues. Make sure that your TeX distribution is up to date, and consider using IEEEtran as your document class. –  qubyte Feb 3 '12 at 3:27
    
Can you provide an example of what are you doing?, and also the link to your IEEE.cls. I found this one in the internet, and I was able to compile a simple TikZ example without problem. So, more information will be needed. –  adn Feb 3 '12 at 9:02
    
As far as I know, IEEE.cls is now obsolete. With or without TikZ, please use the ieeetran –  percusse Feb 3 '12 at 15:12

1 Answer 1

up vote 2 down vote accepted

Make a PDF of your drawing, with the standalone class. Then put the image in your article using \includegraphics nested into a figure environment.

share|improve this answer
    
Whilst this solves the immediate problem, it doesn't really answer the implied question; why doesn't this document class play well with TikZ? –  qubyte Feb 3 '12 at 8:40
1  
@Mark S. Everitt In these cases I always say this to myself: "Even if I tweak the class, or if I find a fancy solution that goes into my preamble, this will remain on my computer; the editor has his/her own workflow that most probably will not fit with my solution." –  agodemar Feb 3 '12 at 15:17
    
Oh, as far as submissions are concerned, it's a given that they have to be with images and not TikZ. Still doesn't answer the implied question. In any case, it'd be better to use TikZ with externalisation turned on to generate separate graphics so that the format of the document class is preserved without having to do it all manually. –  qubyte Feb 3 '12 at 15:42
    
Thanks you guys, I had actually forgotten that I had asked this question until it came up again. I'll follow your suggestions. Also, thanks for the information about IEEEtran.cls, I didn't realize that IEEE.cls was obsolete. –  cjohnson318 Apr 12 '12 at 14:39
    
When I used IEEEtran.cls everything worked out just beautifully. I was able to use TikZ to my heart's content. –  cjohnson318 Apr 13 '12 at 14:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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