texlive[50532] Master/texmf-dist: dtxdescribe (22mar19)

commits+karl at tug.org commits+karl at tug.org
Fri Mar 22 21:48:46 CET 2019


Revision: 50532
          http://tug.org/svn/texlive?view=revision&revision=50532
Author:   karl
Date:     2019-03-22 21:48:45 +0100 (Fri, 22 Mar 2019)
Log Message:
-----------
dtxdescribe (22mar19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/dtxdescribe/README.txt
    trunk/Master/texmf-dist/doc/latex/dtxdescribe/dtxdescribe.pdf
    trunk/Master/texmf-dist/source/latex/dtxdescribe/dtxdescribe.dtx
    trunk/Master/texmf-dist/tex/latex/dtxdescribe/dtxdescribe.sty

Modified: trunk/Master/texmf-dist/doc/latex/dtxdescribe/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/dtxdescribe/README.txt	2019-03-22 20:48:29 UTC (rev 50531)
+++ trunk/Master/texmf-dist/doc/latex/dtxdescribe/README.txt	2019-03-22 20:48:45 UTC (rev 50532)
@@ -1,7 +1,7 @@
 The LaTeX dtxdescribe package
 Describe additional object types in dtx source files.
 
-v1.00 — 2019/01/11
+v1.01 — 2019/03/22
 Copyright 2016–2019 Brian Dunn — www.BDTechConcepts.com
 LaTeX Project Public License, version 1.3
 

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

Modified: trunk/Master/texmf-dist/source/latex/dtxdescribe/dtxdescribe.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/dtxdescribe/dtxdescribe.dtx	2019-03-22 20:48:29 UTC (rev 50531)
+++ trunk/Master/texmf-dist/source/latex/dtxdescribe/dtxdescribe.dtx	2019-03-22 20:48:45 UTC (rev 50532)
@@ -12,12 +12,12 @@
 % version 2005/12/01 or later.
 %
 % \fi
-
 %
+%
 % \iffalse
 %<package>\NeedsTeXFormat{LaTeX2e}
 %<package>\ProvidesPackage{dtxdescribe}
-%<package>    [2019/01/11 v1.00 Describe additional object types in dtx source files.]
+%<package>    [2019/03/22 v1.01 Describe additional object types in dtx source files.]
 %
 %<*driver>
 \documentclass{ltxdoc}
@@ -132,25 +132,7 @@
 Keywords={LaTeX, dtx, source, DescribeMacro}%
 }}
 
-\pdfstringdefDisableCommands{
-\def\quad{ }
-\def\\{ }
-\def\pkg#1{#1}
-\def\cs#1{\textbackslash#1}
-\def\env#1{#1}
-\def\,{ }
-\def\prog#1{#1}
-\def\LuaLaTeX{LuaLaTeX}
-\def\XeLaTeX{XeLaTeX}
-\def\TeX{TeX}
-\def\LaTeX{LaTeX}
-\def\Dash{ --- }
-\def\dash{ -- }
-\def\element#1{#1}
-\def\attribute#1{#1}
-}
 
-
 \usepackage{cleveref}
 
 
@@ -171,7 +153,7 @@
 %<*package>
 % \fi
 %
-% \CheckSum{0}
+% \CheckSum{978}
 %
 % \CharacterTable
 % {Upper-case     \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -192,6 +174,7 @@
 % \changes{v0.10}{2016/12/08}{\ 2016/12/08 Initial ver}
 % \changes{v0.11}{2018/03/30}{\ 2018/03/30}
 % \changes{v1.00}{2019/01/11}{\ 2019/01/11}
+% \changes{v1.01}{2019/03/22}{\ 2019/03/22}
 
 
 
@@ -1285,8 +1268,67 @@
 %    \end{macrocode}
 
 
+% \DescribePackage{hyperref}
+% If \pkg{hyperref} is loaded, disable some macros in \PDF\ bookmarks:
+% \margintag{\PDF\ bookmarks}
+% \changes{v1.01}{2019/01/20}{Sanitize \PDF\ bookmarks.}
+%    \begin{macrocode}
+\AtBeginDocument{
+\pdfstringdefDisableCommands{
+\def\quad{ }
+\def\\{ }
+\def\pkg#1{#1}
+\def\ctr#1{#1}
+\def\bool#1{#1}
+\def\optn#1{#1}
+\def\env#1{#1}
+\def\cs#1{\textbackslash#1}
+\def\,{ }
+\def\LuaLaTeX{LuaLaTeX}
+\def\XeLaTeX{XeLaTeX}
+\def\TeX{TeX}
+\def\LaTeX{LaTeX}
+\def\LaTeXe{LaTeX2e}
+\def\LuaTeX{LuaTeX}
+\def\LuaLaTeX{LuaLaTeX}
+\def\XeTeX{XeTeX}
+\def\AmS{AMS}
+\def\Dash{ --- }
+\def\dash{ -- }
+\def\Slash{/}
+\def\prog#1{\detokenize{#1}}
+\def\progcode#1{#1}
+\def\filenm#1{\detokenize{#1}}
+\def\brand#1{#1}
+\def\acro#1{#1}
+\def\HTML{HTML}
+\def\ODT{ODT}
+\def\SVG{SVG}
+\def\PNG{PNG}
+\def\GIF{GIF}
+\def\JPG{JPG}
+\def\EPS{EPS}
+\def\PDF{PDF}
+\def\DVI{DVI}
+\def\UTF{UTF}
+\def\URL{URL}
+\def\element#1{#1}
+\def\attribute#1{#1}
+\def\HTML{HTML}
+\def\HTMLfive{HTML5}
+\def\CSS{CSS}
+\def\CSSthree{CSS3}
+\def\EPUB{EPUB}
+\def\TOC{TOC}
+\def\LOF{LOF}
+\def\LOT{LOT}
+}
+}
+%    \end{macrocode}
 
 
+
+
 % ^^A Several versions of the \warningsign symbol:
 
 % ^^A This version relies on the presence of the fourier font:
@@ -1387,6 +1429,7 @@
 %
 % The |class| is used to sub-categories keys into their key/value groups.
 %
+% \changes{v1.01}{2019/01/20}{Put margin tag class in brackets.}
 %    \begin{macrocode}
 \newcommand*{\DTXD at margintag}[3]{%
 \@ifundefined{@captype}{% not float?
@@ -1394,7 +1437,7 @@
 \marginpar{%
 \DTXD at printtype{%
 #3% margintag
-\ifblank{#1}{}{ #1}% class
+\ifblank{#1}{}{ [#1]}% class
 }% Desc at Type
 \texttt{#2}% name
 }% marginpar
@@ -1532,6 +1575,7 @@
 % Creates the margin tag and index entries where name is a \cs{macro}.
 %
 % \changes{v1.00}{2019/01/09}{Sans tag font.}
+% \changes{v1.01}{2019/01/20}{Put margin tag class in brackets.}
 %    \begin{macrocode}
 \newcommand*{\DTXD at cmdmargintagindex}[5]{%
 \@bsphack%
@@ -1543,7 +1587,7 @@
 \marginpar{%
 \DTXD at printtype{%
 #3% margin tag
-\ifblank{#1}{}{ #1}% class
+\ifblank{#1}{}{ [#1]}% class
 }% Desc at Type
 \cmd{#2}% name
 }% marginpar
@@ -1590,6 +1634,7 @@
 % Redefined to allow hyperlinked index entries and an optional class:
 %
 % \changes{v1.00}{2019/01/09}{Sans tag font.}
+% \changes{v1.01}{2019/01/20}{Put margin tag class in brackets.}
 %    \begin{macrocode}
 \renewcommand*{\DescribeMacro}[2][]{%
 \@bsphack%
@@ -1600,7 +1645,7 @@
 \leavevmode%
 \marginpar{%
 \raggedleft%
-\ifblank{#1}{}{{\scriptsize\textsf{#1}} }% class
+\ifblank{#1}{}{{\scriptsize\textsf{[#1]}} }% class
 \cmd{#2}% name
 }% marginpar
 }{}% not float?
@@ -1868,11 +1913,17 @@
 %
 % May be used to describe an arbitrary piece of code.
 % Creates a margin tag and index entries with \cs{ttfamily}.
+%
+% \changes{v1.01}{2019/01/20}{Put margin tag class in brackets.}
 %    \begin{macrocode}
 \newcommand*{\DescribeObject}[2][]{%
 \@ifundefined{@captype}{% not float?
 \@bsphack%
-\leavevmode\marginpar{\raggedleft{\scriptsize#1} \texttt{#2}}%
+\leavevmode%
+\marginpar{%
+    \ifblank{#1}{}{\raggedleft{\scriptsize[#1]} }
+    \texttt{#2}%
+}%
 }{}% not float?
 \ifblank{#1}%
 {\begingroup%
@@ -1903,11 +1954,16 @@
 %
 % May be used to describe an arbitrary non-programming object.
 % Creates a margin tag and index entries with roman type.
+% \changes{v1.01}{2019/01/20}{Put margin tag class in brackets.}
 %    \begin{macrocode}
 \newcommand*{\DescribeOther}[2][]{%
 \@ifundefined{@captype}{% not float?
 \@bsphack%
-\leavevmode\marginpar{\raggedleft{\scriptsize#1} #2}%
+\leavevmode%
+\marginpar{%
+    \ifblank{#1}{}{\raggedleft{\scriptsize[#1]} }%
+    #2%
+}%
 }{}% not float?
 \ifblank{#1}%
 {%
@@ -2447,12 +2503,13 @@
 % To typeset a block of source code, allowing direct formatting.
 %
 % \changes{v1.00}{2019/01/09}{Added.}
+% \changes{v1.01}{2019/01/20}{Reduced width.}
 %    \begin{macrocode}
 \newenvironment{sourcedisplay}
 {
     \leavevmode
     \par
-    \fqquad\minipage{\linewidth-2em}
+    \fqquad\minipage{\linewidth-4em}
     \ttfamily
 }
 {%
@@ -2467,12 +2524,13 @@
 % To typeset a user interface display.
 %
 % \changes{v1.00}{2019/01/09}{Added.}
+% \changes{v1.01}{2019/01/20}{Reduced width.}
 %    \begin{macrocode}
 \newenvironment{UIdisplay}
 {
     \leavevmode
     \par
-    \fqquad\minipage{\linewidth-2em}
+    \fqquad\minipage{\linewidth-4em}
     \sffamily\bfseries
 }
 {

Modified: trunk/Master/texmf-dist/tex/latex/dtxdescribe/dtxdescribe.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/dtxdescribe/dtxdescribe.sty	2019-03-22 20:48:29 UTC (rev 50531)
+++ trunk/Master/texmf-dist/tex/latex/dtxdescribe/dtxdescribe.sty	2019-03-22 20:48:45 UTC (rev 50532)
@@ -16,10 +16,9 @@
 %% and version 1.3 or later is part of all distributions of LaTeX
 %% version 2005/12/01 or later.
 
-
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{dtxdescribe}
-    [2019/01/11 v1.00 Describe additional object types in dtx source files.]
+    [2019/03/22 v1.01 Describe additional object types in dtx source files.]
 
 
 
@@ -112,9 +111,61 @@
 
 \RequirePackage{xstring}
 
+\AtBeginDocument{
+\pdfstringdefDisableCommands{
+\def\quad{ }
+\def\\{ }
+\def\pkg#1{#1}
+\def\ctr#1{#1}
+\def\bool#1{#1}
+\def\optn#1{#1}
+\def\env#1{#1}
+\def\cs#1{\textbackslash#1}
+\def\,{ }
+\def\LuaLaTeX{LuaLaTeX}
+\def\XeLaTeX{XeLaTeX}
+\def\TeX{TeX}
+\def\LaTeX{LaTeX}
+\def\LaTeXe{LaTeX2e}
+\def\LuaTeX{LuaTeX}
+\def\LuaLaTeX{LuaLaTeX}
+\def\XeTeX{XeTeX}
+\def\AmS{AMS}
+\def\Dash{ --- }
+\def\dash{ -- }
+\def\Slash{/}
+\def\prog#1{\detokenize{#1}}
+\def\progcode#1{#1}
+\def\filenm#1{\detokenize{#1}}
+\def\brand#1{#1}
+\def\acro#1{#1}
+\def\HTML{HTML}
+\def\ODT{ODT}
+\def\SVG{SVG}
+\def\PNG{PNG}
+\def\GIF{GIF}
+\def\JPG{JPG}
+\def\EPS{EPS}
+\def\PDF{PDF}
+\def\DVI{DVI}
+\def\UTF{UTF}
+\def\URL{URL}
+\def\element#1{#1}
+\def\attribute#1{#1}
+\def\HTML{HTML}
+\def\HTMLfive{HTML5}
+\def\CSS{CSS}
+\def\CSSthree{CSS3}
+\def\EPUB{EPUB}
+\def\TOC{TOC}
+\def\LOF{LOF}
+\def\LOT{LOT}
+}
+}
 
 
 
+
 \RequirePackage{pict2e}
 \setlength{\unitlength}{1pt}
 
@@ -152,7 +203,7 @@
 \marginpar{%
 \DTXD at printtype{%
 #3% margintag
-\ifblank{#1}{}{ #1}% class
+\ifblank{#1}{}{ [#1]}% class
 }% Desc at Type
 \texttt{#2}% name
 }% marginpar
@@ -204,7 +255,7 @@
 \marginpar{%
 \DTXD at printtype{%
 #3% margin tag
-\ifblank{#1}{}{ #1}% class
+\ifblank{#1}{}{ [#1]}% class
 }% Desc at Type
 \cmd{#2}% name
 }% marginpar
@@ -232,7 +283,7 @@
 \leavevmode%
 \marginpar{%
 \raggedleft%
-\ifblank{#1}{}{{\scriptsize\textsf{#1}} }% class
+\ifblank{#1}{}{{\scriptsize\textsf{[#1]}} }% class
 \cmd{#2}% name
 }% marginpar
 }{}% not float?
@@ -318,7 +369,11 @@
 \newcommand*{\DescribeObject}[2][]{%
 \@ifundefined{@captype}{% not float?
 \@bsphack%
-\leavevmode\marginpar{\raggedleft{\scriptsize#1} \texttt{#2}}%
+\leavevmode%
+\marginpar{%
+    \ifblank{#1}{}{\raggedleft{\scriptsize[#1]} }
+    \texttt{#2}%
+}%
 }{}% not float?
 \ifblank{#1}%
 {\begingroup%
@@ -344,7 +399,11 @@
 \newcommand*{\DescribeOther}[2][]{%
 \@ifundefined{@captype}{% not float?
 \@bsphack%
-\leavevmode\marginpar{\raggedleft{\scriptsize#1} #2}%
+\leavevmode%
+\marginpar{%
+    \ifblank{#1}{}{\raggedleft{\scriptsize[#1]} }%
+    #2%
+}%
 }{}% not float?
 \ifblank{#1}%
 {%
@@ -597,7 +656,7 @@
 {
     \leavevmode
     \par
-    \fqquad\minipage{\linewidth-2em}
+    \fqquad\minipage{\linewidth-4em}
     \ttfamily
 }
 {%
@@ -609,7 +668,7 @@
 {
     \leavevmode
     \par
-    \fqquad\minipage{\linewidth-2em}
+    \fqquad\minipage{\linewidth-4em}
     \sffamily\bfseries
 }
 {



More information about the tex-live-commits mailing list