diff options
author | Karl Berry <karl@freefriends.org> | 2021-08-06 21:37:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-08-06 21:37:15 +0000 |
commit | 32cf0b157377d76197f354b2a4ea8ac391122a11 (patch) | |
tree | ada8c1457e6eea7bf4faf88ab4e23d268c65a211 /Master | |
parent | 6cb516e892fb00c83edbf4d4c845c57d1ca0d058 (diff) |
huawei (5aug21)
git-svn-id: svn://tug.org/texlive/trunk@60177 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/huawei/huawei.pdf | bin | 336192 -> 336961 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/huawei/huawei.tex | 10 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/huawei/huawei.cls | 88 |
4 files changed, 65 insertions, 35 deletions
diff --git a/Master/texmf-dist/doc/latex/huawei/huawei.pdf b/Master/texmf-dist/doc/latex/huawei/huawei.pdf Binary files differindex b7a570f9a1e..ce0d26f55b6 100644 --- a/Master/texmf-dist/doc/latex/huawei/huawei.pdf +++ b/Master/texmf-dist/doc/latex/huawei/huawei.pdf diff --git a/Master/texmf-dist/doc/latex/huawei/huawei.tex b/Master/texmf-dist/doc/latex/huawei/huawei.tex index 5e0cc724161..226f2980e04 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.8.0} +\ff{Version: 0.9.0} \newline -\ff{Date: 2021/07/15} +\ff{Date: 2021/08/06} \section{Overview} @@ -126,6 +126,12 @@ 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, 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 0cbc02b9d25..399e1cdc7d1 100644 --- a/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex +++ b/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex @@ -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} diff --git a/Master/texmf-dist/tex/latex/huawei/huawei.cls b/Master/texmf-dist/tex/latex/huawei/huawei.cls index c05ba701754..9dabf913a46 100644 --- a/Master/texmf-dist/tex/latex/huawei/huawei.cls +++ b/Master/texmf-dist/tex/latex/huawei/huawei.cls @@ -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}% } |