texlive[65194] Master/texmf-dist: ppt-slides (4dec22)

commits+karl at tug.org commits+karl at tug.org
Sun Dec 4 22:08:32 CET 2022


Revision: 65194
          http://tug.org/svn/texlive?view=revision&revision=65194
Author:   karl
Date:     2022-12-04 22:08:31 +0100 (Sun, 04 Dec 2022)
Log Message:
-----------
ppt-slides (4dec22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/ppt-slides/README.md
    trunk/Master/texmf-dist/doc/latex/ppt-slides/ppt-slides.pdf
    trunk/Master/texmf-dist/source/latex/ppt-slides/ppt-slides.dtx
    trunk/Master/texmf-dist/tex/latex/ppt-slides/ppt-slides.sty

Modified: trunk/Master/texmf-dist/doc/latex/ppt-slides/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/ppt-slides/README.md	2022-12-04 21:08:16 UTC (rev 65193)
+++ trunk/Master/texmf-dist/doc/latex/ppt-slides/README.md	2022-12-04 21:08:31 UTC (rev 65194)
@@ -1,4 +1,4 @@
-[![make](https://github.com/yegor256/ppt-slides/actions/workflows/latexmk.yml/badge.svg)](https://github.com/yegor256/ppt-slides/actions/workflows/latexmk.yml)
+[![make](https://github.com/yegor256/ppt-slides/actions/workflows/l3build.yml/badge.svg)](https://github.com/yegor256/ppt-slides/actions/workflows/l3build.yml)
 [![CTAN](https://img.shields.io/ctan/v/ppt-slides)](https://ctan.org/pkg/ppt-slides)
 [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/ppt-slides/blob/master/LICENSE.txt)
 

Modified: trunk/Master/texmf-dist/doc/latex/ppt-slides/ppt-slides.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/ppt-slides/ppt-slides.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/ppt-slides/ppt-slides.dtx	2022-12-04 21:08:16 UTC (rev 65193)
+++ trunk/Master/texmf-dist/source/latex/ppt-slides/ppt-slides.dtx	2022-12-04 21:08:31 UTC (rev 65194)
@@ -40,7 +40,7 @@
 %   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %   Right brace   \}     Tilde         \~}
 
-% \GetFileInfo{ppt-slies.dtx}
+% \GetFileInfo{ppt-slides.dtx}
 % \DoNotIndex{\endgroup,\begingroup,\let,\else,\s,\n,\r,\\,\1,\fi}
 
 % \iffalse
@@ -50,7 +50,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}
 %<package>\ProvidesPackage{ppt-slides}
 %<*package>
-[2022-12-03 0.2.0 Slide Decks a la Power Point]
+[2022-12-04 0.2.1 Slide Decks a la Power Point]
 %</package>
 %<*driver>
 \documentclass{ltxdoc}
@@ -87,7 +87,9 @@
 % \documentclass{article}
 % \usepackage[template,scheme=dark]{ppt-slides}
 % \begin{document}
-% \pptMiddle{\pptTitle{Hello, world!}{How are you?}}
+% \begin{pptMiddle}
+% \pptTitle{Hello, world!}{How are you?}
+% \end{pptMiddle}
 % \end{document}
 % \end{docshot}
 
@@ -243,6 +245,19 @@
 % \end{document}
 % \end{docshot}
 
+% \DescribeMacro{pptMiddle}
+% You can put your content vertically in the middle of the page, using the |pptMiddle| environment:
+% \begin{docshot}
+% \documentclass{article}
+% \usepackage[template,scheme=dark]{ppt-slides}
+% \begin{document}
+% \begin{pptMiddle}
+% ``Your time is limited, so don't waste it
+% living someone else's life.'' --- Steve Jobs
+% \end{pptMiddle}
+% \end{document}
+% \end{docshot}
+
 % \DescribeMacro{\pptQR}
 % Sometimes it's convenient to show a QR code to your audience instead of
 % a URL, since it's easier to use --- they can scan it:
@@ -410,11 +425,12 @@
 %    \end{macrocode}
 
 % \begin{macro}{\pptMiddle}
-% Then, we define the |\pptMiddle| command:
+% \changes{0.2.1}{2022/12/04}{The \texttt{\char`\\pptMiddle} command turned into \texttt{pptMiddle} environment.}
+% Then, we define the |pptMiddle| environment:
 %    \begin{macrocode}
-\newcommand\pptMiddle[1]{%
-  \vspace*{\fill}#1\vspace*{\fill}%
-}
+\newenvironment{pptMiddle}
+  {\vspace*{\fill}}
+  {\vspace*{\fill}}
 %    \end{macrocode}
 % \end{macro}
 
@@ -435,11 +451,11 @@
 %    \begin{macrocode}
 \newcommand\pptChapter[2][]{%
   \crumbection[#1]{#2}%
-  \pptMiddle{%
+  \begin{pptMiddle}%
     {\large\ttfamily Chapter \#\the\value{section}:}%
     \newline%
     \rotatebox{1}{\pptBanner[blue]{\LARGE#2}}%
-  }%
+  \end{pptMiddle}%
 }
 %    \end{macrocode}
 % \end{macro}
@@ -577,7 +593,7 @@
 % Then, we define the |\pptThought| command:
 %    \begin{macrocode}
 \newcommand\pptThought[1]{%
-  \pptMiddle{%
+  \begin{pptMiddle}%
     \tikz{%
       \node [inner sep=18pt] (z) {%
         \begin{varwidth}{0.8\textwidth}
@@ -587,7 +603,7 @@
       };
       \path [draw=green,line width=8pt] (z.north west) -- (z.south west);
     }%
-  }%
+  \end{pptMiddle}%
 }
 %    \end{macrocode}
 % \end{macro}

Modified: trunk/Master/texmf-dist/tex/latex/ppt-slides/ppt-slides.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ppt-slides/ppt-slides.sty	2022-12-04 21:08:16 UTC (rev 65193)
+++ trunk/Master/texmf-dist/tex/latex/ppt-slides/ppt-slides.sty	2022-12-04 21:08:31 UTC (rev 65194)
@@ -31,7 +31,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{ppt-slides}
-[2022-12-03 0.2.0 Slide Decks a la Power Point]
+[2022-12-04 0.2.1 Slide Decks a la Power Point]
 
 
 
@@ -53,6 +53,7 @@
 
 
 
+
 \RequirePackage{pgfopts}
 \makeatletter
 \pgfkeys{
@@ -95,9 +96,9 @@
 \RequirePackage[inline]{enumitem} % for lists in crumbs
 \RequirePackage{crumbs} % for crumbs
 
-\newcommand\pptMiddle[1]{%
-  \vspace*{\fill}#1\vspace*{\fill}%
-}
+\newenvironment{pptMiddle}
+  {\vspace*{\fill}}
+  {\vspace*{\fill}}
 
 \newcommand\pptBanner[2][green]{%
   \par%
@@ -108,11 +109,11 @@
 
 \newcommand\pptChapter[2][]{%
   \crumbection[#1]{#2}%
-  \pptMiddle{%
+  \begin{pptMiddle}%
     {\large\ttfamily Chapter \#\the\value{section}:}%
     \newline%
     \rotatebox{1}{\pptBanner[blue]{\LARGE#2}}%
-  }%
+  \end{pptMiddle}%
 }
 
 \newcommand\pptSection[2][]{%
@@ -210,7 +211,7 @@
 }
 
 \newcommand\pptThought[1]{%
-  \pptMiddle{%
+  \begin{pptMiddle}%
     \tikz{%
       \node [inner sep=18pt] (z) {%
         \begin{varwidth}{0.8\textwidth}
@@ -220,7 +221,7 @@
       };
       \path [draw=green,line width=8pt] (z.north west) -- (z.south west);
     }%
-  }%
+  \end{pptMiddle}%
 }
 
 \newcommand\pptSnippet[2][\small]{%



More information about the tex-live-commits mailing list.