子浮点问题

子浮点问题

这是我的代码。我无法理解由于错误导致它缺少什么:

扫描使用 \sf@@@subfloat 时文件结束。

我的想法是制作一系列带有子标题(a)(b)和(c)的图像

 \documentclass[11pt]{report}
\usepackage[top=1in, bottom=1in, left=1.2in, right=1in]{geometry}
\pagestyle{plain}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{subfig}
\usepackage{caption}


\begin{document}




\begin{figure}
    \centering
    \subfloat[\emph{(a)}]
    {\includegraphics[scale=0.7]{Immagini/conf1} \quad
        \subfloat[\emph{(b)}]
        {\includegraphics[scale=0.7]{Immagini/conf2} \quad
            \subfloat[\emph{(c)}]
            {\includegraphics[scale=0.7]{Immagini/conf3} 
                \caption{Fiber configuration of (a) unidirectional tape, (b) eight-harness satin weave, and (c) plain weave.}
            \end{figure}
        
    \end{document}

答案1

我相信你需要这个包\usepackage{graphicx} 然后后面的花括号\includegraphics

这应该有效:

\documentclass[11pt]{report}
\usepackage[top=1in, bottom=1in, left=1.2in, right=1in]{geometry}
\pagestyle{plain}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{caption}


\begin{document}
    
    
    
    
    \begin{figure}
        \centering
        \subfloat[]
        {\includegraphics[scale=0.7]{Immagini/conf1}} \quad
            \subfloat[]
            {\includegraphics[scale=0.7]{Immagini/conf2}} \quad
                \subfloat[]
                {\includegraphics[scale=0.7]{Immagini/conf3}} 
                    \caption{Fiber configuration of (a) unidirectional tape, (b) eight-harness satin weave, and (c) plain weave.}
                \end{figure}
                
            \end{document}

注意:我还删除了\emph{(a)}副标题中的双“a”

相关内容