summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/huawei
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-09-10 03:01:08 +0000
committerNorbert Preining <norbert@preining.info>2021-09-10 03:01:08 +0000
commit4e370b2ebab8272a89ed81ba95cf068ef2b07ef0 (patch)
tree869e4cc26f36bbfe7c7363149018cc898588b9e2 /macros/latex/contrib/huawei
parent30ebcb04bb501c56bfac1652a749eda69ba28c34 (diff)
CTAN sync 202109100301
Diffstat (limited to 'macros/latex/contrib/huawei')
-rw-r--r--macros/latex/contrib/huawei/huawei.cls43
-rw-r--r--macros/latex/contrib/huawei/huawei.pdfbin333759 -> 332594 bytes
-rw-r--r--macros/latex/contrib/huawei/huawei.tex14
-rw-r--r--macros/latex/contrib/huawei/samples/huawei-charter.tex18
4 files changed, 28 insertions, 47 deletions
diff --git a/macros/latex/contrib/huawei/huawei.cls b/macros/latex/contrib/huawei/huawei.cls
index 52df7f9632..480e84e2b4 100644
--- a/macros/latex/contrib/huawei/huawei.cls
+++ b/macros/latex/contrib/huawei/huawei.cls
@@ -21,12 +21,8 @@
% SOFTWARE.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{huawei}[2021/09/08 0.10.0 Template for Huawei Documents]
+\ProvidesClass{huawei}[2021/09/09 0.11.0 Template for Huawei Documents]
-\newif\ifXL
-\DeclareOption{XL}{\XLtrue}
-\newif\ifXXL
-\DeclareOption{XXL}{\XXLtrue}
\newif\ifnosecurity
\DeclareOption{nosecurity}{\nosecuritytrue}
\newif\ifauthordraft
@@ -104,26 +100,13 @@
\newcommand*\thesecurity{Confidential}
\newcommand*\theid{}
-% Custom commands
\newcommand\nospell[1]{#1}
-\newcommand\headers[1]{\setstretch{0.8}{\small\sffamily\color{gray}#1\par}}
-\newcommand\crumb[2]{\begin{minipage}{\columnwidth}\raggedright\textsc{#1}:\\#2\end{minipage}\vspace{4pt}}
-\usepackage{titlesec}
- \ifXL
- \titleformat*{\section}{\LARGE\bfseries}
- \titleformat*{\subsection}{\Large\bfseries}
- \titleformat*{\subsubsection}{\large\bfseries}
- \titleformat*{\paragraph}{\large\bfseries}
- \titleformat*{\subparagraph}{\large\bfseries}
- \fi
- \ifXXL
- \titleformat*{\section}{\huge\bfseries}
- \titleformat*{\subsection}{\LARGE\bfseries}
- \titleformat*{\subsubsection}{\Large\bfseries}
- \titleformat*{\paragraph}{\large\bfseries}
- \titleformat*{\subparagraph}{\large\bfseries}
- \fi
+\newcommand\HuaweiHeader[1]{{%
+ \setstretch{0.8}%
+ \fontsize{11pt}{11pt}\selectfont%
+ \sffamily\color{gray}#1\par%
+}}
\AtBeginDocument{%
\raggedbottom%
@@ -132,8 +115,6 @@
\setlength\parskip{6pt}%
\setlength\columnsep{32pt}%
\def\arraystretch{1.5}%
- \ifXL\large\fi
- \ifXXL\Large\fi
}
\newcommand\LeftHuaweiBar{%
@@ -187,7 +168,7 @@
\fi%
\fi%
\begin{textblock}{8}[1,0](15.8,0.2)%
- \raggedleft\headers{%
+ \raggedleft\HuaweiHeader{%
\ifnosecurity\else%
\thesecurity
\fi%
@@ -195,7 +176,7 @@
\end{textblock}%
\begin{textblock}{8}[0,1](1.2,15.8)%
\ifnum\value{page}=1\else%
- \headers{%
+ \HuaweiHeader{%
\ifanonymous\else%
\theauthor%
\ifnosecurity\else%
@@ -212,7 +193,7 @@
\fi%
\end{textblock}%
\begin{textblock}{8}[1,1](15.8,15.8)%
- \raggedleft\headers{%
+ \raggedleft\HuaweiHeader{%
\ifnum\value{page}=1\else%
\ifnopaging\else%
Page \#\thepage{} of \pageref*{LastPage}%
@@ -262,6 +243,12 @@
\vspace{2em}
}
+\newcommand\PrintCrumb[2]{%
+ \begin{minipage}{\columnwidth}%
+ \raggedright\textsc{#1}:\\#2%
+ \end{minipage}\vspace{4pt}%
+}
+
\newcommand\PrintThankYouPage{
\newpage
\vspace*{\fill}
diff --git a/macros/latex/contrib/huawei/huawei.pdf b/macros/latex/contrib/huawei/huawei.pdf
index 66c69804bb..c46f5907b1 100644
--- a/macros/latex/contrib/huawei/huawei.pdf
+++ b/macros/latex/contrib/huawei/huawei.pdf
Binary files differ
diff --git a/macros/latex/contrib/huawei/huawei.tex b/macros/latex/contrib/huawei/huawei.tex
index 91bca320d5..63e24594bc 100644
--- a/macros/latex/contrib/huawei/huawei.tex
+++ b/macros/latex/contrib/huawei/huawei.tex
@@ -29,9 +29,9 @@
\begin{document}
\maketitle
-\ff{Version: 0.10.0}
+\ff{Version: 0.11.0}
\newline
-\ff{Date: 2021/09/08}
+\ff{Date: 2021/09/09}
\section{Overview}
@@ -115,12 +115,6 @@ the layout of your document:
\ff{authordraft}
prints a big ``It's a draft'' message across each page.
-\ff{XL}
- makes the font of the entire document a bit larger.
-
-\ff{XXL}
- makes the font of the entire document much larger.
-
\section{Preamble}
In the preamble you can specify meta information about the document,
@@ -229,9 +223,9 @@ we recommend you to use ``crumbs'':
\section*{Project Details}
\begin{multicols}{2}
\raggedright
-\crumb{Budget}{\$100K}
+\PrintCrumb{Budget}{\$100K}
-\crumb{Duration}{5 months}
+\PrintCrumb{Duration}{5 months}
\end{multicols}
\end{document}
\end{minted}
diff --git a/macros/latex/contrib/huawei/samples/huawei-charter.tex b/macros/latex/contrib/huawei/samples/huawei-charter.tex
index 399e1cdc7d..e808392920 100644
--- a/macros/latex/contrib/huawei/samples/huawei-charter.tex
+++ b/macros/latex/contrib/huawei/samples/huawei-charter.tex
@@ -32,23 +32,23 @@
\section*{Project Details}
\begin{multicols}{2}
\raggedright
-\crumb{Author and Project Manager}{\theauthor / \theid}
+\PrintCrumb{Author and Project Manager}{\theauthor / \theid}
-\crumb{Project Name}{Making Compression 15\% Faster}
+\PrintCrumb{Project Name}{Making Compression 15\% Faster}
-\crumb{Technical Adviser}{Jeff Lebowski, 00112233}
+\PrintCrumb{Technical Adviser}{Jeff Lebowski, 00112233}
-\crumb{Cooperation Manager}{Walter Sobchak, 00889977}
+\PrintCrumb{Cooperation Manager}{Walter Sobchak, 00889977}
-\crumb{Budget}{\$99,999}
+\PrintCrumb{Budget}{\$99,999}
-\crumb{Duration}{8 months}
+\PrintCrumb{Duration}{8 months}
-\crumb{Export Control}{No}
+\PrintCrumb{Export Control}{No}
-\crumb{AI Technology Involved}{No}
+\PrintCrumb{AI Technology Involved}{No}
-\crumb{Hardware Supply}{No}
+\PrintCrumb{Hardware Supply}{No}
\end{multicols}