summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ppt-slides/ppt-slides.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/ppt-slides/ppt-slides.dtx')
-rw-r--r--macros/latex/contrib/ppt-slides/ppt-slides.dtx13
1 files changed, 9 insertions, 4 deletions
diff --git a/macros/latex/contrib/ppt-slides/ppt-slides.dtx b/macros/latex/contrib/ppt-slides/ppt-slides.dtx
index 8aca5a1bee..ba92737063 100644
--- a/macros/latex/contrib/ppt-slides/ppt-slides.dtx
+++ b/macros/latex/contrib/ppt-slides/ppt-slides.dtx
@@ -1,7 +1,7 @@
% \iffalse meta-comment
% (The MIT License)
%
-% Copyright (c) 2021-2022 Yegor Bugayenko
+% Copyright (c) 2021-2023 Yegor Bugayenko
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the 'Software'), to deal
@@ -50,7 +50,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{ppt-slides}
%<*package>
-[2022-12-04 0.2.1 Slide Decks a la Power Point]
+[2023-08-29 0.2.2 Slide Decks a la Power Point]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -482,11 +482,16 @@
% \end{macro}
% \begin{macro}{\pptTitle}
-% Then, we define the |\pptTitle| command:
+% Then, we define the |\pptTitle| command, which prints the |title| and |subtitle| on the
+% first page. The first argument is the title, the second is the subtitle. If the second
+% argument is empty, it won't be printed:
% \begin{macrocode}
\newcommand\pptTitle[2]{%
{\pptBanner{\Huge #1}}%
- {\pptBanner{\large #2}}%
+ \def\param{#1}%
+ \ifx\param\empty\else%
+ {\pptBanner{\large #2}}%
+ \fi%
}
% \end{macrocode}
% \end{macro}