Skip to content

Commit

Permalink
fix: tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
LogCreative committed Jul 6, 2023
1 parent f44c360 commit 07ecd9f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ end
tagfiles = {"*.dtx","presenter.tex"}
function update_tag(file, content, tagname, tagdate)
local iso = "%d%d%d%d%-%d%d%-%d%d"
local ver = "v%d.%d.%d"
local ver = "%d.%d.%d"
if string.match(file, "%.dtx$") then
return string.gsub(content, "{" .. iso .. "}{" .. ver .. "}",
"{" .. tagdate .. "}{" .. tagname .. "}")
elseif string.match(file, "%.tex$") then
return string.gsub(content, "\\date{" .. iso .. " \\quad " .. ver .. "}",
"\\date{" .. tagdate .. " \\quad " .. tagname .. "}")
return string.gsub(content, "\\date{" .. iso .. " \\quad v" .. ver .. "}",
"\\date{" .. tagdate .. " \\quad v" .. tagname .. "}")
end
return content
end
2 changes: 1 addition & 1 deletion source/presenter.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
%<class>\ProvidesExplClass
%<package>\ProvidesExplPackage
{presenter}
{2023-07-03}{v0.4.0}
{2023-07-03}{0.4.0}
%<class> {A LaTeX presentation framework with seamless migration (class)}
%<package> {A LaTeX presentation framework with seamless migration (package)}
%</class|package>
Expand Down
2 changes: 1 addition & 1 deletion source/pretbg.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%<default> {pretbg-default}
%<block> {pretbg-block}
%<iiiblock> {pretbg-iiiblock}
{2023-07-03}{v0.4.0}
{2023-07-03}{0.4.0}
%<default> {default background style for presenter}
%<block> {block background style for presenter}
%<iiiblock> {block background style for presenter implemented in l3draw}
Expand Down
2 changes: 1 addition & 1 deletion source/pretfg.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%<default> {pretfg-default}
%<dual> {pretfg-dual}
%<cascade> {pretfg-cascade}
{2023-07-03}{v0.4.0}
{2023-07-03}{0.4.0}
%<default> {default foreground style for presenter}
%<dual> {dual foreground style for presenter}
%<cascade> {cascade foreground style for presenter}
Expand Down
2 changes: 1 addition & 1 deletion source/pretsec.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\ProvidesExplPackage{pretsec}{2023-07-03}{v0.4.0}
\ProvidesExplPackage{pretsec}{2023-07-03}{0.4.0}
{sectioning support pack for presenter}
%</package>
% \fi
Expand Down

0 comments on commit 07ecd9f

Please sign in to comment.