texlive[60471] Master/texmf-dist: huawei (10sep21)

commits+karl at tug.org commits+karl at tug.org
Fri Sep 10 23:04:42 CEST 2021


Revision: 60471
          http://tug.org/svn/texlive?view=revision&revision=60471
Author:   karl
Date:     2021-09-10 23:04:41 +0200 (Fri, 10 Sep 2021)
Log Message:
-----------
huawei (10sep21)

Modified Paths:
--------------
    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-charter.tex
    trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls

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-10 21:04:29 UTC (rev 60470)
+++ trunk/Master/texmf-dist/doc/latex/huawei/huawei.tex	2021-09-10 21:04:41 UTC (rev 60471)
@@ -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 @@
 \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 @@
 \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}

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-10 21:04:29 UTC (rev 60470)
+++ trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex	2021-09-10 21:04:41 UTC (rev 60471)
@@ -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}
 

Modified: trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2021-09-10 21:04:29 UTC (rev 60470)
+++ trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2021-09-10 21:04:41 UTC (rev 60471)
@@ -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}



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