I started from a template that my university provided, but the images for some reason do not appear in the final pdf. They seem to be there, because if for example I change their size the blank space in which they should be also changes in size, but there's just a void. Here's the frontispiece code as an example:
Code: Select all
\documentclass[11pt,a4paper,twoside,openright]{book}
\usepackage[dvips]{graphicx}
\usepackage{tabularx}
\usepackage{subfigure}
\usepackage{afterpage}
\usepackage{amsmath,amssymb}
\usepackage{rotating}
\usepackage{fancyhdr}
\usepackage[scriptsize]{caption}
\hyphenation{a-gen-tiz-za-zio-ne}
\setlength{\paperwidth}{16cm}
\setlength{\paperheight}{24cm}
\setlength{\oddsidemargin} {2. cm}
\setlength{\evensidemargin} {2. cm}
\addtolength{\oddsidemargin} {-0.4 cm}
\addtolength{\evensidemargin} {-0.4 cm}
\linespread{1.1}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\renewcommand{\captionfont}{\normalfont \sffamily \itshape \small}
\pagestyle{empty}
\begin{document}
\thispagestyle{empty}
\vspace*{-1.5cm} \bfseries{
\begin{center}
\Huge
Politecnico di Milano\\
\bigskip
\normalsize
School of Industrial and Information Engineering\\
Master of Science in Materials Engineering and Nanotechnology\\
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=3.5cm,natwidth=300,natheight=297]{logopm.png}
\end{center}
\end{figure}
\vspace*{0.3cm} \LARGE
\textbf{TITLE}\\
\end{center}
\vspace*{1.0cm} \large
\begin{flushleft}
Supervisor: Prof. NAME SURNAME \\
Co-supervisor: Dott. NAME SURNAME
\end{flushleft}
\vspace*{1.0cm}
\begin{flushright}
Thesis by\\ NAME SURNAME \\ mat. NUMBER
\end{flushright}
\vspace*{0.5cm}
\begin{center}
Academic Year 2019/2020
\end{center} \clearpage
\end{document}
I'm using MikTeX with TeXstudio and PdfLaTeX as default compiler (and, if I switch to XeLaTeX I can actually see the images, but the page layout gets completely distroyed and a few errors arise, so I'd like to stick to PdfLaTeX if possible). The images are all .png and in the same folder as the .tex, and I can even see the preview in the GUI.
A hundred thanks to anyone who'd help me out, I'm getting kind of desperate