\documentclass{article}
\usepackage{graphicx,epstopdf}
\begin{document}
\begin{figure}[!htb]
\centering
\includegraphics[scale=.7]{Luke.eps}
\caption{Digraph.}
\label{fig:digraph}
\end{figure}
\end{document}
问题:我想使用standalone
类来实现它。我该怎么做?
它与 Skillmoon 的答案一致:
\documentclass[preview,border={-100pt 5pt -100pt 3pt}]{standalone}
答案1
我没有您的文件(并且不会为此下载它)。以下应该有效:
\documentclass[preview]{standalone}
\usepackage{graphicx,epstopdf}
\begin{document}
\begin{figure}[!htb]
\centering
\includegraphics[scale=.7]{example-image-a}
\caption{Digraph.}
\label{fig:digraph}
\end{figure}
\end{document}