texlive[60177] Master/texmf-dist: huawei (5aug21)

commits+karl at tug.org commits+karl at tug.org
Fri Aug 6 23:37:16 CEST 2021


Revision: 60177
          http://tug.org/svn/texlive?view=revision&revision=60177
Author:   karl
Date:     2021-08-06 23:37:15 +0200 (Fri, 06 Aug 2021)
Log Message:
-----------
huawei (5aug21)

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-08-06 21:36:53 UTC (rev 60176)
+++ trunk/Master/texmf-dist/doc/latex/huawei/huawei.tex	2021-08-06 21:37:15 UTC (rev 60177)
@@ -29,9 +29,9 @@
 \begin{document}
 \maketitle
 
-\ff{Version: 0.8.0}
+\ff{Version: 0.9.0}
 \newline
-\ff{Date: 2021/07/15}
+\ff{Date: 2021/08/06}
 
 \section{Overview}
 
@@ -126,6 +126,12 @@
 \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,

Modified: trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex	2021-08-06 21:36:53 UTC (rev 60176)
+++ trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex	2021-08-06 21:37:15 UTC (rev 60177)
@@ -20,7 +20,7 @@
 % OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 % SOFTWARE.
 
-\documentclass[landscape,nocover]{../huawei}
+\documentclass[landscape,nocover,XL]{../huawei}
 \renewcommand*\thetitle{Test Charter}
 \renewcommand*\thesubtitle{Technology Project Charter}
 \renewcommand*\theauthor{Yegor Bugayenko}

Modified: trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2021-08-06 21:36:53 UTC (rev 60176)
+++ trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2021-08-06 21:37:15 UTC (rev 60177)
@@ -21,8 +21,12 @@
 % SOFTWARE.
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{huawei}[2021/07/15 0.8.0 Template for Huawei Documents]
+\ProvidesClass{huawei}[2021/08/06 0.9.0 Template for Huawei Documents]
 
+\newif\ifXL
+\DeclareOption{XL}{\XLtrue}
+\newif\ifXXL
+\DeclareOption{XXL}{\XXLtrue}
 \newif\ifnosecurity
 \DeclareOption{nosecurity}{\nosecuritytrue}
 \newif\ifauthordraft
@@ -101,6 +105,22 @@
 \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
+
 \AtBeginDocument{%
   \raggedbottom%
   \setlength\topskip{0mm}%
@@ -108,6 +128,8 @@
   \setlength\parskip{6pt}%
   \setlength\columnsep{32pt}%
   \def\arraystretch{1.5}%
+  \ifXL\large\fi
+  \ifXXL\Large\fi
 }
 
 \newcommand\LeftHuaweiBar{%
@@ -240,7 +262,8 @@
   \newpage
   \vspace*{\fill}
   \begin{center}
-  {\Huge\color{huawei-red}\textbf{Thank you!}}
+    \normalsize
+    {\Huge\color{huawei-red}\textbf{Thank you!}}
   \end{center}
   \vspace*{\fill}
 }
@@ -298,41 +321,42 @@
   \newpage
   \vspace*{1in}
   \begin{center}
-  \begin{minipage}{0.6\columnwidth}\raggedright
-  \setlength{\parskip}{6pt}
-  {\Huge\color{huawei-red}\textbf{Thank you!}}
+    \begin{minipage}{0.6\columnwidth}\raggedright
+      \normalsize
+      \setlength{\parskip}{6pt}
+      {\Huge\color{huawei-red}\textbf{Thank you!}}
 
-  \vspace{0.5in}
+      \vspace{0.5in}
 
-  \begin{CJK}{UTF8}{gbsn}
-  把数字世界带入每个人、每个家庭、
每个组织、构建万物互联的智能世界。
-  \end{CJK}
+      \begin{CJK}{UTF8}{gbsn}
+      把数字世界带入每个人、每个家庭、
每个组织、构建万物互联的智能世界。
+      \end{CJK}
 
-  Bring digital to every person, home and organization
-  \newline
-  for a fully connected, intelligent world.
+      Bring digital to every person, home and organization
+      \newline
+      for a fully connected, intelligent world.
 
-  \textbf{%
-    Copyright \copyright{} \the\year{} \thecompany{}
-    \newline
-    All Rights Reserved.%
-  }
+      \textbf{%
+        Copyright \copyright{} \the\year{} \thecompany{}
+        \newline
+        All Rights Reserved.%
+      }
 
-  The information in this document may contain predictive
-  statements including, without limitation, statements regarding
-  the future financial and operating results, future product
-  portfolio, new technology, etc. There are a number of factors that
-  could cause actual results and developments to differ materially
-  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%
-    The author%
-  \else%
-    \thecompany{}%
-  \fi
-  may change the information at any time without notice.
-  \end{minipage}
+      The information in this document may contain predictive
+      statements including, without limitation, statements regarding
+      the future financial and operating results, future product
+      portfolio, new technology, etc. There are a number of factors that
+      could cause actual results and developments to differ materially
+      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%
+        The author%
+      \else%
+        \thecompany{}%
+      \fi
+      may change the information at any time without notice.
+    \end{minipage}
   \end{center}%
 }
 



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