Latex: Text cannot be placed below image

前端 未结 1 1683
野性不改
野性不改 2021-02-02 00:03

I\'m having a problem with an image and some text. I have this code:

Some text...\\\\

\\begin{figure}[ht]
\\centering
\\includegraphics[scale=0.75]{picture.jpg}         


        
相关标签:
1条回答
  • 2021-02-02 00:49

    If you really need to have the figure in that place, use the float package:

    In the preamble:

    \usepackage{float}
    

    then, in the text:

    Some text...
    
    \begin{figure}[H]
      \centering
      \includegraphics[scale=0.75]{picture.jpg}
      \caption{The caption}   
      \label{fig:picture}
    \end{figure}
    
    Some more text...
    

    Even though, is more preferable to let LaTeX place the floats.


    Another way to do the same thing is by using the caption package.

    In the preamble:

    \usepackage{caption}
    

    then, in the text:

    Some text...
    
    \begin{center}
      \includegraphics[scale=0.75]{picture.jpg}\\
      \caption{figure}[LOF entry]{The caption}   
      \label{fig:picture}
    \end{center}
    
    Some more text...
    
    0 讨论(0)
提交回复
热议问题