summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-09-10 21:04:41 +0000
committerKarl Berry <karl@freefriends.org>2021-09-10 21:04:41 +0000
commita197b66ea4c0ee729d8bfd4e8ef18d8ccdb37ab0 (patch)
treec721984125557c0cbe3259df2e95ab2c35913fc9 /Master/texmf-dist
parentb582e1d5e47629b72df08ae41d3a31d619e29806 (diff)
huawei (10sep21)
git-svn-id: svn://tug.org/texlive/trunk@60471 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/huawei/huawei.pdfbin333759 -> 332594 bytes
-rw-r--r--Master/texmf-dist/doc/latex/huawei/huawei.tex14
-rw-r--r--Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex18
-rw-r--r--Master/texmf-dist/tex/latex/huawei/huawei.cls43
4 files changed, 28 insertions, 47 deletions
diff --git a/Master/texmf-dist/doc/latex/huawei/huawei.pdf b/Master/texmf-dist/doc/latex/huawei/huawei.pdf
index 66c69804bb3..c46f5907b17 100644
--- a/Master/texmf-dist/doc/latex/huawei/huawei.pdf
+++ b/Master/texmf-dist/doc/latex/huawei/huawei.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/huawei/huawei.tex b/Master/texmf-dist/doc/latex/huawei/huawei.tex
index 91bca320d5f..63e24594bca 100644
--- a/Master/texmf-dist/doc/latex/huawei/huawei.tex
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex b/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex
index 399e1cdc7d1..e8083929208 100644
--- a/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex
+++ b/Master/texmf-dist/doc/latex/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}
diff --git a/Master/texmf-dist/tex/latex/huawei/huawei.cls b/Master/texmf-dist/tex/latex/huawei/huawei.cls
index 52df7f9632e..480e84e2b44 100644
--- a/Master/texmf-dist/tex/latex/huawei/huawei.cls
+++ b/Master/texmf-dist/tex/latex/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}