LaTex 在图片上添加文字和公式

  1. 使用宏包

\usepackage{overpic}

  1. 使用方法

\usepackage{overpic}
\begin{overpic}[scale=0.35 or width=1\textwidth=1]{图片名称}
\put{[坐标]}{[插入内容]}
\end{overpic}

  1. 示例
\begin{figure}[!h]
  \centering
  \includegraphics[width=1\textwidth]{FC.png}
\end{figure}

《LaTex 在图片上添加文字和公式》

\begin{overpic}[width=1\textwidth]{FC.png}

    \put(12,45){\small\bfseries\color{blue}{$x_0^0$}}
    
    \put(15.5,44.8){\small\bfseries$+1$}

    \put(12,38){\small\bfseries \color{blue}{$x_1^0$}}

    \put(12,31){\small\bfseries \color{blue}{$x_2^0$}}
        
    \put(12,24){\small\bfseries \color{blue}{$x_3^0$}}
    
    \put(50,58){\small\bfseries \color{red}{$a_0^1$}}
    
    \put(48,55.5){\small\bfseries $+1$}
    
    \put(47,51){\small\bfseries \color{red}{$x_1^1|a_1^1$}}
    
    \put(47,44){\small\bfseries \color{red}{$x_2^1|a_2^1$}}
    
    \put(47,37){\small\bfseries \color{red}{$x_3^1|a_3^1$}}
    
    \put(47,30){\small\bfseries \color{red}{$x_4^1|a_4^1$}}
    
    \put(47,23){\small\bfseries \color{red}{$x_5^1|a_2^1$}}
    
    \put(47,16){\small\bfseries \color{red}{$x_6^1|a_2^1$}}
    
    \put(84,41){\small\bfseries $x_1^2|a_1^2$}
    
    \put(84,34){\small\bfseries $x_2^2|a_2^2$}
    
    \put(84,27){\small\bfseries $x_3^2|a_3^2$}
    
    \put(30, 47){\small\bfseries \color{green}{$w_{10}^1$}}
    
    \put(33, 44){\small\bfseries \color{green}{$w_{11}^1$}}
    
    \put(37, 43){\small\bfseries \color{green}{$w_{21}^1$}}
    
    \put(41, 43){\small\bfseries \color{green}{$w_{31}^1$}}
    

\end{overpic}

《LaTex 在图片上添加文字和公式》

    原文作者:TransientYear
    原文地址: https://blog.csdn.net/z_feng12489/article/details/99680488
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞