Latex在图片中添加文字

定义字体大小

\newcommand{\chuhao}{\fontsize{42pt}{\baselineskip}\selectfont}
\newcommand{\xiaochuhao}{\fontsize{36pt}{\baselineskip}\selectfont}
\newcommand{\yihao}{\fontsize{28pt}{\baselineskip}\selectfont}
\newcommand{\erhao}{\fontsize{21pt}{\baselineskip}\selectfont}
\newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont}
\newcommand{\sanhao}{\fontsize{15.75pt}{\baselineskip}\selectfont}
\newcommand{\sihao}{\fontsize{16pt}{\baselineskip}\selectfont}
\newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont}
\newcommand{\wuhao}{\fontsize{10pt}{\baselineskip}\selectfont}
\newcommand{\xiaowuhao}{\fontsize{9.2pt}{\baselineskip}\selectfont}
\newcommand{\liuhao}{\fontsize{8.4pt}{\baselineskip}\selectfont}
\newcommand{\xiaoliu}{\fontsize{6.2pt}{\baselineskip}\selectfont}
\newcommand{\qihao}{\fontsize{11pt}{\baselineskip}\selectfont}
\newcommand{\bahao}{\fontsize{14pt}{\baselineskip}\selectfont}

开始文件

\begin{document}

导入图片

\begin{figure}
\begin{center}
\begin{overpic}[scale=0.7]{fig2.eps}
%\put(100,40){\textcolor[rgb]{0.00,0.00,1.00}{\wuhao $\alpha$}}

其中,
(100,40)表示文字位置,
\textcolor[rgb]{0.00,0.00,1.00}表示字体颜色,
\wuhao表示字号。

\end{overpic}
\end{center}
\end{figure}
\end{document}

你可能感兴趣的:(LaTeX,Latex)