[latex3-commits] [git/LaTeX3-latex3-latex3] master: Drop some DocStrip conditionals (b5e970b00)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Sep 9 17:01:55 CEST 2020


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

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

commit b5e970b00ffd350ba25715ca2fd13fe577f06d82
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Sep 9 15:55:11 2020 +0100

    Drop some DocStrip conditionals
    
    Although dvipdfmx can make color spaces without
    objects, for code-sharing/clarity, we are using them.
    That means we need l3pdf here: that's the same as
    pdfTeX/LuaTeX, so drop the guards.


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

b5e970b00ffd350ba25715ca2fd13fe577f06d82
 l3backend/l3backend-color.dtx                      |  2 +
 .../l3color/testfiles/m3color003.xetex.tlg         | 79 ----------------------
 2 files changed, 2 insertions(+), 79 deletions(-)

diff --git a/l3backend/l3backend-color.dtx b/l3backend/l3backend-color.dtx
index c9b4aed14..72364c4e6 100644
--- a/l3backend/l3backend-color.dtx
+++ b/l3backend/l3backend-color.dtx
@@ -494,8 +494,10 @@
       { 100 ~ 0 ~ 0 }
       { #3 ~ #4 ~ #5 }
   }
+%<*luatex|pdftex>
 \cs_if_exist:NF \pdf_object_now:nn
   { \cs_gset_protected:Npn \@@_backend_separation_init_CIELAB:nnnnn #1#2#3#4#5 { } }
+%</luatex|pdftex>
 \cs_new_protected:Npn \@@_backend_separation_init_CIELAB:n #1
   {
     \pdf_object_new:nn { @@_illuminant_CIELAB_ #1 } { array }
diff --git a/l3experimental/l3color/testfiles/m3color003.xetex.tlg b/l3experimental/l3color/testfiles/m3color003.xetex.tlg
index 4a88b5e0a..12f6ba10a 100644
--- a/l3experimental/l3color/testfiles/m3color003.xetex.tlg
+++ b/l3experimental/l3color/testfiles/m3color003.xetex.tlg
@@ -204,31 +204,6 @@ Defining \__color_backend_select_BarToneCMYK:n on line ...
 Defining \__color_convert_BarToneCMYK_cmyk:w on line ...
 Defining \__color_convert_BarToneCMYK_rgb:w on line ...
 Defining \__color_convert_BarToneCMYK_gray:w on line ...
-! Undefined control sequence.
-\__color_backend_separation_init:nnnnn ..._now:nx 
-                                                  {dict}{/FunctionType 2/Dom...
-l. ...  }
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! LaTeX Error: Missing \begin{document}.
-See the LaTeX manual or LaTeX Companion for explanation.
-Type  H <return>  for immediate help.
- ...                                              
-l. ...  }
-You're in trouble here.  Try typing  <return>  to proceed.
-If that doesn't work, type  X <return>  to quit.
-! Undefined control sequence.
-<argument> ...5 GN} /DeviceCMYK \pdf_object_last: 
-                                                  ]}
-l. ...  }
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
 Defining \__color_model_BarToneCMYK_white: on line ...
 Defining \l__color_named_fooCMYK_tl on line ...
 Defining \l__color_named_fooCMYK_prop on line ...
@@ -246,24 +221,6 @@ Defining \__color_backend_select_BarToneRGB:n on line ..
 Defining \__color_convert_BarToneRGB_rgb:w on line ...
 Defining \__color_convert_BarToneRGB_cmyk:w on line ...
 Defining \__color_convert_BarToneRGB_gray:w on line ...
-! Undefined control sequence.
-\__color_backend_separation_init:nnnnn ..._now:nx 
-                                                  {dict}{/FunctionType 2/Dom...
-l. ...  }
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Undefined control sequence.
-<argument> ...55 GN} /DeviceRGB \pdf_object_last: 
-                                                  ]}
-l. ...  }
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
 Defining \__color_model_BarToneRGB_white: on line ...
 Defining \l__color_named_fooRGB_tl on line ...
 Defining \l__color_named_fooRGB_prop on line ...
@@ -281,24 +238,6 @@ Defining \__color_backend_select_BarToneGray:n on line ...
 Defining \__color_convert_BarToneGray_cmyk:w on line ...
 Defining \__color_convert_BarToneGray_gray:w on line ...
 Defining \__color_convert_BarToneGray_rgb:w on line ...
-! Undefined control sequence.
-\__color_backend_separation_init:nnnnn ..._now:nx 
-                                                  {dict}{/FunctionType 2/Dom...
-l. ...  }
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Undefined control sequence.
-<argument> ...5 GN} /DeviceGray \pdf_object_last: 
-                                                  ]}
-l. ...  }
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
 Defining \__color_model_BarToneGray_white: on line ...
 Defining \l__color_named_fooGray_tl on line ...
 Defining \l__color_named_fooGray_prop on line ...
@@ -313,24 +252,6 @@ Defining \__color_parse_model_BarToneCIELAB:w on line ..
 Defining \__color_backend_fill_BarToneCIELAB:n on line ...
 Defining \__color_backend_stroke_BarToneCIELAB:n on line ...
 Defining \__color_backend_select_BarToneCIELAB:n on line ...
-! Undefined control sequence.
-\__color_backend_separation_init_CIELAB:n ...w:nn 
-                                                  {__color_illuminant_CIELAB...
-l. ...  }
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Undefined control sequence.
-\__color_backend_separation_init_CIELAB:n ...e:nx 
-                                                  {__color_illuminant_CIELAB...
-l. ...  }
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
 Defining \__color_convert_BarToneCIELAB_cmyk:w on line ...
 Defining \__color_convert_BarToneCIELAB_rgb:w on line ...
 Defining \__color_convert_BarToneCIELAB_gray:w on line ...





More information about the latex3-commits mailing list.