texlive[46026] Master/texmf-dist: macros2e (9dec17)

commits+karl at tug.org commits+karl at tug.org
Sun Dec 10 01:36:39 CET 2017


Revision: 46026
          http://tug.org/svn/texlive?view=revision&revision=46026
Author:   karl
Date:     2017-12-10 01:36:39 +0100 (Sun, 10 Dec 2017)
Log Message:
-----------
macros2e (9dec17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/macros2e/macros2e.pdf
    trunk/Master/texmf-dist/doc/latex/macros2e/macros2e.tex

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/macros2e/Makefile
    trunk/Master/texmf-dist/doc/latex/macros2e/README
    trunk/Master/texmf-dist/tex/latex/macros2e/
    trunk/Master/texmf-dist/tex/latex/macros2e/extlabels.sty

Added: trunk/Master/texmf-dist/doc/latex/macros2e/Makefile
===================================================================
--- trunk/Master/texmf-dist/doc/latex/macros2e/Makefile	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/macros2e/Makefile	2017-12-10 00:36:39 UTC (rev 46026)
@@ -0,0 +1,15 @@
+.PHONY: doc clean
+
+all: doc
+
+doc: macros2e.pdf
+
+macros2e.pdf: macros2e.tex
+	pdflatex macros2e
+	pdflatex macros2e
+	pdflatex macros2e
+
+clean:
+	${RM} macros2e.pdf macros2e.aux macros2e.log macros2e.toc macros2e.out
+
+


Property changes on: trunk/Master/texmf-dist/doc/latex/macros2e/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/macros2e/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/macros2e/README	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/macros2e/README	2017-12-10 00:36:39 UTC (rev 46026)
@@ -0,0 +1,13 @@
+
+List of internal LATEX2e Macros useful to Package Authors
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Copyright (C) 2011-2017 by Martin Scharrer <martin at scharrer-online.de>
+Code Repository: https://bitbucket.org/martin_scharrer/macros2e
+License: LPPL v1.3c or later
+
+This document lists the internal macros defined by the LaTeX2e base files
+which can be also useful to package authors.  The macros are hyper-linked to
+their description in source2e. For this to work both PDFs must be inside the
+same directory. This document is not yet complete in content and format and
+may miss some macros.
+


Property changes on: trunk/Master/texmf-dist/doc/latex/macros2e/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/macros2e/macros2e.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/macros2e/macros2e.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/macros2e/macros2e.tex	2017-12-09 14:07:09 UTC (rev 46025)
+++ trunk/Master/texmf-dist/doc/latex/macros2e/macros2e.tex	2017-12-10 00:36:39 UTC (rev 46026)
@@ -10,6 +10,7 @@
 \MakeSpecialShortVerb\qverb\"
 \AtBeginDocument{\MakeShortMacroArgs*\`}
 \AtEndDocument{\DeleteShortMacroArgs\`}
+\newcommand\Q[1]{``\texttt{#1}''}
 
 \usepackage{hyperref}
 \usepackage{xcolor}
@@ -265,7 +266,7 @@
 
 \title{List of internal \LaTeX2e Macros useful to Package Authors}
 \author{Compiled by Martin Scharrer\\\url{martin at scharrer-online.de}}
-\date{Version 0.4 -- July 23rd 2011}
+\date{Version 0.4a -- 2017/12/09}
 
 \setlength{\descindent}{0pt}
 \setlength{\parindent}{0pt}
@@ -479,9 +480,9 @@
    Macro & Description \\
    \midrule
    \Macro\@wholewidth & 
+   This |dimen| register hold the full line width (thickness) in \env{picture} environments. \\
+   \Macro\@halfwidth  &
    This |dimen| register holds the half line width (thickness) in \env{picture} environments. \\
-   \Macro\@halfwidth  &
-   This |dimen| register hold the full line width (thickness) in \env{picture} environments. \\
    \bottomrule
 \end{tabularx}
 
@@ -657,7 +658,6 @@
   \toprule
   Name   &   Description    \\
   \midrule
-   \Macro\strip at prefix & Removes everything up to and including to the next \texttt{>}. \\
    \Macro\@makeother{<letter>} & Changes the catcode of the letter to \q{other} (12). Special letters must be escaped with a backslash. \\
    \Macro\@sanitize & Changes catcodes of everything except braces to \q{other} (12).\\
    \Macro\@onelevel at sanitize<macro> & Sanitizes \meta{macro}, turns it definition into verbatim code. Resulting characters except spaces are in catcode \q{other} (12)! Uses \Macro\meaning and \Macro\strip at prefix. (With $\epsilon$-\TeX\ many applications can be replaced by \Macro\detokenize{<content>}.)  \\
@@ -694,8 +694,8 @@
   Name   &   Description    \\
   \midrule
    \Macro\@settopoint<register>   & Rounds register to whole number of points. \\
-   \Macro\rem at pt<dimension value> & Awaits a value dimension value (\MacroArgs<int>'.'<frac>'pt') as string where the "pt" is removed. If \meta{frac} is numerical equal to 0, then it and the decimal dot are removed as well. \\
-   \Macro\strip at pt<dimension>     & Expands dimension using \cs{the} and strips the "pt" using \Macro\rem at pt. \\
+   \Macro\rem at pt<dimension value> & Awaits a value dimension value (\MacroArgs<int>'.'<frac>'pt') as string where the \Q{pt} is removed. If \meta{frac} is numerical equal to 0, then it and the decimal dot are removed as well. \\
+   \Macro\strip at pt<dimension>     & Expands dimension using \cs{the} and strips the \Q{pt} using \Macro\rem at pt. \\
    \Macro\@killglue & 
    Removes (|\unskip|s) the last and then all further skips (|\lastskip|) till one with a size of zero is reached. \\
  \bottomrule
@@ -728,17 +728,17 @@
    \midrule
    \Macro\if at filesw & If false the package should not be produce or write to output files. Set to false by \cs{nofiles}.\\
    \Macro\if at partsw & \\
-   \Macro\@currdir  & Holds the current directory, e.g. "./" in an Unix OS. \\
+   \Macro\@currdir  & Holds the current directory, e.g. \Q{./} in an Unix OS. \\
    \Macro\input at path & List of input paths. Each path should be enclosed in braces with no delimiters between paths. \\
    \Macro\@filelist & The comma separated list of all files read so far. Only active if \cs{listfiles} is used in the preamble. \\
    \Macro\@inputcheck&  Input file handle to check for the existence of the file.\\
    \Macro\@unused    &  Output file handle used to reserve the standard output. Used in \Macro\typeout to write to the terminal.\\
-   \Macro\@mainaux   &  Output file handle for the main |aux| file.\\
-   \Macro\@partaux   &  Output file handle for include file |aux| files.\\
+   \Macro\@mainaux   &  Output file handle for the main \texttt{aux} file.\\
+   \Macro\@partaux   &  Output file handle for include file \texttt{aux} files.\\
    \Macro\@auxout    &  Let to \Macro\@partaux inside include files, but to \Macro\@mainaux otherwise.\\
    \Macro\@partlist  &  Holds the comma-separated list defined by \Macro\includeonly. \\
-   \Macro\@pushfilename & pushes file name, extension and current catcode of "@" onto the file stack. \\
-   \Macro\@popfilename  & pushes file name, extension and current catcode of "@" onto the file stack. \\
+   \Macro\@pushfilename & pushes file name, extension and current catcode of \Q{@} onto the file stack. \\
+   \Macro\@popfilename  & pushes file name, extension and current catcode of \Q{@} onto the file stack. \\
    \Macro\@currnamestack & file name stack.\\
    \bottomrule
 \end{tabularx}
@@ -856,7 +856,7 @@
    \Macro\@bsphack & \\
    \Macro\@esphack & Both of these macro ensure that the code between them does not insert any spaces into the document.
     The code itself should not produce any text and not change the mode (e.g.\ start or stop math mode).\\
-   \Macro\@Esphack & Variant of \cs{@esphack} which sets the |@ignore| switch to true which causes an \cs{ignorespaces}
+    \Macro\@Esphack & Variant of \cs{@esphack} which sets the \texttt{@ignore} switch to true which causes an \cs{ignorespaces}
                 after the \cs{end} of the environment.\\
    \Macro\@vbsphack & Variant of \cs{@bsphack} which ensure the invisible material is \emph{not} set in vmode. Not used by \LaTeX{} itself at the moment. \\
    \bottomrule
@@ -895,7 +895,7 @@
      \Macro\@alph{<number>} & Expands to lower case letter corresponding to the given number (1=a, 2=b, \ldots). Expands to \Macro\@ctrerr if number is larger then~26.\\
      \Macro\@Alph{<number>} & Expands to upper case letter corresponding to the given number (1=A, 2=B, \ldots). Expands to \Macro\@ctrerr if number is larger then~26.\\
     \Macro\two at digits{<number>} &
-        Returns \meta{number} (e.g.\ a |count| register) as string and ensures that it has at least two digits 
+   Returns \meta{number} (e.g.\ a \texttt{count} register) as string and ensures that it has at least two digits 
         by appending a "0" if required. \\
    \bottomrule
 \end{tabularx}
@@ -908,7 +908,7 @@
    \midrule
 \Macro{if at compatibility} & Switch to indicate if the LaTeX2.09 compatibility mode is active. \\
 \Macro{if at ignore} &  Whether or not to ignore spaces after an environment. Set to true by \Macro\ignorespacesafterend.\\
-\Macro{if at minipage} & True for a |minipage|, false for a |parbox|. Responsible for adding space, skips and paragraph indents for a |parbox|.\\
+   \Macro{if at minipage} & True for a \texttt{minipage}, false for a \texttt{parbox}. Responsible for adding space, skips and paragraph indents for a \texttt{parbox}.\\
 \Macro{if at twoside}    & True for two-sided documents \\
 \Macro{if at twocolumn}  & Indicates if two-column mode is active \\
 \Macro{if at firstcolumn}& Indicates if the first column is processed \\

Added: trunk/Master/texmf-dist/tex/latex/macros2e/extlabels.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/macros2e/extlabels.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/macros2e/extlabels.sty	2017-12-10 00:36:39 UTC (rev 46026)
@@ -0,0 +1,14 @@
+\RequirePackage{hyperref}
+\RequirePackage{lipsum}
+\RequirePackage{zref-user}
+\RequirePackage{zref-abspos}
+
+\let\origDescribeMacro\DescribeMacro
+\def\DescribeMacro#1{%
+    \edef\name{\expandafter\@gobble\string#1}%
+    \ifx\name\@backslashchar\else
+    \zsavepos{\expandafter\@gobble\string#1}%
+    \fi
+    \origDescribeMacro{#1}%
+}
+


Property changes on: trunk/Master/texmf-dist/tex/latex/macros2e/extlabels.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property


More information about the tex-live-commits mailing list