diff options
author | Karl Berry <karl@freefriends.org> | 2021-09-10 21:04:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-09-10 21:04:41 +0000 |
commit | a197b66ea4c0ee729d8bfd4e8ef18d8ccdb37ab0 (patch) | |
tree | c721984125557c0cbe3259df2e95ab2c35913fc9 /Master/texmf-dist/tex/latex | |
parent | b582e1d5e47629b72df08ae41d3a31d619e29806 (diff) |
huawei (10sep21)
git-svn-id: svn://tug.org/texlive/trunk@60471 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/huawei/huawei.cls | 43 |
1 files changed, 15 insertions, 28 deletions
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} |