summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/huawei/huawei.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/huawei/huawei.dtx')
-rw-r--r--macros/latex/contrib/huawei/huawei.dtx131
1 files changed, 67 insertions, 64 deletions
diff --git a/macros/latex/contrib/huawei/huawei.dtx b/macros/latex/contrib/huawei/huawei.dtx
index 7297aae941..f2b24f8581 100644
--- a/macros/latex/contrib/huawei/huawei.dtx
+++ b/macros/latex/contrib/huawei/huawei.dtx
@@ -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 @@ $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}%