\caption@iiibox 사용을 검색하는 동안 파일이 종료되었습니다.

\caption@iiibox 사용을 검색하는 동안 파일이 종료되었습니다.

MiKteX 2.9.6100과 함께 TexStudio 2.12.6을 사용하고 있습니다.

\documentclass[11pt,a4paper,fleqn]{article}
\usepackage[T1]{fontenc}% Must be loaded for proper fontencoding when using pdfLaTeX
\usepackage[utf8]{inputenc}
\input{ix-utf8enc.dfu}
\usepackage{amsmath}
\usepackage{mathptmx}
\usepackage{makeidx}
\usepackage[pdftex]{graphicx}
\usepackage{lscape}
\usepackage{natbib}
\usepackage{dsfont}
\usepackage{gensymb}
\usepackage{textcomp} 
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[titletoc]{appendix}
\usepackage{xcolor}
\usepackage[colorlinks]{hyperref}
\usepackage{cleveref}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{array}
\usepackage{siunitx}
\usepackage{tipa}
\usepackage{fancyref}
\usepackage{fixltx2e}
\usepackage{subcaption}

\newcommand\rd{\mathrm{d}}


\begin{document}



\begin{figure}[h]
    \centering
    \subcaptionbox{Socio--political instability and Inflation -- average over time}
        {\includegraphics[height=60mm, width=60mm]{spi_inflation_ave_t2.pdf}
    \subcaptionbox{Socio--political instability and Inflation -- average over countries}
        {\includegraphics[height=60mm, width=60mm]{spi_inflation_ave_i.pdf}
    \caption{SPI vs CPI}
    \label{fig:fig1}
    \end{figure}

\end{document}

"\caption@iiibox 사용을 검색하는 동안 파일이 종료되었습니다."라는 메시지가 표시됩니다. 오류 및 "2015년 이후 릴리스에서는 fixltx2e가 필요하지 않습니다(fixltx2e). 이제 모든 수정 사항이 LaTeX 커널에 있습니다." 경고.

LaTeX를 처음 접하는 것은 아니지만 코딩에 익숙하지 않으며 문제가 어디에 있는지 모릅니다. "fixltx2e" 패키지의 주석 처리를 제거해도 여전히 오류가 발생하고 PDF가 컴파일되지 않습니다.

답변1

es 에 대한 닫는 중괄호가 없습니다 \subcaptionbox.

\begin{figure}[h]
  \centering
  \subcaptionbox{Socio--political instability and Inflation -- average over time}
    {\includegraphics[height=60mm, width=60mm]{spi_inflation_ave_t2.pdf}}
  \subcaptionbox{Socio--political instability and Inflation -- average over countries}
    {\includegraphics[height=60mm, width=60mm]{spi_inflation_ave_i.pdf}}
  \caption{SPI vs CPI}
  \label{fig:fig1}
\end{figure}

fixltx2e그리고 그렇습니다. s 세트에서 제거할 수 있습니다 \usepackage.

현재의 문제는 아니지만(외견상으로는) 로딩을 고려해야 합니다.hyperref서문이 너무 늦었습니다. 보다hyperref이전이 아닌 이후에 어떤 패키지를 로드해야 합니까 ?

관련 정보