diff options
author | Norbert Preining <norbert@preining.info> | 2022-09-13 03:02:52 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-09-13 03:02:52 +0000 |
commit | b3ff180caefe0d147e1e71939b35059f4efc1c9b (patch) | |
tree | 539f7315876e0d69e897f68d58574f23095dea34 /macros/latex/contrib/ppt-slides | |
parent | c5e5a8fcbf578d20f94accb7b738cbac1e0c4b2a (diff) |
CTAN sync 202209130302
Diffstat (limited to 'macros/latex/contrib/ppt-slides')
-rw-r--r-- | macros/latex/contrib/ppt-slides/DEPENDS.txt | 4 | ||||
-rw-r--r-- | macros/latex/contrib/ppt-slides/README.md | 3 | ||||
-rw-r--r-- | macros/latex/contrib/ppt-slides/ppt-slides.pdf | bin | 227781 -> 227754 bytes | |||
-rw-r--r-- | macros/latex/contrib/ppt-slides/ppt-slides.sty | 24 | ||||
-rw-r--r-- | macros/latex/contrib/ppt-slides/ppt-slides.tex | 2 | ||||
-rw-r--r-- | macros/latex/contrib/ppt-slides/ppt-templates/ppt-9x6.tex | 28 |
6 files changed, 25 insertions, 36 deletions
diff --git a/macros/latex/contrib/ppt-slides/DEPENDS.txt b/macros/latex/contrib/ppt-slides/DEPENDS.txt index 32dfe012e6..db184dd263 100644 --- a/macros/latex/contrib/ppt-slides/DEPENDS.txt +++ b/macros/latex/contrib/ppt-slides/DEPENDS.txt @@ -1,5 +1,7 @@ hard pgfopts hard xcolor +hard ifthen +hard href-ul hard pagecolor hard varwidth hard qrcode @@ -8,6 +10,4 @@ hard tikzpagenodes hard enumitem hard crumbs hard tabularx -hard ifthen hard seqsplit -hard hyperref diff --git a/macros/latex/contrib/ppt-slides/README.md b/macros/latex/contrib/ppt-slides/README.md index 91d4058c89..9543ebc462 100644 --- a/macros/latex/contrib/ppt-slides/README.md +++ b/macros/latex/contrib/ppt-slides/README.md @@ -1,4 +1,5 @@ [![make](https://github.com/yegor256/ppt-slides/actions/workflows/latexmk.yml/badge.svg)](https://github.com/yegor256/ppt-slides/actions/workflows/latexmk.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) This LaTeX package helps you create slide decks as good looking @@ -14,7 +15,7 @@ and then use in preamble: ```tex \documentclass{article} \usepackage{clicks} -\usepackage[template=dark]{ppt-slides} +\usepackage[template,scheme=dark]{ppt-slides} \begin{document} \plick{\pptBanner{This Is My First Slide}} \plick{The slide tells you an interesting story...} diff --git a/macros/latex/contrib/ppt-slides/ppt-slides.pdf b/macros/latex/contrib/ppt-slides/ppt-slides.pdf Binary files differindex 42df3d6dff..f845668cc9 100644 --- a/macros/latex/contrib/ppt-slides/ppt-slides.pdf +++ b/macros/latex/contrib/ppt-slides/ppt-slides.pdf diff --git a/macros/latex/contrib/ppt-slides/ppt-slides.sty b/macros/latex/contrib/ppt-slides/ppt-slides.sty index 6b05d25303..026ee0abce 100644 --- a/macros/latex/contrib/ppt-slides/ppt-slides.sty +++ b/macros/latex/contrib/ppt-slides/ppt-slides.sty @@ -21,7 +21,7 @@ % SOFTWARE. \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ppt-slides}[2022/09/11 0.0.1 Slide Decks à la Power Point] +\ProvidesPackage{ppt-slides}[2022/09/12 0.1.2 Slide Decks à la Power Point] \RequirePackage{pgfopts} \makeatletter @@ -51,13 +51,15 @@ \message{^^Jppt: No color scheme is loaded, because 'scheme' option is not specified} \fi\makeatother -\RequirePackage{pagecolor} -\RequirePackage{varwidth} -\RequirePackage{qrcode} -\RequirePackage{tikz} -\RequirePackage{tikzpagenodes} -\RequirePackage[inline]{enumitem} -\RequirePackage{crumbs} +\RequirePackage{ifthen} % for if/then/else in LaTeX +\RequirePackage{href-ul} % for nice hyperlinks +\RequirePackage{pagecolor} % to change page color +\RequirePackage{varwidth} % for pptWide +\RequirePackage{qrcode} % to print QR codes +\RequirePackage{tikz} % for drawings in TOC +\RequirePackage{tikzpagenodes} % for pptPin +\RequirePackage[inline]{enumitem} % for lists in crumbs +\RequirePackage{crumbs} % for crumbs \newcommand\pptMiddle[1]{% \vspace*{\fill}#1\vspace*{\fill}% @@ -117,12 +119,12 @@ }% \begin{@empty}% \renewcommand\crumb[2]{% - \ifx\pptTOC\empty\else\click[0]\fi + \ifx\pptTOC\empty\else\ifdefined\click\click[0]\fi\fi \gappto\pptTOC{\item ##2} } \crumbs \end{@empty}% - \flush[1]% + \ifdefined\flush\flush[1]\fi% } \RequirePackage{tabularx} @@ -151,7 +153,6 @@ }% } -\RequirePackage{ifthen} \newcommand\pptPin[2][right]{% \begin{tikzpicture}[remember picture,overlay]% \ifthenelse{\equal{#1}{left}} @@ -203,7 +204,6 @@ } \RequirePackage{seqsplit} -\RequirePackage{hyperref} \newcommand\pptPinQR[2][right]{% \pptPin[#1]{% \begin{minipage}{1.4in}% diff --git a/macros/latex/contrib/ppt-slides/ppt-slides.tex b/macros/latex/contrib/ppt-slides/ppt-slides.tex index f126acfcff..13b771cc75 100644 --- a/macros/latex/contrib/ppt-slides/ppt-slides.tex +++ b/macros/latex/contrib/ppt-slides/ppt-slides.tex @@ -29,7 +29,7 @@ \usepackage{textcomp} \title{\LaTeX{} Package for Slide Decks \`a la PowerPoint\texttrademark} \author{Yegor Bugayenko} -\date{0.0.1 2022/09/11} +\date{0.1.2 2022/09/12} \pptLeft{\thetitle} \pptRight{\href{https://github.com/yegor256}{@yegor256}} diff --git a/macros/latex/contrib/ppt-slides/ppt-templates/ppt-9x6.tex b/macros/latex/contrib/ppt-slides/ppt-templates/ppt-9x6.tex index 3466d8d85f..d80db063fd 100644 --- a/macros/latex/contrib/ppt-slides/ppt-templates/ppt-9x6.tex +++ b/macros/latex/contrib/ppt-slides/ppt-templates/ppt-9x6.tex @@ -24,26 +24,15 @@ \geometry{paperwidth=16in, paperheight=9in, left=4in, right=2in, top=1.5in, bottom=1.5in} \RequirePackage[absolute]{textpos} \TPGrid{16}{16} - -\RequirePackage[tt=false,type1=true]{libertine} -\RequirePackage{microtype} -\RequirePackage{anyfontsize} -\RequirePackage{multicol} +\RequirePackage[tt=false,type1=true]{libertine} % the font we use +\RequirePackage{microtype} % just to make rendering smooth +\RequirePackage{anyfontsize} % to support all sizes +\RequirePackage{multicol} % for pptWide environment \RequirePackage[fontsize=24pt]{fontsize} % to make fonts larger -\RequirePackage{changepage} -\RequirePackage{soul} -\RequirePackage{href-ul} - -\RequirePackage{tikz} - \usetikzlibrary{arrows} - \usetikzlibrary{decorations} - \usetikzlibrary{decorations.pathmorphing} - \usetikzlibrary{intersections} - \usetikzlibrary{positioning} - \usetikzlibrary{backgrounds} - \usetikzlibrary{calc} - \usetikzlibrary{shapes.arrows} -\RequirePackage{tikzpagenodes} +\RequirePackage{changepage} % to use 'adjustwidth' environment in pptWide +\RequirePackage{soul} % for underscores in crumbs +\RequirePackage{tikz} % for drawing circles +\RequirePackage{lastpage} % to count pages and show total \RequirePackage{crumbs} \renewcommand\crumb[2]{% @@ -80,7 +69,6 @@ \end{textblock}% \fi } - \RequirePackage{lastpage} \fancyhead[R]{% \ifnum\value{page}=1\else% \begin{textblock}{4}[1,0](15,1)% |