texlive[68139] Master/texmf-dist: huawei (1sep23)

commits+karl at tug.org commits+karl at tug.org
Fri Sep 1 23:15:40 CEST 2023


Revision: 68139
          http://tug.org/svn/texlive?view=revision&revision=68139
Author:   karl
Date:     2023-09-01 23:15:40 +0200 (Fri, 01 Sep 2023)
Log Message:
-----------
huawei (1sep23)

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-09-01 21:15:30 UTC (rev 68138)
+++ trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx	2023-09-01 21:15:40 UTC (rev 68139)
@@ -50,7 +50,7 @@
 %<class>\NeedsTeXFormat{LaTeX2e}
 %<class>\ProvidesClass{huawei}
 %<*class>
-[2023-08-09 0.18.0 Template for Huawei Documents]
+[2023-08-31 0.18.1 Template for Huawei Documents]
 %</class>
 %<*driver>
 \documentclass{ltxdoc}
@@ -447,7 +447,7 @@
 
 % Then, we configure |enumitem|:
 %    \begin{macrocode}
-\RequirePackage{enumitem}
+\RequirePackage[inline]{enumitem}
 \setlist{nosep}
 %    \end{macrocode}
 
@@ -707,7 +707,7 @@
     \begin{textblock}{14}[0.5,0.5](8,8)%
       \tikz \node[minimum width=14\TPHorizModule] {%
         \fontsize{64}{64}\selectfont\sffamily\scshape%
-        \color{gray!20}\rotatebox{30}{it is a draft}
+        \color{gray!20}\rotatebox{30}{it is a draft}%
       };%
     \end{textblock}%
   \else\fi%
@@ -725,7 +725,7 @@
   \begin{textblock}{8}[1,0](15.8,0.2)%
     \raggedleft\huawei at header{%
       \ifdefined\huawei at nosecurity\else%
-        \thesecurity
+        \thesecurity%
       \fi%
     }%
   \end{textblock}%
@@ -737,7 +737,7 @@
         \ifdefined\huawei at anonymous\else%
           \theauthor%
           \ifdefined\huawei at nosecurity\else%
-            \ifx\theid\empty\else, \theid\fi
+            \ifx\theid\empty\else, \theid\fi%
           \fi%
           \ifdefined\huawei at nobrand\else%
             \newline
@@ -744,7 +744,7 @@
           \fi%
         \fi%
         \ifdefined\huawei at nobrand\else%
-          \thecompany{}
+          \thecompany{}%
         \fi%
       }%
     \fi%
@@ -781,35 +781,38 @@
 % Then, we redefine |\maketitle|:
 %    \begin{macrocode}
 \makeatletter\renewcommand\maketitle{%
-  \vspace*{18pt}
-  {\bfseries{\Huge\thetitle\par}}
+  \vspace*{18pt}%
+  {\bfseries{\Huge\raggedright\thetitle\par}}%
   \ifx\thesubtitle\empty\else%
-    {\color{gray!50!black}\large\thesubtitle\par}
-  \fi
+    {\color{gray!50!black}\large\raggedright\thesubtitle\par}%
+  \fi%
   \ifdefined\huawei at nobrand\else%
     \ifdefined\huawei at anonymous\else%
       \ifx\thecompany\empty\else%
-        \thecompany\newline
-      \fi
-    \fi
-  \fi
-  \ifx\theauthor\empty\else%
-    {\scshape\ifdefined\huawei at anonymous
-      Anonymous Authors
-    \else%
-      \theauthor
-    \fi}%
+        \thecompany\par%
+      \fi%
+    \fi%
   \fi%
-  \ifdefined\huawei at anonymous\else%
-    \ifx\theauthor\empty\else
-      \ifdefined\huawei at nobrand\else%
-        \ifx\theid\empty\else
-          $\;$/ {\theid}
-        \fi
-      \fi
-    \fi
-  \fi
-  \vspace{2em}
+  \parbox{.6\textwidth}{\raggedright%
+    \ifx\theauthor\empty\else%
+      {\scshape\ifdefined\huawei at anonymous%
+        Anonymous Authors%
+      \else%
+        \theauthor%
+      \fi}%
+    \fi%
+    \ifdefined\huawei at anonymous\else%
+      \ifx\theauthor\empty\else%
+        \ifdefined\huawei at nobrand\else%
+          \ifx\theid\empty\else%
+            $\;$/ {\theid}%
+          \fi%
+        \fi%
+      \fi%
+    \fi%
+    \par%
+  }%
+  \vspace{2em}%
 }\makeatother
 %    \end{macrocode}
 % \end{macro}
@@ -869,7 +872,7 @@
   cannot be held liable for the use of and reliance of
   the opinions, estimates, forecasts and findings in
   these documents.
-  \par
+  \par%
   \endgroup%
 }\makeatother
 %    \end{macrocode}
@@ -878,25 +881,25 @@
 % \begin{macro}{\PrintFirstPage}
 % Then, we define |\PrintFirstPage|:
 %    \begin{macrocode}
-\makeatletter\newcommand\PrintFirstPage[1]{
-  \ifdefined\huawei at landscape\else
+\makeatletter\newcommand\PrintFirstPage[1]{%
+  \ifdefined\huawei at landscape\else%
     \PackageError{huawei}{It's allowed to use
     PrintFirstPage only in landscape mode}{Read huawei.pdf
     for more information}
-  \fi
-  \huawei at bar
+  \fi%
+  \huawei at bar%
   \def\param{#1}%
-  \ifx\param\empty\else
-    \includegraphics[height=2in]{#1}
-    \newline
-  \fi
-  \vspace*{0.5in}
-  \maketitle
-  \ifdefined\huawei at nocover\else
-    \begin{textblock}{14}[1,1](14,14)
-      \raggedleft\includegraphics[height=3.6in]{huawei-cover-picture.pdf}
-    \end{textblock}
-  \fi
+  \ifx\param\empty\else%
+    \includegraphics[height=2in]{#1}%
+    \newline%
+  \fi%
+  \vspace*{0.5in}%
+  \maketitle%
+  \ifdefined\huawei at nocover\else%
+    \begin{textblock}{14}[1,1](14,14)%
+      \raggedleft\includegraphics[height=3.6in]{huawei-cover-picture.pdf}%
+    \end{textblock}%
+  \fi%
 }\makeatother
 %    \end{macrocode}
 % \end{macro}
@@ -904,32 +907,32 @@
 % \begin{macro}{\PrintLastPage}
 % Then, we define |\PrintLastPage|:
 %    \begin{macrocode}
-\makeatletter\newcommand\PrintLastPage{
-  \ifdefined\huawei at landscape\else
+\makeatletter\newcommand\PrintLastPage{%
+  \ifdefined\huawei at landscape\else%
     \PackageError{huawei}{It's allowed to use
     PrintLastPage only in landscape mode}{Read huawei.pdf
     for more information}
-  \fi
-  \newpage
-  \vspace*{1in}
-  \begin{center}
-    \begin{minipage}{0.6\columnwidth}\raggedright
-      \normalsize
-      \setlength{\parskip}{6pt}
-      {\Huge\color{red}\textbf{Thank you!}}
-
-      \vspace{0.5in}
-
+  \fi%
+  \newpage%
+  \vspace*{1in}%
+  \begin{center}%
+    \begin{minipage}{0.6\columnwidth}\raggedright%
+      \normalsize%
+      \setlength{\parskip}{6pt}%
+      {\Huge\color{red}\textbf{Thank you!}}%
+      \par%
+      \vspace{0.5in}%
+      \par%
       Bring digital to every person, home and organization
-      \newline
+      \newline%
       for a fully connected, intelligent world.
-
+      \par%
       \textbf{%
         Copyright \copyright{} \the\year{} \thecompany{}
         \newline
         All Rights Reserved.%
       }
-
+      \par%
       The information in this document may contain predictive
       statements including, without limitation, statements regarding
       the future financial and operating results, future product
@@ -942,7 +945,7 @@
         The author%
       \else%
         \thecompany{}%
-      \fi
+      \fi%
       may change the information at any time without notice.
     \end{minipage}
   \end{center}%
@@ -976,7 +979,7 @@
 
 % Then, we set the background color of the document, if required by the |dark| class option:
 %    \begin{macrocode}
-\makeatletter\ifdefined\huawei at dark
+\makeatletter\ifdefined\huawei at dark%
   \RequirePackage{pagecolor}%
   \pagecolor{black}%
   \color{white}%

Modified: trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2023-09-01 21:15:30 UTC (rev 68138)
+++ trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2023-09-01 21:15:40 UTC (rev 68139)
@@ -32,7 +32,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{huawei}
-[2023-08-09 0.18.0 Template for Huawei Documents]
+[2023-08-31 0.18.1 Template for Huawei Documents]
 
 
 
@@ -146,7 +146,7 @@
 \setlength{\footnotemargin}{2pt}
 \setlength{\footnotesep}{2pt}
 
-\RequirePackage{enumitem}
+\RequirePackage[inline]{enumitem}
 \setlist{nosep}
 
 \RequirePackage[absolute]{textpos}
@@ -356,7 +356,7 @@
     \begin{textblock}{14}[0.5,0.5](8,8)%
       \tikz \node[minimum width=14\TPHorizModule] {%
         \fontsize{64}{64}\selectfont\sffamily\scshape%
-        \color{gray!20}\rotatebox{30}{it is a draft}
+        \color{gray!20}\rotatebox{30}{it is a draft}%
       };%
     \end{textblock}%
   \else\fi%
@@ -374,7 +374,7 @@
   \begin{textblock}{8}[1,0](15.8,0.2)%
     \raggedleft\huawei at header{%
       \ifdefined\huawei at nosecurity\else%
-        \thesecurity
+        \thesecurity%
       \fi%
     }%
   \end{textblock}%
@@ -386,7 +386,7 @@
         \ifdefined\huawei at anonymous\else%
           \theauthor%
           \ifdefined\huawei at nosecurity\else%
-            \ifx\theid\empty\else, \theid\fi
+            \ifx\theid\empty\else, \theid\fi%
           \fi%
           \ifdefined\huawei at nobrand\else%
             \newline
@@ -393,7 +393,7 @@
           \fi%
         \fi%
         \ifdefined\huawei at nobrand\else%
-          \thecompany{}
+          \thecompany{}%
         \fi%
       }%
     \fi%
@@ -421,35 +421,38 @@
   {\end{adjustwidth}}
 
 \makeatletter\renewcommand\maketitle{%
-  \vspace*{18pt}
-  {\bfseries{\Huge\thetitle\par}}
+  \vspace*{18pt}%
+  {\bfseries{\Huge\raggedright\thetitle\par}}%
   \ifx\thesubtitle\empty\else%
-    {\color{gray!50!black}\large\thesubtitle\par}
-  \fi
+    {\color{gray!50!black}\large\raggedright\thesubtitle\par}%
+  \fi%
   \ifdefined\huawei at nobrand\else%
     \ifdefined\huawei at anonymous\else%
       \ifx\thecompany\empty\else%
-        \thecompany\newline
-      \fi
-    \fi
-  \fi
-  \ifx\theauthor\empty\else%
-    {\scshape\ifdefined\huawei at anonymous
-      Anonymous Authors
-    \else%
-      \theauthor
-    \fi}%
+        \thecompany\par%
+      \fi%
+    \fi%
   \fi%
-  \ifdefined\huawei at anonymous\else%
-    \ifx\theauthor\empty\else
-      \ifdefined\huawei at nobrand\else%
-        \ifx\theid\empty\else
-          $\;$/ {\theid}
-        \fi
-      \fi
-    \fi
-  \fi
-  \vspace{2em}
+  \parbox{.6\textwidth}{\raggedright%
+    \ifx\theauthor\empty\else%
+      {\scshape\ifdefined\huawei at anonymous%
+        Anonymous Authors%
+      \else%
+        \theauthor%
+      \fi}%
+    \fi%
+    \ifdefined\huawei at anonymous\else%
+      \ifx\theauthor\empty\else%
+        \ifdefined\huawei at nobrand\else%
+          \ifx\theid\empty\else%
+            $\;$/ {\theid}%
+          \fi%
+        \fi%
+      \fi%
+    \fi%
+    \par%
+  }%
+  \vspace{2em}%
 }\makeatother
 
 \newcommand\PrintCrumb[2]{%
@@ -494,57 +497,57 @@
   cannot be held liable for the use of and reliance of
   the opinions, estimates, forecasts and findings in
   these documents.
-  \par
+  \par%
   \endgroup%
 }\makeatother
 
-\makeatletter\newcommand\PrintFirstPage[1]{
-  \ifdefined\huawei at landscape\else
+\makeatletter\newcommand\PrintFirstPage[1]{%
+  \ifdefined\huawei at landscape\else%
     \PackageError{huawei}{It's allowed to use
     PrintFirstPage only in landscape mode}{Read huawei.pdf
     for more information}
-  \fi
-  \huawei at bar
+  \fi%
+  \huawei at bar%
   \def\param{#1}%
-  \ifx\param\empty\else
-    \includegraphics[height=2in]{#1}
-    \newline
-  \fi
-  \vspace*{0.5in}
-  \maketitle
-  \ifdefined\huawei at nocover\else
-    \begin{textblock}{14}[1,1](14,14)
-      \raggedleft\includegraphics[height=3.6in]{huawei-cover-picture.pdf}
-    \end{textblock}
-  \fi
+  \ifx\param\empty\else%
+    \includegraphics[height=2in]{#1}%
+    \newline%
+  \fi%
+  \vspace*{0.5in}%
+  \maketitle%
+  \ifdefined\huawei at nocover\else%
+    \begin{textblock}{14}[1,1](14,14)%
+      \raggedleft\includegraphics[height=3.6in]{huawei-cover-picture.pdf}%
+    \end{textblock}%
+  \fi%
 }\makeatother
 
-\makeatletter\newcommand\PrintLastPage{
-  \ifdefined\huawei at landscape\else
+\makeatletter\newcommand\PrintLastPage{%
+  \ifdefined\huawei at landscape\else%
     \PackageError{huawei}{It's allowed to use
     PrintLastPage only in landscape mode}{Read huawei.pdf
     for more information}
-  \fi
-  \newpage
-  \vspace*{1in}
-  \begin{center}
-    \begin{minipage}{0.6\columnwidth}\raggedright
-      \normalsize
-      \setlength{\parskip}{6pt}
-      {\Huge\color{red}\textbf{Thank you!}}
-
-      \vspace{0.5in}
-
+  \fi%
+  \newpage%
+  \vspace*{1in}%
+  \begin{center}%
+    \begin{minipage}{0.6\columnwidth}\raggedright%
+      \normalsize%
+      \setlength{\parskip}{6pt}%
+      {\Huge\color{red}\textbf{Thank you!}}%
+      \par%
+      \vspace{0.5in}%
+      \par%
       Bring digital to every person, home and organization
-      \newline
+      \newline%
       for a fully connected, intelligent world.
-
+      \par%
       \textbf{%
         Copyright \copyright{} \the\year{} \thecompany{}
         \newline
         All Rights Reserved.%
       }
-
+      \par%
       The information in this document may contain predictive
       statements including, without limitation, statements regarding
       the future financial and operating results, future product
@@ -557,7 +560,7 @@
         The author%
       \else%
         \thecompany{}%
-      \fi
+      \fi%
       may change the information at any time without notice.
     \end{minipage}
   \end{center}%
@@ -581,7 +584,7 @@
   \fi%
 }\makeatother
 
-\makeatletter\ifdefined\huawei at dark
+\makeatletter\ifdefined\huawei at dark%
   \RequirePackage{pagecolor}%
   \pagecolor{black}%
   \color{white}%



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