Create S1_in_Eq_and_Fig.tex

This commit is contained in:
2023-07-26 00:11:10 +08:00
parent e8b8723abd
commit c7cbcd09af

View File

@@ -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}