I'm using sharelatex with the Polimi Thesis project. When I'm trying to include images, they not show up. The problem seems related to the package: \usepackage[dvipdfmx]{graphicx} But when I remove it for use only graphicx, the images start to showing up but the entire structure of the text is not conformed to the page size (text exceed the border page). Thanks in advice for any further reply.

Packages in the main .tex file:

\graphicspath{ {pictures/} }
\setlength{\oddsidemargin} {2. cm}
\setlength{\evensidemargin} {2. cm}
\addtolength{\oddsidemargin} {-0.4 cm}
\addtolength{\evensidemargin} {-0.4 cm}



When I try to load an image:

\caption{Terza generazione ICS: in rete}

I used fbox for view the box related to the image and it appeared but it is empty (no image inside)

  • (1) Welcome, (2) what exactly are you using to compile this? If you are compiling with pdflatex that option is wrong – daleif Aug 3 '17 at 14:19
  • main file is not of big help. please make small but complete, self contained document beginning with \documenntclass{...} and ending with \end{document}. include in it only necessary packages and not use \include{<any file>} since we haven't your files. only on this way we can (eventually) identified your problem and suggest solution(s). welcome to tex.se! – Zarko Aug 3 '17 at 14:19
  • Thanks for the reply, I tried to use each compiler offered by the sharelatex engine but with the same results (no images) or in some cases with the structured mixed – Younes Aug 3 '17 at 14:28
  • 1
    Don't know if it'll make a difference but try removing [dvipdfmx], so you have just \usepackage{graphicx}. – Torbjørn T. Aug 3 '17 at 14:40
  • Thanks for the suggestion but I've already tried, the imges shows up but the entire structure of the text exceed the border of the pages – Younes Aug 3 '17 at 15:08

The problem was solved by removing the [dvipdfmx] package option and all the manual papersize and margins, using instead the geometry package.

  • 1
    It looks like you've got two separate accounts, which means you cannot edit your original post or leave comments. The Stack Exchange staff can merge them together for you. – Werner Aug 4 '17 at 9:01

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.