У меня проблема с импортом изображений из этого латексного шаблона, который я нашел в Интернете.
Когда я использую следующий фрагмент кода для импорта файла изображения eps (я пробовал даже с другими форматами как png), изображение не отображается.
\begin{figure}[h!]
\centering
\includegraphics[width=0.4\textwidth{pictures/dataCubeDataWarehouse.eps}
\caption{Example of data cube model inside a data warehouse}
\label{fig:datacube}
\end{figure}
Я обнаружил, что Overleaf компилируется с использованием компилятора pdfLatex и его легко изменить. Я заметил, что удаление [dvips] из строки при импорте пакета graphicx решает эту проблему, но сдвигает (вниз и вправо) все мои страницы, делая документ нечитаемым. То же самое происходит, когда я переключаю компилятор с pdfLatex на латексный. Есть ли способ не менять шаблон и импортировать изображения (желательно в формате png)?
Заранее спасибо за помощь! Я новичок в Latex и Overleaf.
Вот страница импорта шаблонов
\documentclass[12pt,a4paper,twoside,openright]{report}
\usepackage[dvips]{graphicx}
\graphicspath{ {./pictures/} }
\usepackage{tabularx}
\usepackage{subfigure}
\usepackage{afterpage}
\usepackage{amsmath,amssymb}
\usepackage{rotating}
\usepackage{fancyhdr}
\usepackage[scriptsize]{caption}
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
\usepackage{amsmath}
\usepackage{placeins}
\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[latin1]{inputenc}
\renewcommand{\captionfont}{\normalfont \sffamily \itshape \small}
\renewcommand{\listfigurename}{List of figures}
\renewcommand{\listtablename}{List of tables}
\pagestyle{empty}
\DeclareMathOperator{\Mr}{M_{\mathbb{R}}}
\begin{document}
\pagenumbering{Roman}
\include{frontespizio}
\thispagestyle{empty} \normalfont \cleardoublepage
\include{dedica}
\thispagestyle{empty} \cleardoublepage
\include{ringraziamenti}
\thispagestyle{empty} \cleardoublepage
\include{abstract}
\thispagestyle{empty} \cleardoublepage
\include{estratto}
\thispagestyle{empty} \vspace*{.75truecm} \cleardoublepage
\tableofcontents
%\include{contents}
\thispagestyle{empty} \cleardoublepage
%\include{listoffigures}
\listoffigures
\thispagestyle{empty} \cleardoublepage
%\include{listoftables}
\listoftables
\thispagestyle{empty} \vspace*{.75truecm} \normalfont \cleardoublepage
\pagenumbering{arabic}
\pagestyle{plain}\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[RE]{\bfseries\leftmark}
\fancyhead[LO]{\bfseries\rightmark}
\renewcommand{\headrulewidth}{0.3pt}
\include{capitolo1}
\include{capitolo2}
\include{capitolo3}
\include{capitolo4}
\include{capitolo5}
\include{capitolo6}
\include{capitolo7}
\cleardoublepage
% ---- Bibliography ----
\addcontentsline{toc}{chapter}{Bibliografia}
\bibliographystyle{plain}
\bibliography{bibl_tesi}
%\nocite{*}
\appendix
%\pagestyle{fancy}
\fancyfoot{}
\renewcommand{\chaptermark}[1]{\markboth{\appendixname\ \thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[RE]{\bfseries\leftmark}
\fancyhead[LO]{\bfseries\rightmark}
\renewcommand{\headrulewidth}{0.3pt}
\include{appendiceA}
\end{document}