![无法加载图片或 PDF XeLaTeX](https://linux22.com/image/324703/%E6%97%A0%E6%B3%95%E5%8A%A0%E8%BD%BD%E5%9B%BE%E7%89%87%E6%88%96%20PDF%20XeLaTeX%20.png)
在 XeLaTeX 下包含图像时我遇到问题:
>! Unable to load picture or PDF file 'cachan.jpg'.<to be read again>\GXT@clipend \Garde
我尝试了所有方法,但都无济于事。我更改了图像的名称,更改了格式……
有谁知道如何解决这一问题?
这是我的完整 MWE(我在主文档中编译):
\makeatletter
\newcommand{\Garde}{
\begin{titlepage}
\centering
\includegraphics[scale=1]{cachan.jpg}
\hfill
\includegraphics[scale=1]{saclay}
\hfill
\includegraphics[scale=1]{paris1}
\hfill
\vspace{2cm}
{\Large\textsc{Mémoire de première année de Master}}\\
\vspace{0.3cm}
{\large\textsc{Mention \enquote{Histoire contemporaine}}}\\
\vspace{0.3cm}
{\large\textsc{Année universitaire} 2015 -- 2016}\\
\vspace{2.5cm}
{\Huge {\bfseries Ceci est le titre}}\\
\vspace{0.3cm}
{\Large Ceci est le sous-titre de mon mémoire qui est un peu plus long que le titre}\\
\vspace{2.5cm}
\textit{présenté et soutenu par}\\
\vspace{0.3cm}
{\Large \@author} \\
\vspace{0.3cm}
le 5 juin 2016 \\
\vspace{2cm}
\textit{sous la direction d'}\\
\vspace{0.3cm}
{\Large Olivier \textsc{Wieviorka}} \\
\end{titlepage}
}
[摘自 cfr 的回答]
感谢您这么快就提供帮助!
这是我的完整 MWE(我对我的错误和糟糕的英语表示歉意。。)
它很长:
==============
\documentclass[a4paper, 12pt]{book}
\input{Preambule/Preambule}
%\usepackage[backend=biber, citestyle=verbose-trad2, bibstyle=verbose]{biblatex}
%\addbibresource{fiches.bib}
\author{XXX \textsc{XXX}}
\include{Page_de_garde/Page_de_garde}
\begin{document}
\frontmatter
\Garde
\setcounter{page}{1}
\thispagestyle{plain}
\include{Remerciements/Remerciements}
\thispagestyle{plain}
\mainmatter
\include{Chapitre_1/Chapitre_1}
\appendix
\backmatter
\end{document}
Preambule
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes}
\usepackage[french]{babel}
\usepackage{lmodern}
\usepackage{ae,aecompl}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fontspec}
\usepackage{appendix}
\AddThinSpaceBeforeFootnotes
\FrenchFootnotes
\usepackage[top=2cm,bottom=2cm,left=3cm,right=2.5cm]{geometry}
\usepackage{setspace}
\setstretch{1.5}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{lastpage}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[C]{\rightmark}
\fancyhead[R]{}
\fancyhead[L]{}
\renewcommand{\footrulewidth}{1pt}
\fancyfoot[R]{\small{page {\thepage} sur \pageref{LastPage}}}
\fancyfoot[C]{}
\fancyfoot[L]{\textsc{\small{XXX}}}
\usepackage{enumerate}
\usepackage{enumitem}
\usepackage[section]{placeins}
\usepackage{epigraph}
\usepackage[font={small}]{caption}
\usepackage{pdflscape}
\usepackage{import}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{colortbl}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{threeparttable}
\usepackage{etoolbox}
\appto\TPTnoteSettings{\footnotesize}
\addto\captionsfrench{\def\tablename{{\textsc{Tableau}}}}
\usepackage{graphicx}
\makeatletter
\patchcmd{\BR@backref}{\newblock}{\newblock(page~}{}{}
\patchcmd{\BR@backref}{\par}{)\par}{}{}
\makeatother
\usepackage{xspace}
\usepackage{silence}
\usepackage{array}
\WarningFilter{minitoc(hints)}{W0023}
\WarningFilter{minitoc(hints)}{W0024}
\WarningFilter{minitoc(hints)}{W0028}
\WarningFilter{minitoc(hints)}{W0030}
\usepackage{remreset}
\makeatletter \@removefromreset{figure}{chapter}\makeatother
\makeatletter \@removefromreset{footnote}{chapter}\makeatother
\makeatletter \@removefromreset{footcite}{chapter}\makeatother
\makeatletter \@removefromreset{table}{chapter}\makeatother
% Page_de_garde
\makeatletter
\newcommand{\Garde}{
\begin{titlepage}
\centering
\includegraphics[scale=1]{cachan.jpg}
\hfill
\includegraphics[scale=1]{saclay}
\hfill
\includegraphics[scale=1]{paris1}
\hfill
\vspace{2cm}
{\Large\textsc{Mémoire de première année de Master}}\\
\vspace{0.3cm}
{\large\textsc{Mention \enquote{Histoire contemporaine}}}\\
\vspace{0.3cm}
{\large\textsc{Année universitaire} 2015 -- 2016}\\
\vspace{2.5cm}
{\Huge {\bfseries Ceci est le titre}}\\
\vspace{0.3cm}
{\Large Ceci est le sous-titre de mon mémoire}\\
\vspace{2.5cm}
\textit{présenté et soutenu par}\\
\vspace{0.3cm}
{\Large \@author} \\
\vspace{0.3cm}
le 5 juin 2016 \\
\vspace{2cm}
\textit{sous la direction d'}\\
\vspace{0.3cm}
{\Large Olivier \textsc{Wieviorka}} \\
\end{titlepage}
}