Skip to content

Commit

Permalink
[latex] v3.0.0beta5: XeTeX now uses \creationdate for timestamp (closes
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoore committed Jun 11, 2024
1 parent 3f5ad00 commit dd93c09
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions latex/minted/minted.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{minted}
%<*package>
[2024/06/08 v3.0.0beta4 Yet another Pygments shim for LaTeX]
[2024/06/11 v3.0.0beta5 Yet another Pygments shim for LaTeX]
%</package>
%<*driver>
\documentclass{ltxdoc}
Expand Down Expand Up @@ -1565,7 +1565,7 @@
% \subsection{Timestamp}
%
%
% Timestamp for current compile. Under pdfTeX and LuaTeX, an actual timestamp with second precision. Under XeTeX, a derived timestamp (via |\year|, |\month|, |\day|, |\time|) with only minute precision.
% Timestamp for current compile. This could eventually be simplified to use |\c_sys_timestamp_str| for all engines; that macro is in \texpkg{l3kernel} from 2023-08-29.
%
% \begin{macro}{\minted@timestamp}
% \begin{macrocode}
Expand All @@ -1583,6 +1583,10 @@
\else
\xdef\minted@timestamp{\minted@creationdatetotimestamp{\pdfcreationdate}}
\fi
\expandafter\ifx\csname XeTeXrevision\endcsname\relax
\else
\xdef\minted@timestamp{\minted@creationdatetotimestamp{\creationdate}}
\fi
\expandafter\ifx\csname directlua\endcsname\relax
\else
\xdef\minted@timestamp{\minted@creationdatetotimestamp{\pdffeedback creationdate}}
Expand Down
6 changes: 5 additions & 1 deletion latex/minted/minted.sty
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{minted}
[2024/06/08 v3.0.0beta4 Yet another Pygments shim for LaTeX]
[2024/06/11 v3.0.0beta5 Yet another Pygments shim for LaTeX]
\RequirePackage{catchfile}
\RequirePackage{etoolbox}
\RequirePackage{framed}
Expand Down Expand Up @@ -75,6 +75,10 @@
\else
\xdef\minted@timestamp{\minted@creationdatetotimestamp{\pdfcreationdate}}
\fi
\expandafter\ifx\csname XeTeXrevision\endcsname\relax
\else
\xdef\minted@timestamp{\minted@creationdatetotimestamp{\creationdate}}
\fi
\expandafter\ifx\csname directlua\endcsname\relax
\else
\xdef\minted@timestamp{\minted@creationdatetotimestamp{\pdffeedback creationdate}}
Expand Down

0 comments on commit dd93c09

Please sign in to comment.