我是靠谱客的博主 清新小伙,这篇文章主要介绍LaTeX 引用表格、照片、公式的时候自动添加 table,fig,equ,现在分享给大家,希望可以做个参考。

需要导入 cleveref 宏包,引用的时候使用 cref{label} 即可


mwe如下

documentclass{article}
usepackage{cleveref}
begin{document}
  begin{table}
    caption{A table}
    label{tab:tabsample}
  end{table}
  begin{figure}
    caption{A figure}
    label{fig:figsample}
  end{figure}
  begin{equation}
    sin' x=cos x
      label{equ:equsample}
  end{equation}
  cref{tab:tabsample}\
  cref{fig:figsample}\
  cref{equ:equsample}
end{document}

效果为
在这里插入图片描述

最后

以上就是清新小伙最近收集整理的关于LaTeX 引用表格、照片、公式的时候自动添加 table,fig,equ的全部内容,更多相关LaTeX内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(49)

评论列表共有 0 条评论

立即
投稿
返回
顶部