From 2e9a644af7ded8406d99954d518412568f7daea0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 1 Sep 2023 21:15:40 +0000 Subject: huawei (1sep23) git-svn-id: svn://tug.org/texlive/trunk@68139 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/huawei/huawei.pdf | Bin 808197 -> 809255 bytes Master/texmf-dist/source/latex/huawei/huawei.dtx | 131 ++++++++++++----------- Master/texmf-dist/tex/latex/huawei/huawei.cls | 131 ++++++++++++----------- 3 files changed, 134 insertions(+), 128 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/huawei/huawei.pdf b/Master/texmf-dist/doc/latex/huawei/huawei.pdf index f002dcbce5f..e744f240b80 100644 Binary files a/Master/texmf-dist/doc/latex/huawei/huawei.pdf and b/Master/texmf-dist/doc/latex/huawei/huawei.pdf differ diff --git a/Master/texmf-dist/source/latex/huawei/huawei.dtx b/Master/texmf-dist/source/latex/huawei/huawei.dtx index 7297aae9414..f2b24f85811 100644 --- a/Master/texmf-dist/source/latex/huawei/huawei.dtx +++ b/Master/texmf-dist/source/latex/huawei/huawei.dtx @@ -50,7 +50,7 @@ %\NeedsTeXFormat{LaTeX2e} %\ProvidesClass{huawei} %<*class> -[2023-08-09 0.18.0 Template for Huawei Documents] +[2023-08-31 0.18.1 Template for Huawei Documents] % %<*driver> \documentclass{ltxdoc} @@ -447,7 +447,7 @@ $pdflatex = 'pdflatex %O --shell-escape %S'; % Then, we configure |enumitem|: % \begin{macrocode} -\RequirePackage{enumitem} +\RequirePackage[inline]{enumitem} \setlist{nosep} % \end{macrocode} @@ -707,7 +707,7 @@ xscale=#1, inner sep=0pt, outer sep=0pt] \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 @@ xscale=#1, inner sep=0pt, outer sep=0pt] \begin{textblock}{8}[1,0](15.8,0.2)% \raggedleft\huawei@header{% \ifdefined\huawei@nosecurity\else% - \thesecurity + \thesecurity% \fi% }% \end{textblock}% @@ -737,14 +737,14 @@ xscale=#1, inner sep=0pt, outer sep=0pt] \ifdefined\huawei@anonymous\else% \theauthor% \ifdefined\huawei@nosecurity\else% - \ifx\theid\empty\else, \theid\fi + \ifx\theid\empty\else, \theid\fi% \fi% \ifdefined\huawei@nobrand\else% \newline \fi% \fi% \ifdefined\huawei@nobrand\else% - \thecompany{} + \thecompany{}% \fi% }% \fi% @@ -781,35 +781,38 @@ xscale=#1, inner sep=0pt, outer sep=0pt] % 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@nobrand\else% \ifdefined\huawei@anonymous\else% \ifx\thecompany\empty\else% - \thecompany\newline - \fi - \fi - \fi - \ifx\theauthor\empty\else% - {\scshape\ifdefined\huawei@anonymous - Anonymous Authors - \else% - \theauthor - \fi}% + \thecompany\par% + \fi% + \fi% \fi% - \ifdefined\huawei@anonymous\else% - \ifx\theauthor\empty\else - \ifdefined\huawei@nobrand\else% - \ifx\theid\empty\else - $\;$/ {\theid} - \fi - \fi - \fi - \fi - \vspace{2em} + \parbox{.6\textwidth}{\raggedright% + \ifx\theauthor\empty\else% + {\scshape\ifdefined\huawei@anonymous% + Anonymous Authors% + \else% + \theauthor% + \fi}% + \fi% + \ifdefined\huawei@anonymous\else% + \ifx\theauthor\empty\else% + \ifdefined\huawei@nobrand\else% + \ifx\theid\empty\else% + $\;$/ {\theid}% + \fi% + \fi% + \fi% + \fi% + \par% + }% + \vspace{2em}% }\makeatother % \end{macrocode} % \end{macro} @@ -869,7 +872,7 @@ xscale=#1, inner sep=0pt, outer sep=0pt] 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 @@ xscale=#1, inner sep=0pt, outer sep=0pt] % \begin{macro}{\PrintFirstPage} % Then, we define |\PrintFirstPage|: % \begin{macrocode} -\makeatletter\newcommand\PrintFirstPage[1]{ - \ifdefined\huawei@landscape\else +\makeatletter\newcommand\PrintFirstPage[1]{% + \ifdefined\huawei@landscape\else% \PackageError{huawei}{It's allowed to use PrintFirstPage only in landscape mode}{Read huawei.pdf for more information} - \fi - \huawei@bar + \fi% + \huawei@bar% \def\param{#1}% - \ifx\param\empty\else - \includegraphics[height=2in]{#1} - \newline - \fi - \vspace*{0.5in} - \maketitle - \ifdefined\huawei@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@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 @@ xscale=#1, inner sep=0pt, outer sep=0pt] % \begin{macro}{\PrintLastPage} % Then, we define |\PrintLastPage|: % \begin{macrocode} -\makeatletter\newcommand\PrintLastPage{ - \ifdefined\huawei@landscape\else +\makeatletter\newcommand\PrintLastPage{% + \ifdefined\huawei@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 @@ xscale=#1, inner sep=0pt, outer sep=0pt] The author% \else% \thecompany{}% - \fi + \fi% may change the information at any time without notice. \end{minipage} \end{center}% @@ -976,7 +979,7 @@ xscale=#1, inner sep=0pt, outer sep=0pt] % Then, we set the background color of the document, if required by the |dark| class option: % \begin{macrocode} -\makeatletter\ifdefined\huawei@dark +\makeatletter\ifdefined\huawei@dark% \RequirePackage{pagecolor}% \pagecolor{black}% \color{white}% diff --git a/Master/texmf-dist/tex/latex/huawei/huawei.cls b/Master/texmf-dist/tex/latex/huawei/huawei.cls index 2e5a68b93a5..588b1886254 100644 --- a/Master/texmf-dist/tex/latex/huawei/huawei.cls +++ b/Master/texmf-dist/tex/latex/huawei/huawei.cls @@ -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 @@ xscale=#1, inner sep=0pt, outer sep=0pt] \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 @@ xscale=#1, inner sep=0pt, outer sep=0pt] \begin{textblock}{8}[1,0](15.8,0.2)% \raggedleft\huawei@header{% \ifdefined\huawei@nosecurity\else% - \thesecurity + \thesecurity% \fi% }% \end{textblock}% @@ -386,14 +386,14 @@ xscale=#1, inner sep=0pt, outer sep=0pt] \ifdefined\huawei@anonymous\else% \theauthor% \ifdefined\huawei@nosecurity\else% - \ifx\theid\empty\else, \theid\fi + \ifx\theid\empty\else, \theid\fi% \fi% \ifdefined\huawei@nobrand\else% \newline \fi% \fi% \ifdefined\huawei@nobrand\else% - \thecompany{} + \thecompany{}% \fi% }% \fi% @@ -421,35 +421,38 @@ xscale=#1, inner sep=0pt, outer sep=0pt] {\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@nobrand\else% \ifdefined\huawei@anonymous\else% \ifx\thecompany\empty\else% - \thecompany\newline - \fi - \fi - \fi - \ifx\theauthor\empty\else% - {\scshape\ifdefined\huawei@anonymous - Anonymous Authors - \else% - \theauthor - \fi}% + \thecompany\par% + \fi% + \fi% \fi% - \ifdefined\huawei@anonymous\else% - \ifx\theauthor\empty\else - \ifdefined\huawei@nobrand\else% - \ifx\theid\empty\else - $\;$/ {\theid} - \fi - \fi - \fi - \fi - \vspace{2em} + \parbox{.6\textwidth}{\raggedright% + \ifx\theauthor\empty\else% + {\scshape\ifdefined\huawei@anonymous% + Anonymous Authors% + \else% + \theauthor% + \fi}% + \fi% + \ifdefined\huawei@anonymous\else% + \ifx\theauthor\empty\else% + \ifdefined\huawei@nobrand\else% + \ifx\theid\empty\else% + $\;$/ {\theid}% + \fi% + \fi% + \fi% + \fi% + \par% + }% + \vspace{2em}% }\makeatother \newcommand\PrintCrumb[2]{% @@ -494,57 +497,57 @@ xscale=#1, inner sep=0pt, outer sep=0pt] 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@landscape\else +\makeatletter\newcommand\PrintFirstPage[1]{% + \ifdefined\huawei@landscape\else% \PackageError{huawei}{It's allowed to use PrintFirstPage only in landscape mode}{Read huawei.pdf for more information} - \fi - \huawei@bar + \fi% + \huawei@bar% \def\param{#1}% - \ifx\param\empty\else - \includegraphics[height=2in]{#1} - \newline - \fi - \vspace*{0.5in} - \maketitle - \ifdefined\huawei@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@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@landscape\else +\makeatletter\newcommand\PrintLastPage{% + \ifdefined\huawei@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 @@ xscale=#1, inner sep=0pt, outer sep=0pt] The author% \else% \thecompany{}% - \fi + \fi% may change the information at any time without notice. \end{minipage} \end{center}% @@ -581,7 +584,7 @@ xscale=#1, inner sep=0pt, outer sep=0pt] \fi% }\makeatother -\makeatletter\ifdefined\huawei@dark +\makeatletter\ifdefined\huawei@dark% \RequirePackage{pagecolor}% \pagecolor{black}% \color{white}% -- cgit v1.2.3