summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/huawei
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-09-01 21:15:40 +0000
committerKarl Berry <karl@freefriends.org>2023-09-01 21:15:40 +0000
commit2e9a644af7ded8406d99954d518412568f7daea0 (patch)
treec78eaab60dc148e626f55130c1027536e6697b23 /Master/texmf-dist/tex/latex/huawei
parentde51dac894188dc030854b49b54981bf71dca96f (diff)
huawei (1sep23)
git-svn-id: svn://tug.org/texlive/trunk@68139 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/huawei')
-rw-r--r--Master/texmf-dist/tex/latex/huawei/huawei.cls131
1 files changed, 67 insertions, 64 deletions
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}%