summaryrefslogtreecommitdiff
path: root/macros/latex-dev/base/ltboxes.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex-dev/base/ltboxes.dtx')
-rw-r--r--macros/latex-dev/base/ltboxes.dtx32
1 files changed, 18 insertions, 14 deletions
diff --git a/macros/latex-dev/base/ltboxes.dtx b/macros/latex-dev/base/ltboxes.dtx
index 6bfbc38af9..7e1c2c38b0 100644
--- a/macros/latex-dev/base/ltboxes.dtx
+++ b/macros/latex-dev/base/ltboxes.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 1993-2017
+% Copyright (C) 1993-2019
% The LaTeX3 Project and any individual authors listed elsewhere
% in this file.
%
@@ -13,7 +13,7 @@
% The latest version of this license is in
% https://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
-% version 2005/12/01 or later.
+% version 2008 or later.
%
% This file has the LPPL maintenance status "maintained".
%
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltboxes.dtx}
- [2017/03/29 v1.3a LaTeX Kernel (Box Commands)]
+ [2019/08/27 v1.3b LaTeX Kernel (Box Commands)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltboxes.dtx}
@@ -53,6 +53,10 @@
%
%
% \changes{v1.1e}{1998/08/17}{(RmS) Minor Documentation fixes.}
+% \changes{v1.3b}{2019/08/27}{Various commands made robust}
+%
+%
+%
% \section{\LaTeX\ Box commands}
%
%
@@ -265,7 +269,7 @@
% {\cs{long} added}
% The basic horizontal box command for \LaTeX.
% \begin{macrocode}
-\long\def\mbox#1{\leavevmode\hbox{#1}}
+\DeclareRobustCommand\mbox[1]{\leavevmode\hbox{#1}}
% \end{macrocode}
% \end{macro}
%
@@ -483,7 +487,7 @@
% {\cs{long} added}
% Save |#1| in a box register.
% \begin{macrocode}
-\long\def\sbox#1#2{\setbox#1\hbox{%
+\DeclareRobustCommand\sbox[2]{\setbox#1\hbox{%
\color@setgroup#2\color@endgroup}}
% \end{macrocode}
% \end{macro}
@@ -579,7 +583,7 @@
% \begin{macro}{\usebox}
% unchanged
% \begin{macrocode}
-\def\usebox#1{\leavevmode\copy #1\relax}
+\DeclareRobustCommand\usebox[1]{\leavevmode\copy #1\relax}
% \end{macrocode}
% \end{macro}
%
@@ -589,7 +593,7 @@
% (Extra space removed 14 Jan 88)
% RmS 92/08/24: Replaced occurrence of |\@halfwidth| by |\@wholewidth|
% \begin{macrocode}
-\long\def\frame#1{%
+\DeclareRobustCommand\frame[1]{%
\leavevmode
\hbox{%
\hskip-\@wholewidth
@@ -631,7 +635,7 @@
% \changes{v1.0s}{1995/04/27}
% {Move \cs{leavevmode} for graphics/1512}
% \begin{macrocode}
-\long\def\fbox#1{%
+\DeclareRobustCommand\fbox[1]{%
\leavevmode
\setbox\@tempboxa\hbox{%
\color@begingroup
@@ -1140,7 +1144,7 @@
% \LaTeX\ version works outside math.
% \task{???}{why the second `relax in `underline ?}
% \begin{macrocode}
-\def\underline#1{%
+\DeclareRobustCommand\underline[1]{%
\relax
\ifmmode\@@underline{#1}%
\else $\@@underline{\hbox{#1}}\m@th$\relax\fi}
@@ -1274,9 +1278,9 @@
% right adjusted.
% \begin{macrocode}
\def\@@line{\hb@xt@\hsize}
-\def\leftline#1{\@@line{#1\hss}}
-\def\rightline#1{\@@line{\hss#1}}
-\def\centerline#1{\@@line{\hss#1\hss}}
+\DeclareRobustCommand\leftline[1]{\@@line{#1\hss}}
+\DeclareRobustCommand\rightline[1]{\@@line{\hss#1}}
+\DeclareRobustCommand\centerline[1]{\@@line{\hss#1\hss}}
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -1290,8 +1294,8 @@
% reference point without taking up space.
% \end{macro}
% \begin{macrocode}
-\def\rlap#1{\hb@xt@\z@{#1\hss}}
-\def\llap#1{\hb@xt@\z@{\hss#1}}
+\DeclareRobustCommand\rlap[1]{\hb@xt@\z@{#1\hss}}
+\DeclareRobustCommand\llap[1]{\hb@xt@\z@{\hss#1}}
% \end{macrocode}
% \end{macro}
%