问题描述:
在引用图片公式或者section时总是手动输入Fig. \ref{},Equation \ref{}和Section \ref{}很浪费时间。
解决方案:使用\newcommand{}自定义引用格式。
...
\newcommand{\secref}[1]{Section~\ref{#1}}
\newcommand{\figref}[1]{Fig.~\ref{#1}}
\newcommand{\tabref}[1]{Table~\ref{#1}}
...
\begin{document}
...
根据不同需求更改对应地方:
在文中直接使用\figref{}等进行引用。
文中显示效果: