Graphics, Figures & TablesInserted Figure stops Compilation

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
cvanloon
Posts: 6
Joined: Wed Jun 08, 2011 5:38 pm

Inserted Figure stops Compilation

Post by cvanloon »

Furthermore it highlights a \chapter later on in the document. Any ideas of what it could be? When I take the figure out it will compile. I can move the picture to a different part of the document and it will compile as well... but I'd like the figure in a certain part of the document. Thanks,

Chris

P.s. Im using winedt.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Inserted Figure stops Compilation

Post by kaiserkarl13 »

Please post your code. At the bare minimum, cut and paste your \begin..\end{figure} environment. There is probably something inside it that is causing LaTeX to do what you told it to do but not what you wanted it to do.
cvanloon
Posts: 6
Joined: Wed Jun 08, 2011 5:38 pm

Re: Inserted Figure stops Compilation

Post by cvanloon »

The issue is with adding the DeltaPercentError.pdf figure.
Attachments
thesis.tex
(18.96 KiB) Downloaded 198 times
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Inserted Figure stops Compilation

Post by kaiserkarl13 »

Perhaps I should have been more specific: please post a minimal working example (see board rules for help). BTW, it help a lot if you put \[code\]...\[/code\] tags around your markup; then I can cut and paste easily.

I commented out all \includegraphics commands (since I don't have those image files) and all class-specific commands (\Affiliation and such). I changed the document class to report, too. Everything seemed fine.

It's possible your PDF that you're trying to insert is the problem. If so, you can test whether you get the problem by replacing it (temporarily) with another image. If that's the problem, try using something like pdf2ps followed by ps2pdf to make another one that might not be so corrupted.

If you can't reproduce the problem with a shorter example, you might have to upload an archive with all the PDF files you include. Be wary, however, that all any of us will be able to do with that is play around with it the same way I suggest above.
cvanloon
Posts: 6
Joined: Wed Jun 08, 2011 5:38 pm

Re: Inserted Figure stops Compilation

Post by cvanloon »

I could send you a zipped folder if you wouldn't mind sending your email. Thanks for all the help!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Inserted Figure stops Compilation

Post by localghost »

cvanloon wrote:I could send you a zipped folder if you wouldn't mind sending your email. Thanks for all the help!
There will be no help via e-mail (see rules). If you want help this way, refer to a help desk. This is a discussion forum where solutions are developed publicly. And to get closer to a solution it is most helpful if you prepare a minimal example that contains only relevant code, reproduces the undesired behaviour and is compilable out of the box for everybody else.

And by the way, it is suggestive to attach complete files by upload to the forum server instead of posting a vast amount of code lines. I turned your code into an attachment to keep the discussion clear. kaiserkarl13 already mentioned the »Code« environment. Would be very kind if you use it for future posts when posting code to tag it as such (see rules).


Thorsten
Post Reply