Как я могу вставить изображение в формате .eps в мой документ на обороте?
Это код, который я использовал:
\centering
\includegraphics[width=\linewidth,height=.44\textheight]{Chap_1_(Q2)/Figures/componenti_peso.eps}
\caption{componenti peso}
\vspace{4mm}
\end{figure}
В следующих строках находится настройка документа:
% packages and related macros
\usepackage[final]{optional}% draft, etc
\usepackage{url} %per inserire link
\usepackage{booktabs} %per le tabelle
% Language and encoding
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel} %traduce chapter,ecc. in italiano
\usepackage{textgreek}
% from guit forum: http://www.guit.sssup.it/phpBB2/viewtopic.php?t=3287
\makeatletter
\addto\extrasitalian{\babel@savevariable\@clubpenalty
\@clubpenalty3000 }
\makeatother
% Mathematics and related stuff
\usepackage[intlimits]{amsmath}
\usepackage{amsfonts}
\usepackage{amsbsy}
\usepackage{fixmath}
\usepackage{mathtools}
% Fonts and related stuff
\usepackage{relsize}
\usepackage[T1]{fontenc} %per scrivere gli accenti in modo diretto
\usepackage{pifont} % for dingbats
\usepackage{marvosym} % for \Keyboard etc
%\usepackage{lmodern}
%\usepackage{newtxtext}
\usepackage[osf]{erewhon}% extension of Utopia, osf=old-style-figures
\usepackage[varqu,varl]{inconsolata}% sans typewriter
\usepackage[scaled=.95]{cabin}% sans serif
\usepackage[utopia,vvarbb]{newtxmath}
\usepackage{newtxmath}
\usepackage{textcomp}% AFTER newtxtext to avoid clashes
\usepackage{wasysym}
% font for Aspect Ratio by Claudio Beccari and Agostino De Marco
% the default variant is compatible with lmodern font
\usepackage[TM]{ar}
% Floating objects and related stuff
\usepackage{float}
% I got this somewhere on the net:
\renewcommand{\textfraction}{0.15}
\renewcommand{\topfraction}{0.85}
\renewcommand{\bottomfraction}{0.65}
\renewcommand{\floatpagefraction}{0.60}
\usepackage[above]{placeins}
%\usepackage{picins} % Warning, not included in TeXLive
\usepackage{caption}
\captionsetup[figure]{
%format=hang,%
labelsep=space,%
font=small,labelfont={bf,sf,small},%
%justification=raggedright,%
singlelinecheck=true%,%
%width=1.1\textwidth%%
}
\captionsetup[table]{
%format=hang,%
labelsep=space,%
font=small,labelfont={bf,sf,small},%bf,%
justification=raggedright,%
singlelinecheck=true,%
%width=0.8\textwidth,%
belowskip=0.5em%
}
\captionsetup[lstlisting]{
%format=hang,%
labelsep=space,%
font=small,labelfont={bf,sf,small},%
%justification=raggedright,%
singlelinecheck=true%,%
%width=1.1\textwidth%%
}
\captionsetup[ctable]{
%format=hang,%
labelsep=space,%
font=small,labelfont={sf,bf,small},% bf
%justification=raggedright,%
singlelinecheck=true,%
width=0.8\textwidth,%
belowskip=0.5em%
}
\usepackage[innercaption,wide]{sidecap}
%% see here: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig
%\usepackage{subfig}
\usepackage{subcaption}
%% A new environment: dancingfigure
%% See original solution by Enrico Gregorio:
%% http://www.guit.sssup.it/phpbb/viewtopic.php?t=8077
%
\newcounter{dancingfigure}
\newenvironment{dancingfigure}[2][]
{\refstepcounter{dancingfigure}%
\edef\temp{\noexpand\label{DF@\arabic{dancingfigure}}}\temp
\ifthenelse{\isodd{\pageref{DF@\arabic{dancingfigure}}}}
{\odddancingfigure}{\evendancingfigure}
\begin{SCfigure}[#2][#1]}
{\end{SCfigure}}
\newcommand{\odddancingfigure}{\def\positioning{r}}
\newcommand{\evendancingfigure}{\def\positioning{l}}
\newcommand{\dancinginclude}[5]{% all mandatory parameters
\makebox[#1][\positioning]{%
\raisebox{#5}{%
\includegraphics[width=#2,#3]{#4}}}}
% Graphics and related stuff
\usepackage{graphicx} %per inserire immagini
\usepackage{wrapfig} %per inserire immagini ai lati del testo
\usepackage{amssymb} %carica simboli particolari
\usepackage{epstopdf}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage[scriptsize]{subfigure}
\usepackage{booktabs}
\usepackage{rotating}
\usepackage{listings}
\usepackage[%
dvipsnames, % svgnames
]%
{xcolor}% before tikz
\definecolor{mydarkgreen}{rgb}{0.03,0.47,0.03}
\definecolor{mydarkblue}{rgb}{0.07,0.08,0.4}
\definecolor{mylightblue}{rgb}{.8, .8, 1}
\definecolor{mylightgray}{rgb}{0.95,0.95,0.95}
\definecolor{mydarkgray}{rgb}{0.35,0.35,0.35}
\definecolor{mylightyellow}{rgb}{0.97,0.91,0.81}
\definecolor{myblue}{rgb}{.4,.4,1}
\definecolor{colKeys}{RGB}{0,0,255}
\definecolor{colIdentifier}{rgb}{0,0,0}
\definecolor{colComments}{RGB}{28,172,0}
\definecolor{colString}{RGB}{170,55,241}
% Units of measure according to the SI standard
\usepackage{siunitx}
\sisetup{
load=derived,
unitsep=thin,
valuesep=thin,
decimalsymbol=comma,
expproduct=cdot,
% digitsep=thin,
group-separator={},% ver. 2
sepfour=false
}
\newunit{\inch}{in}
\newunit{\foot}{ft}
\newunit{\feet}{ft}
\newunit{\lb}{lb}
\newunit{\lbf}{lbf}
\newunit{\slug}{slug}
\newunit{\rankine}{\ensuremath{^\circ}R}
\newunit{\fahrenheit}{\ensuremath{^\circ}F}
\newunit{\kilopond}{kg\ensuremath{_\mathrm{f}}}
\newunit{\knots}{kts}
% Miscellaneous stuff
\usepackage{lipsum}
\usepackage{xspace}
\usepackage{calc}
\usepackage{ragged2e}
\usepackage{paralist}
\usepackage{algorithmic}
% smart cross-referencing
\usepackage[english]{varioref}
% Si veda "Breve guida ai pacchetti più usati" di Enrico Gregorio
% http://profs.sci.univr.it/~gregorio/breveguida.pdf
\makeatletter
\vref@addto\extrasitalian{\def\reftextfaraway#1{a pagina~\pageref{#1}}}
\makeatother
\usepackage{dcolumn}
\usepackage{nccmath}
%\usepackage{ctable}
% Table of contents per chapter
\usepackage[italian,tight]{minitoc}
\AtBeginDocument{%
\addto\captionsitalian{\mtcselectlanguage{italian}}
}
%\mtcsetpagenumbers{secttoc}{off}
%\nostcpagenumbers
% Advanced header and footer management
\usepackage[
%sf,
%bf,
%compact,
%topmarks,
%calcwidth,%
pagestyles
]{titlesec}
\newcommand\mycoloredline[2]{%
\hhline{%
>{\arrayrulecolor{mylightblue}\doublerulesepcolor{myblue}}%
|#1:=:#2|}%
}
%\renewpagestyle{empty}[\small\sffamily]{
\renewpagestyle{empty}[\small]{
\sethead{}{}{}
\setfoot{}{}{}
}
%\renewpagestyle{plain}[\small\sffamily]{
\renewpagestyle{plain}[\small]{
\footrule
\setfoot{}{\usepage}{}}
% needs \usepackage{calc} above
\widenhead*{0pt}{\marginparsep + \marginparwidth} % symmetrically
\renewpagestyle{plain}{}
\newpagestyle{mybook}[\bfseries\sffamily\footnotesize]{
\headrule
\sethead%
[{\makebox[\marginparwidth+\marginparsep][l]{\thepage}{\chaptername}\ \thechapter\ \ {\sffamily\mdseries\chaptertitle}}][][]
{}{}{\raggedleft\thesection\ \ {\sffamily\mdseries\sectiontitle}{\makebox[\marginparwidth+\marginparsep][r]{\thepage}}}
% NB: il footer potrà essere vuoto nella versione definitiva !!
\footrule
\setfoot%
[][][\color{mydarkblue}\sf\scriptsize \myFooterLeft]% A. De Marco, D. P. Coiro
{\color{mydarkblue}\sf\scriptsize \myFooterRight}{}{}% Elementi di Dinamica e simulazione di volo
}
\pagestyle{mybook}
%------------------------------------------------------------------------------------------
% Advanced graphics package
\usepackage{tikz}
%------------------------------------------------------------------------------------------
% Setting for CHAPTER TITLE FORMAT
% http://web.slzm.de/blog/latex/schone-kapiteltitelseiten-in-latex/
%
\usetikzlibrary{calc} % style 2, 3, 4
\usetikzlibrary{decorations,decorations.shapes,shapes} % 3
% Style 4
\titleformat{\chapter}[display]
{\bfseries\Large}
{%
% \hfill \tikz[remember picture] \node[] (nr) {\fontsize{120}{70}\selectfont\color{blue!50!black}\textbf{\thechapter~}};% ~
\hfill \makebox[0pt][l]{%
\rule{\marginparwidth+\marginparsep+2pt}{0pt}%
\makebox[0pt][r]{%
\tikz[remember picture] \node[] (nr) {\fontsize{120}{70}\selectfont\color{blue!50!black}\textbf{\thechapter~}};% ~
}%
}
\begin{tikzpicture}[overlay,remember picture]
\coordinate (leftborder) at ($(nr)-(100,0)$);
\coordinate (leftborderhigh) at ($(nr.north west)-(100,0)$);
\coordinate (leftborderlow) at ($(nr.south west)-(100,0)$);
\coordinate (left) at ($(nr.west)+(-1.5,0)$);
\fill[blue!20!white] (leftborderhigh) -- ($(nr.north west)+(0,0.5)$) -- (left) -- (leftborder) -- cycle;
\fill[blue!20!white] (leftborderlow) -- ($(nr.south west)-(0,0.5)$) -- (left) -- (leftborder) -- cycle;
\draw[blue!50!black,line width=0.1em,line join=round] (left) -- ($(nr.south west)+(0,-0.5)$) -- ($(nr.south east)+(0,-0.5)$) -- ($(nr.north east)+(0,0.5)$) -- ($(nr.north west)+(0,0.5)$) -- (left) -- (leftborder);
%
%\node [red,right] at ($(nr)-(0.93\textwidth,-20pt)$) {\fontsize{40}{45}\selectfont\color{blue!50!black}\textbf{\chaptername}};
\pgftransformshift{\pgfpointanchor{current page}{south west}}
\pgftransformshift{\pgfpoint{2.2cm}{24.6cm}}
\pgftext[left,base]{\fontsize{40}{45}\selectfont\color{blue!50!black}\textbf{\chaptername}}
%
\end{tikzpicture}%
}
{-2ex}
{\filleft\fontsize{28}{32}\selectfont\vskip\baselineskip}% \fontsize{50}{70}\selectfont\scshape
[\vspace{0ex}]
%
% http://tex.stackexchange.com/questions/10009/subtitle-for-a-section
%
\newcommand*{\mySectionPostamble}{}
\newcommand*{\mySectionComment}[1]{%
\def\mySectionPostamble{#1}%
}
\titleformat{\section}
{\normalfont\Large\bfseries}{\thesection}{1em}{}
[\normalfont\small\raggedleft\mySectionPostamble
\global\let\mySectionPostamble\relax]
\usepackage{ctable}% must be loaded after tikz
% Document layout and related stuff
\usepackage{setspace} %per interlinea
%\onehalfspace
%\renewcommand{\baselinestretch}{1.1}
%\setstretch{1.0}
\def\mynormalstretch{1.1}% 1.15
\setstretch{\mynormalstretch}
\usepackage[strict]{changepage}% as of 2009
\usepackage{fullwidth}
\usepackage{mparhack} % marginpar hack, for two-side docs
\usepackage{lscape}
\usepackage{afterpage}
\usepackage{fancyvrb}
%% EOF
Как видите, я вставил пакет «epstopdf», а также «epsfig», но они не работают. Вы можете мне помочь, где ошибки? Ps Я пробовал вставить изображение .jpeg и все работает, так что вроде проблема в формате .eps.
Вот изображение моего документа на обратной стороне: https://stackru.com/images/c70e0f9c49e05ae354829e885db9ff8caf986eed.png