From c7cbcd09afc99aff5fe9bbd010516c6601d2d416 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Wed, 26 Jul 2023 00:11:10 +0800 Subject: [PATCH] Create S1_in_Eq_and_Fig.tex --- .../S1_in_Eq_and_Fig.tex | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 language_learning/2023.07.25_S1_in_Eq_and_Fig/S1_in_Eq_and_Fig.tex diff --git a/language_learning/2023.07.25_S1_in_Eq_and_Fig/S1_in_Eq_and_Fig.tex b/language_learning/2023.07.25_S1_in_Eq_and_Fig/S1_in_Eq_and_Fig.tex new file mode 100644 index 0000000..f1046c3 --- /dev/null +++ b/language_learning/2023.07.25_S1_in_Eq_and_Fig/S1_in_Eq_and_Fig.tex @@ -0,0 +1,22 @@ +\documentclass{article} +\usepackage{graphicx} + +% 加上以下语句,S字母可任意修改 +\renewcommand{\thefigure}{S\arabic{figure}} +\renewcommand{\theequation}{S\arabic{equation}} + +\begin{document} + +Here are Eq. (\ref{eq:mass_energy_equivalence}) and Fig. \ref{fig:a}. + +\begin{equation} + E=mc^2 \label{eq:mass_energy_equivalence} +\end{equation} + +\begin{figure}[htbp] + % \includegraphics*[width=0.5\textwidth]{a.eps} + \caption{This is a caption. Image is not shown.} + \label{fig:a} +\end{figure} + +\end{document} \ No newline at end of file