3

How would I typeset inside of a document the version of the beamer and of the tikz package. Such as in

This document was typeset with beamer in version \beamerversion and tikz in version \tikzversion

2 Answers 2

1

Beamer defines the macro \beamerugversion, which stores the current version number, in its documentation. You can e.g. use the readarray package to access it (replace the path to wherever the documentation is installed on your system):

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

enter image description here

3
\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}
4
  • 2
    Hi there, please don't make negative votes without explanation!
    – dexteritas
    Commented Sep 6, 2020 at 19:15
  • 3
    It seems this answers only the part about the tikz version. Maybe you could add some description and use the beamer class as wished in the question.
    – dexteritas
    Commented Sep 6, 2020 at 19:15
  • 1
    With \listfiles the version of the packages are listed in the log file. See the file with extension log produced when you compile the tex file. The beamer version will be there.
    – Andre
    Commented Nov 2, 2020 at 17:17
  • This answer was more useful than the previous one. \listfiles with beamer as \documentclass spells out the version in the .log file. Very useful tool indeed. Is there any single place where we can learn such things?
    – vrgovinda
    Commented Aug 4, 2023 at 1:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .