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.dtx93
1 files changed, 74 insertions, 19 deletions
diff --git a/macros/latex/contrib/ppt-slides/ppt-slides.dtx b/macros/latex/contrib/ppt-slides/ppt-slides.dtx
index 54abab106f..9e14a1170d 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-2023 Yegor Bugayenko
+% Copyright (c) 2021-2024 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>
-[2023-11-08 0.3.0 Slide Decks a la Power Point]
+[2024-01-16 0.3.1 Slide Decks a la Power Point]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -410,18 +410,77 @@
\fi\makeatother
% \end{macrocode}
-% Then, we include a few packages:
+% Then, we include \href{https://ctan.org/pkg/ifthen}{ifthen}
+% in order to enable |if/then/else| commands:
% \begin{macrocode}
-\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
- \usetikzlibrary{calc} % for positioning of pinned boxes
-\RequirePackage{tikzpagenodes} % for pptPin
-\RequirePackage[inline]{enumitem} % for lists in crumbs
-\RequirePackage{crumbs} % for crumbs
+\RequirePackage{ifthen}
+% \end{macrocode}
+
+% Then, we include \href{https://ctan.org/pkg/href-ul}{href-ul}
+% in order to enable underlined hyperlinks:
+% \begin{macrocode}
+\RequirePackage{href-ul}
+% \end{macrocode}
+
+% Then, we include \href{https://ctan.org/pkg/pagecolor}{pagecolor}
+% in order to make it possible to change the background color of a page:
+% \begin{macrocode}
+\RequirePackage{pagecolor}
+% \end{macrocode}
+
+% Then, we include \href{https://ctan.org/pkg/varwidth}{varwidth}
+% in order to change the width of the page, inside |pptWide|:
+% \begin{macrocode}
+\RequirePackage{varwidth}
+% \end{macrocode}
+
+% Then, we include \href{https://ctan.org/pkg/qrcode}{qrcode}
+% in order to render QR codes:
+% \begin{macrocode}
+\RequirePackage{qrcode}
+% \end{macrocode}
+
+% Then, we include \href{https://ctan.org/pkg/tikz}{tikz}
+% in order to position elements on the page, especially in the Table of Contents:
+% \begin{macrocode}
+\RequirePackage{tikz}
+% \end{macrocode}
+
+% Then, we include \href{https://ctan.org/pkg/tikzpagenodes}{tikzpagenodes}
+% in order to pin a block in |\pptPin|:
+% \begin{macrocode}
+\RequirePackage{tikzpagenodes}
+% \end{macrocode}
+
+% Then, we include \href{https://ctan.org/pkg/enumitem}{enumitem}
+% in order to render inline lists in crumbs:
+% \begin{macrocode}
+\RequirePackage[inline]{enumitem}
+% \end{macrocode}
+
+% Then, we include \href{https://ctan.org/pkg/crumbs}{crumbs}
+% in order to show top-page menus:
+% \begin{macrocode}
+\RequirePackage{crumbs}
+% \end{macrocode}
+
+% Then, we include \href{https://ctan.org/pkg/calc}{calc}
+% in order to calculate positions of elements more precisely:
+% \changes{0.3.1}{2024/01/13}{The \texttt{calc} package added.}
+% \begin{macrocode}
+\RequirePackage{calc}
+% \end{macrocode}
+
+% Then, we include \href{https://ctan.org/pkg/tabularx}{tabularx}
+% in order to render |\pptQuote|:
+% \begin{macrocode}
+\RequirePackage{tabularx}
+% \end{macrocode}
+
+% Then, we include \href{https://ctan.org/pkg/seqsplit}{seqsplit}
+% in order to split long links:
+% \begin{macrocode}
+\RequirePackage{seqsplit}
% \end{macrocode}
% \begin{macro}{\pptMiddle}
@@ -536,7 +595,6 @@
% Then, we define the |\pptQuote| command, with one optional and three mandatory arguments:
% \changes{0.3.0}{2023/11/08}{The \texttt{\char`\\pptQuote} command has got an optional parameter, where the name of the person on the photo can be specified.}
% \begin{macrocode}
-\RequirePackage{tabularx}
\newcommand\pptQuote[4][]{%
\begin{tabularx}{\columnwidth}{c>{\raggedright\arraybackslash}X}%
\raisebox{\dimexpr-\height+\ht\strutbox}{
@@ -654,7 +712,6 @@
% \begin{macro}{\pptPinQR}
% Then, we define the |\pptPinQR| command:
% \begin{macrocode}
-\RequirePackage{seqsplit}
\newcommand\pptPinQR[2][right]{%
\pptPin[#1]{%
\begin{minipage}{1.4in}%
@@ -682,14 +739,12 @@
% \end{macrocode}
% \end{macro}
+% \begin{macrocode}
\endinput
+% \end{macrocode}
% \Finale
-% \clearpage
-% \printbibliography
-% \clearpage
-
% \PrintChanges
% \clearpage
% \PrintIndex