summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/menukeys/menukeys.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/menukeys/menukeys.dtx')
-rw-r--r--macros/latex/contrib/menukeys/menukeys.dtx64
1 files changed, 50 insertions, 14 deletions
diff --git a/macros/latex/contrib/menukeys/menukeys.dtx b/macros/latex/contrib/menukeys/menukeys.dtx
index d7fcb2684c..aab8d306bf 100644
--- a/macros/latex/contrib/menukeys/menukeys.dtx
+++ b/macros/latex/contrib/menukeys/menukeys.dtx
@@ -9,9 +9,14 @@
%%
%% https://www.latex-project.org/lppl.txt
%%
-%<package>\NeedsTeXFormat{LaTeX2e}[2009/01/01]
-%<package>\ProvidesPackage{menukeys}
-%<package> [2020/12/19 v1.6.1 -- A package to format menus, paths and shortcuts]
+%<pkg>\NeedsTeXFormat{LaTeX2e}[2009/01/01]
+%<rbk>\providecommand\DeclareRelease[3]{}
+%<rbk>\providecommand\DeclareCurrentRelease[2]{}
+%<rbk>\DeclareRelease{v1.6.1}{2020-12-19}{menukeys-2020-12-19.sty}
+%<rbk>\DeclareCurrentRelease{v1.6.2}{2022-07-01}
+%<pkg>\ProvidesPackage{menukeys}
+%<cur> [2022/07/01 v1.6.2 -- A package to format menus, paths and shortcuts]
+%<161> [2020/12/19 v1.6.1 -- A package to format menus, paths and shortcuts]
%
%<*driver>
\documentclass{ltxdoc}
@@ -34,6 +39,15 @@
urlcolor=darkred,
bookmarksopen=true,
bookmarksdepth=10,
+ pdftitle={The menukeys package},
+ pdfsubject={%
+ Format menu sequences, paths and keystrokes from lists.%
+ },
+ pdfauthor={%
+ Tobias Weh (mail@tobiw.de), Jonathan P. Spratte
+ (jspratte@yahoo.de)%
+ },
+ pdfkeywords={The menukeys package, LaTeX}
}{hyperref}
\PassOptionsToPackage{hyphens}{url}
\usepackage{hypdoc}
@@ -211,7 +225,7 @@
% \changes{v1.2}{2013/07/23}{Added \cs{SPACE} and \cs{spacename}}
% \changes{v1.2}{2013/07/23}{Added \cs{normalsize} before symbol definitions to make
% the \texttt{ex} unit available}
-% \changes{v1.2a}{2013/09/10}{Replaced obsolete \cs{tikzsytle}}
+% \changes{v1.2a}{2013/09/10}{Replaced obsolete \cs{tikzstyle}}
% \changes{v1.2a}{2013/09/10}{Added braces to the \cs{tikz} macro since the parser
% seems to crash with \pkg{babel}'s french option otherwise.}
% \changes{v1.3}{2014/03/10}{Improved key symbols.}
@@ -230,7 +244,7 @@
% \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
% \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
% \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
-% \DoNotIndex{\@xxpt,\@xxvpt,\\,\,\addpenalty,\addtolength,\addvspace}
+% \DoNotIndex{\@xxpt,\@xxvpt,\\,\,,\addpenalty,\addtolength,\addvspace}
% \DoNotIndex{\advance,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
% \DoNotIndex{\bullet}
% \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
@@ -520,11 +534,11 @@
% \item [sep] is the code executed between the lists elements, e.g. some
% space or a symbol.
% \item [mid] is the style for all elements between the first and the
-% last one. It has to be a \TikZ sytle.
+% last one. It has to be a \TikZ style.
% \item [last] is the style for the last list element.
-% It has to be a \TikZ sytle.
+% It has to be a \TikZ style.
% \item [single] this style is used if the list contains only one element.
-% It has to be a \TikZ sytle.
+% It has to be a \TikZ style.
% \item [post] is the code which is executed after a menu macro.
% \item [theme] is a color theme (see section~\ref{colors}).
% \end{description}
@@ -760,9 +774,12 @@
% If you find something to add to this list please send me an e-mail or report a
% bug on GitHub (\url{https://github.com/tweh/menukeys}).
%
-% \StopEventually{\clearpage\PrintChanges\PrintIndex}
+% \StopEventually{\clearpage\PrintChanges\clearpage\PrintIndex}
%
% \section{Implementation}
+% \begin{macrocode}
+%<*pkg>
+% \end{macrocode}
% \subsection{Required packages}
% \changes{v1.6}{2020/10/27}{Don't load \pkg{catoptions}}
% Load the required packages
@@ -1107,12 +1124,12 @@
}
% \end{macrocode}
% \end{macro}
-% \begin{macro}{\tw@declare@sytle}\begin{macro}{\tw@declare@sytle@extra@args}
+% \begin{macro}{\tw@declare@style}\begin{macro}{\tw@declare@style@extra@args}
% The next step is to create the extended command. This command must have
% ten arguments (including the star) so we have to define a helping macro
% to grab the last two macros.
% \begin{macrocode}
-\DeclareDocumentCommand{\tw@declare@sytle@extra@args}{%
+\DeclareDocumentCommand{\tw@declare@style@extra@args}{%
O{\tw@default@post} m
}{%
\csdef{tw@style@\tw@current@style @post}{#1}%
@@ -1146,7 +1163,7 @@
\tikz[baseline=(tw@node.base)]{%
\node(tw@node)[#7]{\strut\CurrentMenuElement};}}%
}%
- \tw@declare@sytle@extra@args%
+ \tw@declare@style@extra@args%
}
% \end{macrocode}
% \end{macro}\end{macro}
@@ -1430,7 +1447,15 @@
\hspace{0.2ex}\hspace{0.1em plus 0.1em minus 0.05em}%
\textcolor{\usemenucolor{b}}{\raisebox{0.25ex}{\sffamily\relsize{-2}+}}%
\hspace{0.1em plus 0.1em minus 0.05em}%
-][\hspace{0.2ex}]{gray}
+% \end{macrocode}
+% \changes{v1.6.2}{2022/07/01}{changed \cs{hspace} to \cs{kern}}
+% \begin{macrocode}
+%</pkg>
+%<cur>][\kern0.2ex\relax]{gray}
+%<161>][\hspace{0.2ex}]{gray}
+%<*pkg>
+% \end{macrocode}
+% \begin{macrocode}
\tikzset{tw@angularkeys@base/.style={%
tw@set@tikz@colors,
@@ -1472,7 +1497,15 @@
\hspace{0.2ex}\hspace{0.1em plus 0.1em minus 0.05em}%
\textcolor{\usemenucolor{b}}{\raisebox{0.25ex}{\sffamily\relsize{-2}+}}%
\hspace{0.1em plus 0.1em minus 0.05em}%
-][\hspace{0.2ex}]{gray}
+% \end{macrocode}
+% \changes{v1.6.2}{2022/07/01}{changed \cs{hspace} to \cs{kern}}
+% \begin{macrocode}
+%</pkg>
+%<cur>][\kern0.2ex\relax]{gray}
+%<161>][\hspace{0.2ex}]{gray}
+%<*pkg>
+% \end{macrocode}
+% \begin{macrocode}
\tikzset{tw@typewriterkeys@base/.style={%
tw@set@tikz@colors,
@@ -2110,6 +2143,9 @@
\fi
% \end{macrocode}
%
+% \begin{macrocode}
+%</pkg>
+% \end{macrocode}
%
% \Finale
\endinput