texlive[60501] Master/texmf-dist: huawei (13sep21)

commits+karl at tug.org commits+karl at tug.org
Mon Sep 13 22:09:03 CEST 2021


Revision: 60501
          http://tug.org/svn/texlive?view=revision&revision=60501
Author:   karl
Date:     2021-09-13 22:09:02 +0200 (Mon, 13 Sep 2021)
Log Message:
-----------
huawei (13sep21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt
    trunk/Master/texmf-dist/doc/latex/huawei/huawei.pdf
    trunk/Master/texmf-dist/doc/latex/huawei/huawei.tex
    trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex
    trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex
    trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls

Modified: trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt	2021-09-13 20:08:48 UTC (rev 60500)
+++ trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt	2021-09-13 20:09:02 UTC (rev 60501)
@@ -28,3 +28,4 @@
 hard svg
 hard textpos
 hard fancyhdr
+hard changepage

Modified: trunk/Master/texmf-dist/doc/latex/huawei/huawei.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/huawei/huawei.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/huawei.tex	2021-09-13 20:08:48 UTC (rev 60500)
+++ trunk/Master/texmf-dist/doc/latex/huawei/huawei.tex	2021-09-13 20:09:02 UTC (rev 60501)
@@ -29,9 +29,9 @@
 \begin{document}
 \maketitle
 
-\ff{Version: 0.11.0}
+\ff{Version: 0.12.0}
 \newline
-\ff{Date: 2021/09/09}
+\ff{Date: 2021/09/13}
 
 \section{Overview}
 

Modified: trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex	2021-09-13 20:08:48 UTC (rev 60500)
+++ trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex	2021-09-13 20:09:02 UTC (rev 60501)
@@ -27,6 +27,10 @@
 \addbibresource{huawei-main.bib}
 \begin{document}
 
+\begin{abstract}This is just a demo document, to show how
+this package works and formats simple business documents. This
+block of text is the abstract.\end{abstract}
+
 \maketitle
 
 In this document you don't see the logo, because we use \ff{nobrand}

Modified: trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex	2021-09-13 20:08:48 UTC (rev 60500)
+++ trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex	2021-09-13 20:09:02 UTC (rev 60501)
@@ -21,9 +21,9 @@
 % SOFTWARE.
 
 \documentclass[landscape,nocover,XL]{../huawei}
-\renewcommand*\thetitle{Test Charter}
-\renewcommand*\thesubtitle{Technology Project Charter}
-\renewcommand*\theauthor{Yegor Bugayenko}
+% \renewcommand*\thetitle{Test Charter}
+% \renewcommand*\thesubtitle{Technology Project Charter}
+% \renewcommand*\theauthor{Yegor Bugayenko}
 \begin{document}
 
 \PrintFirstPage{}

Modified: trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2021-09-13 20:08:48 UTC (rev 60500)
+++ trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2021-09-13 20:09:02 UTC (rev 60501)
@@ -21,34 +21,36 @@
 % SOFTWARE.
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{huawei}[2021/09/09 0.11.0 Template for Huawei Documents]
+\ProvidesClass{huawei}[2021/09/13 0.12.0 Template for Huawei Documents]
 
-\newif\ifnosecurity
-\DeclareOption{nosecurity}{\nosecuritytrue}
-\newif\ifauthordraft
-\DeclareOption{authordraft}{\authordrafttrue}
-\newif\ifnobrand
-\DeclareOption{nobrand}{\nobrandtrue}
-\newif\ifnodate
-\DeclareOption{nodate}{\nodatetrue}
-\newif\ifnocover
-\DeclareOption{nocover}{\nocovertrue}
-\newif\ifnopaging
-\DeclareOption{nopaging}{\nopagingtrue}
-\newif\iflandscape
-\DeclareOption{landscape}{\landscapetrue}
-\newif\ifanonymous
-\DeclareOption{anonymous}{\anonymoustrue}
+\LoadClass[12pt]{article}
+
+\makeatletter
+\newif\ifhuawei at nosecurity
+\DeclareOption{nosecurity}{\huawei at nosecuritytrue}
+\newif\ifhuawei at authordraft
+\DeclareOption{authordraft}{\huawei at authordrafttrue}
+\newif\ifhuawei at nobrand
+\DeclareOption{nobrand}{\huawei at nobrandtrue}
+\newif\ifhuawei at nodate
+\DeclareOption{nodate}{\huawei at nodatetrue}
+\newif\ifhuawei at nocover
+\DeclareOption{nocover}{\huawei at nocovertrue}
+\newif\ifhuawei at nopaging
+\DeclareOption{nopaging}{\huawei at nopagingtrue}
+\newif\ifhuawei at landscape
+\DeclareOption{landscape}{\huawei at landscapetrue}
+\newif\ifhuawei at anonymous
+\DeclareOption{anonymous}{\huawei at anonymoustrue}
 \ProcessOptions\relax
+\makeatother
 
-\LoadClass[12pt]{article}
-
 \RequirePackage{geometry}
-\iflandscape
+\makeatletter\ifhuawei at landscape
   \geometry{paperwidth=16in, paperheight=9in, left=4in, right=2in, top=1.5in, bottom=1.5in}
 \else
   \geometry{a4paper, left=1.5in, right=1in, top=1.2in, bottom=1.2in}
-\fi
+\fi\makeatother
 \RequirePackage[T1]{fontenc}
 \RequirePackage[utf8]{inputenc}
 \RequirePackage{CJKutf8}
@@ -90,40 +92,19 @@
 \RequirePackage[absolute]{textpos}
   \TPGrid{16}{16}
 
-% Our custom commands to redefine:
-\renewcommand\title[1]{\renewcommand\thetitle{#1}}
-\newcommand\thetitle{Untitled}
-\newcommand*\thecompany{Huawei Technologies Co., Ltd.}
-\newcommand\thesubtitle{}
-\renewcommand\author[1]{\renewcommand\theauthor{#1}}
-\newcommand\theauthor{Unknown}
-\newcommand*\thesecurity{Confidential}
-\newcommand*\theid{}
-
-\newcommand\nospell[1]{#1}
-
-\newcommand\HuaweiHeader[1]{{%
+\makeatletter\newcommand\huawei at header[1]{{%
   \setstretch{0.8}%
-  \fontsize{11pt}{11pt}\selectfont%
+  \fontsize{11pt}{13pt}\selectfont%
   \sffamily\color{gray}#1\par%
-}}
+}}\makeatother
 
-\AtBeginDocument{%
-  \raggedbottom%
-  \setlength\topskip{0mm}%
-  \setlength\parindent{0pt}%
-  \setlength\parskip{6pt}%
-  \setlength\columnsep{32pt}%
-  \def\arraystretch{1.5}%
-}
-
-\newcommand\LeftHuaweiBar{%
+\makeatletter\newcommand\huawei at bar{%
   \begin{textblock}{1}[0,0](0,0)%
     \tikz \node[fill=red,minimum width=\TPHorizModule,minimum height=16\TPVertModule] {};%
   \end{textblock}%
-}
+}\makeatother
 
-\newcommand\PrintHuaweiLogo{
+\makeatletter\newcommand\huawei at logo{
   \begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-1, inner sep=0pt, outer sep=0pt]
     \begin{scope}[even odd rule,line width=0.800pt]
       \begin{scope}[shift={(0,-0.00024)}]
@@ -145,15 +126,15 @@
       \end{scope}%
     \end{scope}%
   \end{tikzpicture}%
-}
+}\makeatother
 
 \RequirePackage{fancyhdr}
   \pagestyle{fancy}
   \renewcommand{\headrulewidth}{0pt}
   \fancyhf{}
-  \fancyfoot[L]{
-    \LeftHuaweiBar{}
-    \ifauthordraft%
+  \makeatletter\fancyfoot[L]{
+    \huawei at bar
+    \ifhuawei at authordraft%
       \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}
@@ -161,15 +142,15 @@
       \end{textblock}%
     \else\fi%
     \ifnum\value{page}=1\else%
-      \ifnobrand\else%
+      \ifhuawei at nobrand\else%
         \begin{textblock}{8}[0,0](1.2,0.2)%
-          \PrintHuaweiLogo{}%
+          \huawei at logo%
         \end{textblock}%
       \fi%
     \fi%
     \begin{textblock}{8}[1,0](15.8,0.2)%
-      \raggedleft\HuaweiHeader{%
-        \ifnosecurity\else%
+      \raggedleft\huawei at header{%
+        \ifhuawei at nosecurity\else%
           \thesecurity
         \fi%
       }%
@@ -176,17 +157,17 @@
     \end{textblock}%
     \begin{textblock}{8}[0,1](1.2,15.8)%
       \ifnum\value{page}=1\else%
-        \HuaweiHeader{%
-          \ifanonymous\else%
+        \huawei at header{%
+          \ifhuawei at anonymous\else%
             \theauthor%
-            \ifnosecurity\else%
+            \ifhuawei at nosecurity\else%
               \ifx\theid\empty\else,\theid\fi
             \fi%
-            \ifnobrand\else%
+            \ifhuawei at nobrand\else%
               \newline
             \fi%
           \fi%
-          \ifnobrand\else%
+          \ifhuawei at nobrand\else%
             \thecompany{}
           \fi%
         }%
@@ -193,23 +174,28 @@
       \fi%
     \end{textblock}%
     \begin{textblock}{8}[1,1](15.8,15.8)%
-      \raggedleft\HuaweiHeader{%
+      \raggedleft\huawei at header{%
         \ifnum\value{page}=1\else%
-          \ifnopaging\else%
+          \ifhuawei at nopaging\else%
             Page \#\thepage{} of \pageref*{LastPage}%
-            \ifnodate\else%
+            \ifhuawei at nodate\else%
               \\
             \fi%
           \fi%
         \fi%
-        \ifnodate\else%
+        \ifhuawei at nodate\else%
           \today{} \settimeformat{daytime}\currenttime{}%
         \fi%
       }%
     \end{textblock}%
-  }
+  }\makeatother
 
-\renewcommand\maketitle{%
+\RequirePackage{changepage}
+\renewenvironment{abstract}
+  {\begin{adjustwidth}{0pt}{1in}{\scshape Abstract:}\newline\small}
+  {\end{adjustwidth}}
+
+\makeatletter\renewcommand\maketitle{%
   \vspace*{18pt}
   {\bfseries{\Huge\thetitle}}
   \ifx\thesubtitle\empty\else%
@@ -217,8 +203,8 @@
     {\color{gray!50!black}\large\thesubtitle}
   \fi
   \\[18pt]
-  \ifnobrand\else%
-    \ifanonymous\else%
+  \ifhuawei at nobrand\else%
+    \ifhuawei at anonymous\else%
       \ifx\thecompany\empty\else%
         \thecompany\newline
       \fi
@@ -225,15 +211,15 @@
     \fi
   \fi
   \ifx\theauthor\empty\else%
-    {\scshape\ifanonymous
+    {\scshape\ifhuawei at anonymous
       Anonymous Authors
     \else%
       \theauthor
     \fi}%
   \fi%
-  \ifanonymous\else%
+  \ifhuawei at anonymous\else%
     \ifx\theauthor\empty\else
-      \ifnobrand\else%
+      \ifhuawei at nobrand\else%
         \ifx\theid\empty\else
           $\;$/ {\theid}
         \fi
@@ -241,7 +227,7 @@
     \fi
   \fi
   \vspace{2em}
-}
+}\makeatother
 
 \newcommand\PrintCrumb[2]{%
   \begin{minipage}{\columnwidth}%
@@ -259,7 +245,7 @@
   \vspace*{\fill}
 }
 
-\newcommand\PrintDisclaimer{%
+\makeatletter\newcommand\PrintDisclaimer{%
   \justify\vspace*{\fill}%
   \begingroup%
   \setstretch{0.55}%
@@ -266,7 +252,7 @@
   \sffamily\scriptsize\color{gray!50!black}%
   \textbf{Disclaimer}: The opinions expressed in this document are in good faith and
   while every care has been taken in preparing it,
-  \ifnobrand%
+  \ifhuawei at nobrand%
     the author%
   \else%
     \thecompany{}%
@@ -274,7 +260,7 @@
   makes no representations and gives no warranties of whatever
   nature in respect of these documents, including but not limited to the
   accuracy or completeness of any information, facts and/or opinions contained therein.
-  \ifnobrand%
+  \ifhuawei at nobrand%
     The author%
   \else%
     \thecompany{}%
@@ -284,13 +270,13 @@
   findings in these documents.
   \par
   \endgroup%
-}
+}\makeatother
 
-\newcommand\PrintFirstPage[1]{
-  \iflandscape\else
+\makeatletter\newcommand\PrintFirstPage[1]{
+  \ifhuawei at landscape\else
     \PackageError{huawei}{It's allowed to use PrintFirstPage only in landscape mode}{Read huawei.pdf for more information}
   \fi
-  \LeftHuaweiBar{}
+  \huawei at bar
   \def\param{#1}%
   \ifx\param\empty\else
     \includegraphics[height=2in]{#1}
@@ -298,15 +284,15 @@
   \fi
   \vspace*{0.5in}
   \maketitle
-  \ifnocover\else
+  \ifhuawei at nocover\else
     \begin{textblock}{14}[1,1](14,14)
       \raggedleft\includegraphics[height=3.6in]{huawei-cover-picture.pdf}
     \end{textblock}
   \fi
-}
+}\makeatother
 
-\newcommand\PrintLastPage{
-  \iflandscape\else
+\makeatletter\newcommand\PrintLastPage{
+  \ifhuawei at landscape\else
     \PackageError{huawei}{It's allowed to use PrintLastPage only in landscape mode}{Read huawei.pdf for more information}
   \fi
   \newpage
@@ -341,7 +327,7 @@
       from those expressed or implied in the predictive statements.
       Therefore, such information is provided for reference purpose
       only and constitutes neither an offer nor an acceptance.
-      \ifnobrand%
+      \ifhuawei at nobrand%
         The author%
       \else%
         \thecompany{}%
@@ -349,18 +335,38 @@
       may change the information at any time without notice.
     \end{minipage}
   \end{center}%
-}
+}\makeatother
 
-\newcommand\PrintBibliography{
+\makeatletter\newcommand\PrintBibliography{
   \setlength\bibitemsep{3pt}
   \AtNextBibliography{\small}
   \newpage
   \raggedright
-  \iflandscape
+  \ifhuawei at landscape
     \begin{multicols}{3}\setstretch{0.95}\printbibliography\end{multicols}
   \else
     \begin{multicols}{2}\setstretch{0.95}\printbibliography\end{multicols}
   \fi
+}\makeatother
+
+\AtBeginDocument{%
+  \raggedbottom%
+  \setlength\topskip{0mm}%
+  \setlength\parindent{0pt}%
+  \setlength\parskip{6pt}%
+  \setlength\columnsep{32pt}%
+  \def\arraystretch{1.5}%
 }
 
+\renewcommand\title[1]{\renewcommand\thetitle{#1}}
+\newcommand\thetitle{\textbackslash{}thetitle}
+\newcommand*\thecompany{Huawei Technologies Co., Ltd.}
+\newcommand\thesubtitle{}
+\renewcommand\author[1]{\renewcommand\theauthor{#1}}
+\newcommand\theauthor{\textbackslash{}theauthor}
+\newcommand*\thesecurity{Confidential}
+\newcommand*\theid{}
+
+\ifcsname nospell\endcsname\else\newcommand\nospell[1]{#1}\fi
+
 \endinput
\ No newline at end of file



More information about the tex-live-commits mailing list.