我如何在文档中排版 beamer 和 tikz 包的版本。例如
This document was typeset with beamer in version \beamerversion and tikz in version \tikzversion
答案1
Beamer 在其文档中定义了宏\beamerugversion
,用于存储当前版本号。例如,您可以使用包readarray
来访问它(将路径替换为系统上安装文档的位置):
\documentclass{beamer}
\usepackage{readarray}
\readrecordarray{/usr/local/texlive/2022/texmf-dist/doc/latex/beamer/beameruserguide.tex}\data
\data[16]
\begin{document}
\begin{frame}
This document was typeset with beamer in version \beamerugversion\ and tikz in version \pgfversion
\end{frame}
\end{document}
答案2
\documentclass{article}
\usepackage{tikz}
\listfiles%-----------------log file will now display all version data
\begin{document}
I am using verion number \pgfversion%-----------------will print tikz pgf version
\end{document}