[latex3-commits] [git/LaTeX3-latex3-latex3] master: xbox: Drop braces round command name (98d221ab7)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Aug 24 11:19:09 CEST 2020


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/98d221ab71ce495ab06f0f3ce40cab354c6c7041

>---------------------------------------------------------------

commit 98d221ab71ce495ab06f0f3ce40cab354c6c7041
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Aug 22 11:19:47 2020 +0100

    xbox: Drop braces round command name
    
    As we have done elsewhere with xparse


>---------------------------------------------------------------

98d221ab71ce495ab06f0f3ce40cab354c6c7041
 l3trial/xbox/xbox.dtx | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/l3trial/xbox/xbox.dtx b/l3trial/xbox/xbox.dtx
index 9555d9b2b..755522704 100644
--- a/l3trial/xbox/xbox.dtx
+++ b/l3trial/xbox/xbox.dtx
@@ -802,7 +802,7 @@
 %   The basic horizontal box command for \LaTeX{}: simply box things up
 %   as there is nothing complicated to do.
 %    \begin{macrocode}
-\NewDocumentCommand { \mbox } { +m }
+\NewDocumentCommand \mbox { +m }
   {
     \mode_leave_vertical:
     \hbox:n {#1}
@@ -816,7 +816,7 @@
 %   is present~|#1| is simply dropped entirely. Picture syntax is converted
 %   into dimensions here before handing off to the internal code.
 %    \begin{macrocode}
-\NewDocumentCommand { \makebox }
+\NewDocumentCommand \makebox
   { o > { \SplitArgument { 1 } { , } } d ( ) O { c } +m }
   {
     \mode_leave_vertical:
@@ -839,7 +839,7 @@
 % \begin{macro}{\fbox}
 %   Simply frame up material: no need to do anything complex.
 %    \begin{macrocode}
-\NewDocumentCommand { \fbox } { +m }
+\NewDocumentCommand \fbox { +m }
   {
     \mode_leave_vertical:
     \hbox_frame:nnn {#1} { \fboxrule } { \fboxsep }
@@ -854,7 +854,7 @@
 %   test for \texttt{-NoValue-} here. Thus with no optional arguments this
 %   command does exactly the same as \cs{fbox}.
 %    \begin{macrocode}
-\NewDocumentCommand { \framebox }
+\NewDocumentCommand \framebox
   { o > { \SplitArgument { 1 } { , } } d ( ) O { c } +m }
   {
     \mode_leave_vertical:
@@ -877,7 +877,7 @@
 %   one by one. This avoids needing to have detail of the implementation in
 %   the user interface.
 %    \begin{macrocode}
-\NewDocumentCommand { \raisebox } { m o o +m }
+\NewDocumentCommand \raisebox { m o o +m }
   {
     \IfNoValueTF {#2}
       { \xbox_raise:nn {#1} {#4} }
@@ -895,14 +895,14 @@
 % \begin{macro}{\newsavebox}
 %   Allocate a new \enquote{savebox}.
 %    \begin{macrocode}
-\NewDocumentCommand { \newsavebox } { m } { \coffin_new:N #1 }
+\NewDocumentCommand \newsavebox { m } { \coffin_new:N #1 }
 %    \end{macrocode}
 % \end{macro}
 %
 % \begin{macro}{\sbox}
 %   Save |#2| in a coffin: like \cs{mbox}, no messing about.
 %    \begin{macrocode}
-\NewDocumentCommand { \sbox } { m +m } { \hcoffin_set:Nn #1 {#2} }
+\NewDocumentCommand \sbox { m +m } { \hcoffin_set:Nn #1 {#2} }
 %    \end{macrocode}
 % \end{macro}
 %
@@ -914,7 +914,7 @@
 %   setting. Question: should the syntax processing (\cs{IFNoValueTF} test)
 %   take place inside or outside of the coffin setting stage?
 %    \begin{macrocode}
-\NewDocumentCommand { \savebox }
+\NewDocumentCommand \savebox
   { m o > { \SplitArgument { 1 } { , } } d ( ) O { c } +m }
   {
     \IfNoValueTF {#3}
@@ -987,7 +987,7 @@
 %   done using the box syntax for speed (should this be done using
 %   \cs{coffin_typeset:Nnnnn}?).
 %    \begin{macrocode}
-\NewDocumentCommand { \usebox } { m }
+\NewDocumentCommand \usebox { m }
   {
     \mode_leave_vertical:
     \box_use:N #1
@@ -1000,7 +1000,7 @@
 % \begin{macro}{\rule}
 %   Simple conversion.
 %    \begin{macrocode}
-\NewDocumentCommand { \rule } { O { 0 pt } m m }
+\NewDocumentCommand \rule { O { 0 pt } m m }
   {
     \mode_leave_vertical:
     \rule:nnn  { #1 + ( #3 ) } { 0 pt - ( #1 ) } {#2}
@@ -1018,12 +1018,12 @@
 %   without taking up space. Unlike the plain \TeX{} versions, these correctly
 %   leave vertical mode.
 %    \begin{macrocode}
-\NewDocumentCommand { \llap } { m }
+\NewDocumentCommand \llap { m }
   {
     \mode_leave_vertical:
     \hbox_overlap_left:n  {#1}
   }
-\NewDocumentCommand { \rlap } { m }
+\NewDocumentCommand \rlap { m }
   {
     \mode_leave_vertical:
     \hbox_overlap_right:n {#1}
@@ -1035,9 +1035,9 @@
 %   These macros place text on a full line either centered or left or right
 %   adjusted.
 %    \begin{macrocode}
-\NewDocumentCommand { \leftline }   { m } { \hbox_line_left:n   {#1} }
-\NewDocumentCommand { \centerline } { m } { \hbox_line_center:n {#1} }
-\NewDocumentCommand { \rightline }  { m } { \hbox_line_right:n  {#1} }
+\NewDocumentCommand \leftline   { m } { \hbox_line_left:n   {#1} }
+\NewDocumentCommand \centerline { m } { \hbox_line_center:n {#1} }
+\NewDocumentCommand \rightline  { m } { \hbox_line_right:n  {#1} }
 %    \end{macrocode}
 % \end{macro}
 %





More information about the latex3-commits mailing list.