
를 사용하여 두 그림을 나란히 배치하려고 하는데 subfigure
파일을 PDF로 컴파일할 수 없습니다. 이 환경에 대한 명령이 주석 처리되면(예: \begin{subfigure}[t]{0.3\textwidth}
및 ) 오류는 사라지 \end{subfigure}
지만 분명히 숫자는 차례로 배치됩니다. 코드에 실수가 있는 경우 이를 지적하거나 이에 대한 대체 솔루션을 지적해 주십시오.
오류 메시지:!pdfTeX error: pdflatex (file ecrm1095): Font ecrm1095 at 600 not found ==> Fatal error occurred, no output PDF file produced!
subcaption
또한 내가 사용하는 패키지가 subfigure
최근 TexLive에 별도로 설치되었다는 사실을 고려하십시오 .
\documentclass[a4paper,12pt,twoside]{report}
\usepackage{amssymb,amstext,amsmath,hyperref,graphics}
\usepackage[T1]{fontenc}
\usepackage{epstopdf}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
pdfborder={0 0 0},
citecolor= blue,
linkcolor= black,
}
\ifx\pdfoutput\undefined
\usepackage{graphicx}
\else
\usepackage[pdftex]{graphicx}
\fi
\setlength{\parskip}{0.8em}
\begin{document}
Hello World and the \it Master of Dreams!
\begin{figure}
\begin{subfigure}[t]{0.3\textwidth}
\includegraphics[width=\linewidth]{energyplot_dt_compare}
\caption{enrgy}
\label{fig:E_deltat}
\end{subfigure}
\begin{subfigure}[t]{0.3\textwidth}
\includegraphics[width=\linewidth]{energy_typical_lj}
\caption{Energy plot of the system at T=1}
\label{fig:typicalE}
\end{subfigure}
\end{figure}
\end{document}
업데이트:질문에서 힌트를 얻습니다: [글꼴이 설치되어 dvi로 컴파일되지만 pdf로 컴파일되지 않습니다. "600의 글꼴을 찾을 수 없습니다", 나는 pdf로 컴파일하는 대신(이전에 하던 작업) dvi로 직접 컴파일하려고 했고 컴파일되었습니다! 그러나 여전히 PDF로 컴파일되지 않습니다. 언급된 질문에서 Soultion을 시도했지만 작동하지 않습니다.
업데이트 2:아직 만족스러운 답변을 찾지 못했지만 를 사용하지 않고 fontenc
대신 lmodern
. 나는 이 솔루션을 에 빚지고 있습니다 cfr
. 답변을 참고해 주세요cfr
.https://tex.stackexchange.com/a/205197/99160