texlive[67863] Master/texmf-dist: huawei (9aug23)

commits+karl at tug.org commits+karl at tug.org
Wed Aug 9 21:59:23 CEST 2023


Revision: 67863
          http://tug.org/svn/texlive?view=revision&revision=67863
Author:   karl
Date:     2023-08-09 21:59:23 +0200 (Wed, 09 Aug 2023)
Log Message:
-----------
huawei (9aug23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/huawei/huawei.pdf
    trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx
    trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls

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

Modified: trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx	2023-08-09 19:59:12 UTC (rev 67862)
+++ trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx	2023-08-09 19:59:23 UTC (rev 67863)
@@ -50,7 +50,7 @@
 %<class>\NeedsTeXFormat{LaTeX2e}
 %<class>\ProvidesClass{huawei}
 %<*class>
-[2023-08-03 0.17.0 Template for Huawei Documents]
+[2023-08-09 0.18.0 Template for Huawei Documents]
 %</class>
 %<*driver>
 \documentclass{ltxdoc}
@@ -351,42 +351,39 @@
 \LoadClass[12pt]{article}
 %    \end{macrocode}
 
-% Then, we parse package options:
+% Then, we parse class options:
 % \changes{v0.15.0}{2022/12/13}{A new package option \texttt{breaks} introduced, which forces all sections to start from a new page.}
+% \changes{v0.18.0}{2023/08/09}{Now we use \texttt{pfgopts} for parsing class options.}
 %    \begin{macrocode}
-\makeatletter
-\DeclareOption{breaks}{
-  \let\huawei at oldsection\section
-  \renewcommand\section{\clearpage\huawei at oldsection}
+\RequirePackage{pgfopts}
+\pgfkeys{
+  /huawei/.cd,
+  breaks/.store in=\huawei at breaks,
+  slides/.store in=\huawei at slides,
+  nosecurity/.store in=\huawei at nosecurity,
+  authordraft/.store in=\huawei at authordraft,
+  nobrand/.store in=\huawei at nobrand,
+  nodate/.store in=\huawei at nodate,
+  nocover/.store in=\huawei at nocover,
+  nopaging/.store in=\huawei at nopaging,
+  landscape/.store in=\huawei at landscape,
+  anonymous/.store in=\huawei at anonymous,
 }
-\newif\ifhuawei at dark
-\DeclareOption{dark}{\huawei at darktrue}
-\newif\ifhuawei at slides
-\DeclareOption{slides}{\huawei at slidestrue}
-\newif\ifhuawei at nosecurity
-\DeclareOption{nosecurity}{\huawei at nosecuritytrue}
-\newif\ifhuawei at authordraft
-\DeclareOption{authordraft}{\huawei at authordrafttrue}
-\newif\ifhuawei at nobrand
-\DeclareOption{nobrand}{\huawei at nobrandtrue}
-\newif\ifhuawei at nodate
-\DeclareOption{nodate}{\huawei at nodatetrue}
-\newif\ifhuawei at nocover
-\DeclareOption{nocover}{\huawei at nocovertrue}
-\newif\ifhuawei at nopaging
-\DeclareOption{nopaging}{\huawei at nopagingtrue}
-\newif\ifhuawei at landscape
-\DeclareOption{landscape}{\huawei at landscapetrue}
-\newif\ifhuawei at anonymous
-\DeclareOption{anonymous}{\huawei at anonymoustrue}
-\ProcessOptions\relax
-\makeatother
+\ProcessPgfPackageOptions{/huawei}
 %    \end{macrocode}
 
+% Then, we redefine |\section| command in order to break pages for each section:
+%    \begin{macrocode}
+\makeatletter\ifdefined\huawei at breaks
+\let\huawei at oldsection\section
+\renewcommand\section{\clearpage\huawei at oldsection}
+\fi\makeatother
+%    \end{macrocode}
+
 % Then, we set the size of the page:
 %    \begin{macrocode}
 \RequirePackage{geometry}
-\makeatletter\ifhuawei at landscape
+\makeatletter\ifdefined\huawei at landscape
   \geometry{paperwidth=16in, paperheight=9in,
     left=4in, right=2in, top=1.5in, bottom=1.5in}
 \else
@@ -397,7 +394,7 @@
 
 % Then, we set the size of the font:
 %    \begin{macrocode}
-\makeatletter\ifhuawei at slides
+\makeatletter\ifdefined\huawei at slides
   \usepackage[fontsize=24pt]{fontsize}
 \fi\makeatother
 %    \end{macrocode}
@@ -529,7 +526,7 @@
 % Then, we define |\huawei at header|:
 %    \begin{macrocode}
 \makeatletter\newcommand\huawei at header[1]{{%
-  \ifhuawei at slides%
+  \ifdefined\huawei at slides%
     \setstretch{0.8}%
     \fontsize{19pt}{24pt}\selectfont%
   \else%
@@ -557,8 +554,8 @@
 % Then, we define |\huawei at logo|:
 %    \begin{macrocode}
 \makeatletter\newcommand\huawei at logo[1]{
-\def\BLACK{\ifhuawei at dark white\else black\fi}
-\def\BLANK{\ifhuawei at dark black\else white\fi}
+\def\BLACK{\ifdefined\huawei at dark white\else black\fi}
+\def\BLANK{\ifdefined\huawei at dark black\else white\fi}
 \begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-#1,
 xscale=#1, inner sep=0pt, outer sep=0pt]
 \begin{scope}[even odd rule,line width=0.800pt]
@@ -706,7 +703,7 @@
 \fancyhf{}
 \makeatletter\fancyfoot[L]{
   \huawei at bar
-  \ifhuawei at authordraft%
+  \ifdefined\huawei at authordraft%
     \begin{textblock}{14}[0.5,0.5](8,8)%
       \tikz \node[minimum width=14\TPHorizModule] {%
         \fontsize{64}{64}\selectfont\sffamily\scshape%
@@ -717,9 +714,9 @@
 }\makeatother
 \makeatletter\fancyhead[L]{
   \ifnum\value{page}=1\else%
-    \ifhuawei at nobrand\else%
+    \ifdefined\huawei at nobrand\else%
       \begin{textblock}{8}[0,0](1.2,0.2)%
-        \huawei at logo{\ifhuawei at slides 1.8\else 1\fi}%
+        \huawei at logo{\ifdefined\huawei at slides 1.8\else 1\fi}%
       \end{textblock}%
     \fi%
   \fi%
@@ -727,7 +724,7 @@
 \makeatletter\fancyhead[R]{
   \begin{textblock}{8}[1,0](15.8,0.2)%
     \raggedleft\huawei at header{%
-      \ifhuawei at nosecurity\else%
+      \ifdefined\huawei at nosecurity\else%
         \thesecurity
       \fi%
     }%
@@ -737,16 +734,16 @@
   \begin{textblock}{8}[0,1](1.2,15.8)%
     \ifnum\value{page}=1\else%
       \huawei at header{\raggedright%
-        \ifhuawei at anonymous\else%
+        \ifdefined\huawei at anonymous\else%
           \theauthor%
-          \ifhuawei at nosecurity\else%
+          \ifdefined\huawei at nosecurity\else%
             \ifx\theid\empty\else, \theid\fi
           \fi%
-          \ifhuawei at nobrand\else%
+          \ifdefined\huawei at nobrand\else%
             \newline
           \fi%
         \fi%
-        \ifhuawei at nobrand\else%
+        \ifdefined\huawei at nobrand\else%
           \thecompany{}
         \fi%
       }%
@@ -755,14 +752,14 @@
   \begin{textblock}{8}[1,1](15.8,15.8)%
     \raggedleft\huawei at header{%
       \ifnum\value{page}=1\else%
-        \ifhuawei at nopaging\else%
+        \ifdefined\huawei at nopaging\else%
           Page \#\thepage{} of \pageref*{LastPage}%
-          \ifhuawei at nodate\else%
+          \ifdefined\huawei at nodate\else%
             \\
           \fi%
         \fi%
       \fi%
-      \ifhuawei at nodate\else%
+      \ifdefined\huawei at nodate\else%
         \today{} \settimeformat{daytime}\currenttime{}%
       \fi%
     }%
@@ -789,8 +786,8 @@
   \ifx\thesubtitle\empty\else%
     {\color{gray!50!black}\large\thesubtitle\par}
   \fi
-  \ifhuawei at nobrand\else%
-    \ifhuawei at anonymous\else%
+  \ifdefined\huawei at nobrand\else%
+    \ifdefined\huawei at anonymous\else%
       \ifx\thecompany\empty\else%
         \thecompany\newline
       \fi
@@ -797,15 +794,15 @@
     \fi
   \fi
   \ifx\theauthor\empty\else%
-    {\scshape\ifhuawei at anonymous
+    {\scshape\ifdefined\huawei at anonymous
       Anonymous Authors
     \else%
       \theauthor
     \fi}%
   \fi%
-  \ifhuawei at anonymous\else%
+  \ifdefined\huawei at anonymous\else%
     \ifx\theauthor\empty\else
-      \ifhuawei at nobrand\else%
+      \ifdefined\huawei at nobrand\else%
         \ifx\theid\empty\else
           $\;$/ {\theid}
         \fi
@@ -854,7 +851,7 @@
   \textbf{Disclaimer}: The opinions expressed in
   this document are in good faith and
   while every care has been taken in preparing it,
-  \ifhuawei at nobrand%
+  \ifdefined\huawei at nobrand%
     the author%
   \else%
     \thecompany{}%
@@ -863,7 +860,7 @@
   of whatever nature in respect of these documents,
   including but not limited to the accuracy or completeness
   of any information, facts and/or opinions contained therein.
-  \ifhuawei at nobrand%
+  \ifdefined\huawei at nobrand%
     The author%
   \else%
     \thecompany{}%
@@ -882,7 +879,7 @@
 % Then, we define |\PrintFirstPage|:
 %    \begin{macrocode}
 \makeatletter\newcommand\PrintFirstPage[1]{
-  \ifhuawei at landscape\else
+  \ifdefined\huawei at landscape\else
     \PackageError{huawei}{It's allowed to use
     PrintFirstPage only in landscape mode}{Read huawei.pdf
     for more information}
@@ -895,7 +892,7 @@
   \fi
   \vspace*{0.5in}
   \maketitle
-  \ifhuawei at nocover\else
+  \ifdefined\huawei at nocover\else
     \begin{textblock}{14}[1,1](14,14)
       \raggedleft\includegraphics[height=3.6in]{huawei-cover-picture.pdf}
     \end{textblock}
@@ -908,7 +905,7 @@
 % Then, we define |\PrintLastPage|:
 %    \begin{macrocode}
 \makeatletter\newcommand\PrintLastPage{
-  \ifhuawei at landscape\else
+  \ifdefined\huawei at landscape\else
     \PackageError{huawei}{It's allowed to use
     PrintLastPage only in landscape mode}{Read huawei.pdf
     for more information}
@@ -941,7 +938,7 @@
       from those expressed or implied in the predictive statements.
       Therefore, such information is provided for reference purpose
       only and constitutes neither an offer nor an acceptance.
-      \ifhuawei at nobrand%
+      \ifdefined\huawei at nobrand%
         The author%
       \else%
         \thecompany{}%
@@ -955,31 +952,38 @@
 
 % \begin{macro}{\PrintBibliography}
 % Then, we define |\PrintBibliography|:
+% \changes{v0.18.0}{2023/08/09}{The bibliography prints in one column unless \texttt{breaks} class option is specified.}
 %    \begin{macrocode}
-\makeatletter\newcommand\PrintBibliography{
-  \setlength\bibitemsep{3pt}
-  \AtNextBibliography{\small}
-  \newpage
-  \raggedright
-  \ifhuawei at landscape
-    \begin{multicols}{3}\setstretch{0.95}\printbibliography\end{multicols}
-  \else
-    \begin{multicols}{2}\setstretch{0.95}\printbibliography\end{multicols}
-  \fi
+\makeatletter\newcommand\PrintBibliography{%
+  \setlength\bibitemsep{3pt}%
+  \AtNextBibliography{\small}%
+  \ifdefined\huawei at breaks\newpage\fi%
+  \begingroup%
+  \raggedright%
+  \setstretch{0.95}%
+  \ifdefined\huawei at landscape%
+    \begin{multicols}{3}\printbibliography\end{multicols}%
+  \else%
+    \ifdefined\huawei at breaks%
+      \begin{multicols}{2}\printbibliography\end{multicols}%
+    \else
+      \printbibliography%
+    \fi%
+  \fi%
 }\makeatother
 %    \end{macrocode}
 % \end{macro}
 
-% Then, we set the background color of the document:
+% Then, we set the background color of the document, if required by the |dark| class option:
 %    \begin{macrocode}
-\makeatletter\ifhuawei at dark
-  \RequirePackage{pagecolor}
-  \pagecolor{black}
-  \color{white}
+\makeatletter\ifdefined\huawei at dark
+  \RequirePackage{pagecolor}%
+  \pagecolor{black}%
+  \color{white}%
 \fi
 %    \end{macrocode}
 
-% Then, we configure layout:
+% Then, we configure the layout:
 %    \begin{macrocode}
 \AtBeginDocument{%
 \raggedbottom%

Modified: trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2023-08-09 19:59:12 UTC (rev 67862)
+++ trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2023-08-09 19:59:23 UTC (rev 67863)
@@ -32,7 +32,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{huawei}
-[2023-08-03 0.17.0 Template for Huawei Documents]
+[2023-08-09 0.18.0 Template for Huawei Documents]
 
 
 
@@ -81,36 +81,29 @@
 
 \LoadClass[12pt]{article}
 
-\makeatletter
-\DeclareOption{breaks}{
-  \let\huawei at oldsection\section
-  \renewcommand\section{\clearpage\huawei at oldsection}
+\RequirePackage{pgfopts}
+\pgfkeys{
+  /huawei/.cd,
+  breaks/.store in=\huawei at breaks,
+  slides/.store in=\huawei at slides,
+  nosecurity/.store in=\huawei at nosecurity,
+  authordraft/.store in=\huawei at authordraft,
+  nobrand/.store in=\huawei at nobrand,
+  nodate/.store in=\huawei at nodate,
+  nocover/.store in=\huawei at nocover,
+  nopaging/.store in=\huawei at nopaging,
+  landscape/.store in=\huawei at landscape,
+  anonymous/.store in=\huawei at anonymous,
 }
-\newif\ifhuawei at dark
-\DeclareOption{dark}{\huawei at darktrue}
-\newif\ifhuawei at slides
-\DeclareOption{slides}{\huawei at slidestrue}
-\newif\ifhuawei at nosecurity
-\DeclareOption{nosecurity}{\huawei at nosecuritytrue}
-\newif\ifhuawei at authordraft
-\DeclareOption{authordraft}{\huawei at authordrafttrue}
-\newif\ifhuawei at nobrand
-\DeclareOption{nobrand}{\huawei at nobrandtrue}
-\newif\ifhuawei at nodate
-\DeclareOption{nodate}{\huawei at nodatetrue}
-\newif\ifhuawei at nocover
-\DeclareOption{nocover}{\huawei at nocovertrue}
-\newif\ifhuawei at nopaging
-\DeclareOption{nopaging}{\huawei at nopagingtrue}
-\newif\ifhuawei at landscape
-\DeclareOption{landscape}{\huawei at landscapetrue}
-\newif\ifhuawei at anonymous
-\DeclareOption{anonymous}{\huawei at anonymoustrue}
-\ProcessOptions\relax
-\makeatother
+\ProcessPgfPackageOptions{/huawei}
 
+\makeatletter\ifdefined\huawei at breaks
+\let\huawei at oldsection\section
+\renewcommand\section{\clearpage\huawei at oldsection}
+\fi\makeatother
+
 \RequirePackage{geometry}
-\makeatletter\ifhuawei at landscape
+\makeatletter\ifdefined\huawei at landscape
   \geometry{paperwidth=16in, paperheight=9in,
     left=4in, right=2in, top=1.5in, bottom=1.5in}
 \else
@@ -118,7 +111,7 @@
     top=1.2in, bottom=1.2in}
 \fi\makeatother
 
-\makeatletter\ifhuawei at slides
+\makeatletter\ifdefined\huawei at slides
   \usepackage[fontsize=24pt]{fontsize}
 \fi\makeatother
 
@@ -196,7 +189,7 @@
 \definecolor{orange}{HTML}{F06543}
 
 \makeatletter\newcommand\huawei at header[1]{{%
-  \ifhuawei at slides%
+  \ifdefined\huawei at slides%
     \setstretch{0.8}%
     \fontsize{19pt}{24pt}\selectfont%
   \else%
@@ -214,8 +207,8 @@
 }\makeatother
 
 \makeatletter\newcommand\huawei at logo[1]{
-\def\BLACK{\ifhuawei at dark white\else black\fi}
-\def\BLANK{\ifhuawei at dark black\else white\fi}
+\def\BLACK{\ifdefined\huawei at dark white\else black\fi}
+\def\BLANK{\ifdefined\huawei at dark black\else white\fi}
 \begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-#1,
 xscale=#1, inner sep=0pt, outer sep=0pt]
 \begin{scope}[even odd rule,line width=0.800pt]
@@ -359,7 +352,7 @@
 \fancyhf{}
 \makeatletter\fancyfoot[L]{
   \huawei at bar
-  \ifhuawei at authordraft%
+  \ifdefined\huawei at authordraft%
     \begin{textblock}{14}[0.5,0.5](8,8)%
       \tikz \node[minimum width=14\TPHorizModule] {%
         \fontsize{64}{64}\selectfont\sffamily\scshape%
@@ -370,9 +363,9 @@
 }\makeatother
 \makeatletter\fancyhead[L]{
   \ifnum\value{page}=1\else%
-    \ifhuawei at nobrand\else%
+    \ifdefined\huawei at nobrand\else%
       \begin{textblock}{8}[0,0](1.2,0.2)%
-        \huawei at logo{\ifhuawei at slides 1.8\else 1\fi}%
+        \huawei at logo{\ifdefined\huawei at slides 1.8\else 1\fi}%
       \end{textblock}%
     \fi%
   \fi%
@@ -380,7 +373,7 @@
 \makeatletter\fancyhead[R]{
   \begin{textblock}{8}[1,0](15.8,0.2)%
     \raggedleft\huawei at header{%
-      \ifhuawei at nosecurity\else%
+      \ifdefined\huawei at nosecurity\else%
         \thesecurity
       \fi%
     }%
@@ -390,16 +383,16 @@
   \begin{textblock}{8}[0,1](1.2,15.8)%
     \ifnum\value{page}=1\else%
       \huawei at header{\raggedright%
-        \ifhuawei at anonymous\else%
+        \ifdefined\huawei at anonymous\else%
           \theauthor%
-          \ifhuawei at nosecurity\else%
+          \ifdefined\huawei at nosecurity\else%
             \ifx\theid\empty\else, \theid\fi
           \fi%
-          \ifhuawei at nobrand\else%
+          \ifdefined\huawei at nobrand\else%
             \newline
           \fi%
         \fi%
-        \ifhuawei at nobrand\else%
+        \ifdefined\huawei at nobrand\else%
           \thecompany{}
         \fi%
       }%
@@ -408,14 +401,14 @@
   \begin{textblock}{8}[1,1](15.8,15.8)%
     \raggedleft\huawei at header{%
       \ifnum\value{page}=1\else%
-        \ifhuawei at nopaging\else%
+        \ifdefined\huawei at nopaging\else%
           Page \#\thepage{} of \pageref*{LastPage}%
-          \ifhuawei at nodate\else%
+          \ifdefined\huawei at nodate\else%
             \\
           \fi%
         \fi%
       \fi%
-      \ifhuawei at nodate\else%
+      \ifdefined\huawei at nodate\else%
         \today{} \settimeformat{daytime}\currenttime{}%
       \fi%
     }%
@@ -433,8 +426,8 @@
   \ifx\thesubtitle\empty\else%
     {\color{gray!50!black}\large\thesubtitle\par}
   \fi
-  \ifhuawei at nobrand\else%
-    \ifhuawei at anonymous\else%
+  \ifdefined\huawei at nobrand\else%
+    \ifdefined\huawei at anonymous\else%
       \ifx\thecompany\empty\else%
         \thecompany\newline
       \fi
@@ -441,15 +434,15 @@
     \fi
   \fi
   \ifx\theauthor\empty\else%
-    {\scshape\ifhuawei at anonymous
+    {\scshape\ifdefined\huawei at anonymous
       Anonymous Authors
     \else%
       \theauthor
     \fi}%
   \fi%
-  \ifhuawei at anonymous\else%
+  \ifdefined\huawei at anonymous\else%
     \ifx\theauthor\empty\else
-      \ifhuawei at nobrand\else%
+      \ifdefined\huawei at nobrand\else%
         \ifx\theid\empty\else
           $\;$/ {\theid}
         \fi
@@ -483,7 +476,7 @@
   \textbf{Disclaimer}: The opinions expressed in
   this document are in good faith and
   while every care has been taken in preparing it,
-  \ifhuawei at nobrand%
+  \ifdefined\huawei at nobrand%
     the author%
   \else%
     \thecompany{}%
@@ -492,7 +485,7 @@
   of whatever nature in respect of these documents,
   including but not limited to the accuracy or completeness
   of any information, facts and/or opinions contained therein.
-  \ifhuawei at nobrand%
+  \ifdefined\huawei at nobrand%
     The author%
   \else%
     \thecompany{}%
@@ -506,7 +499,7 @@
 }\makeatother
 
 \makeatletter\newcommand\PrintFirstPage[1]{
-  \ifhuawei at landscape\else
+  \ifdefined\huawei at landscape\else
     \PackageError{huawei}{It's allowed to use
     PrintFirstPage only in landscape mode}{Read huawei.pdf
     for more information}
@@ -519,7 +512,7 @@
   \fi
   \vspace*{0.5in}
   \maketitle
-  \ifhuawei at nocover\else
+  \ifdefined\huawei at nocover\else
     \begin{textblock}{14}[1,1](14,14)
       \raggedleft\includegraphics[height=3.6in]{huawei-cover-picture.pdf}
     \end{textblock}
@@ -527,7 +520,7 @@
 }\makeatother
 
 \makeatletter\newcommand\PrintLastPage{
-  \ifhuawei at landscape\else
+  \ifdefined\huawei at landscape\else
     \PackageError{huawei}{It's allowed to use
     PrintLastPage only in landscape mode}{Read huawei.pdf
     for more information}
@@ -560,7 +553,7 @@
       from those expressed or implied in the predictive statements.
       Therefore, such information is provided for reference purpose
       only and constitutes neither an offer nor an acceptance.
-      \ifhuawei at nobrand%
+      \ifdefined\huawei at nobrand%
         The author%
       \else%
         \thecompany{}%
@@ -570,22 +563,28 @@
   \end{center}%
 }\makeatother
 
-\makeatletter\newcommand\PrintBibliography{
-  \setlength\bibitemsep{3pt}
-  \AtNextBibliography{\small}
-  \newpage
-  \raggedright
-  \ifhuawei at landscape
-    \begin{multicols}{3}\setstretch{0.95}\printbibliography\end{multicols}
-  \else
-    \begin{multicols}{2}\setstretch{0.95}\printbibliography\end{multicols}
-  \fi
+\makeatletter\newcommand\PrintBibliography{%
+  \setlength\bibitemsep{3pt}%
+  \AtNextBibliography{\small}%
+  \ifdefined\huawei at breaks\newpage\fi%
+  \begingroup%
+  \raggedright%
+  \setstretch{0.95}%
+  \ifdefined\huawei at landscape%
+    \begin{multicols}{3}\printbibliography\end{multicols}%
+  \else%
+    \ifdefined\huawei at breaks%
+      \begin{multicols}{2}\printbibliography\end{multicols}%
+    \else
+      \printbibliography%
+    \fi%
+  \fi%
 }\makeatother
 
-\makeatletter\ifhuawei at dark
-  \RequirePackage{pagecolor}
-  \pagecolor{black}
-  \color{white}
+\makeatletter\ifdefined\huawei at dark
+  \RequirePackage{pagecolor}%
+  \pagecolor{black}%
+  \color{white}%
 \fi
 
 \AtBeginDocument{%



More information about the tex-live-commits mailing list.