![图形没有出现,但是 \includegraphics{} 出现了](https://linux22.com/image/311190/%E5%9B%BE%E5%BD%A2%E6%B2%A1%E6%9C%89%E5%87%BA%E7%8E%B0%EF%BC%8C%E4%BD%86%E6%98%AF%20%5Cincludegraphics%7B%7D%20%E5%87%BA%E7%8E%B0%E4%BA%86.png)
我想将figure
-environments 插入到我的 tex 文档中,但是编译文件后没有出现图形。另一方面,我可以毫无问题地包含图像。
\documentclass[landscape]{article}
% paper geometry
\usepackage[landscape]{geometry}
\geometry{
a4paper,
total={210mm,297mm},
left=15mm,
right=15mm,
top=15mm,
bottom=20mm
}
% header and footer
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyfoot[LO, RE] {Test}
\fancyfoot[C]{-\,\thepage\,-}
% including images
\usepackage{graphicx}
\graphicspath{{images/}}
% columns
\usepackage{multicol}
\columnseprule0.5pt
\columnsep5mm
% german spelling
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage[babelshorthands=true]{german}
% blind text for mwe
\usepackage{blindtext}
\begin{document}
\begin{multicols}{4}
\section*{Test}
\blindtext
\includegraphics[width=\columnwidth]{example.eps}
\blindtext\\
\textbf{FIGURE HERE}\\
\begin{figure}
\caption{example}
\centering
\includegraphics[width=\columnwidth]{example.eps}
\end{figure}
\blindtext
\end{multicols}
\end{document}
我使用以下命令编译此文件:xelatex -synctex=1 -interaction=nonstopmode test