summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/huawei
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-08-07 03:02:24 +0000
committerNorbert Preining <norbert@preining.info>2021-08-07 03:02:24 +0000
commit5991e0faa2ab9a1b9bdb72d6399cff4444b02f35 (patch)
tree56eb353e5fad090423361e6da2a2864a3a77c86b /macros/latex/contrib/huawei
parente40ca5f6d9078173240b437a77d0fcc762e69bd4 (diff)
CTAN sync 202108070302
Diffstat (limited to 'macros/latex/contrib/huawei')
-rw-r--r--macros/latex/contrib/huawei/huawei.cls88
-rw-r--r--macros/latex/contrib/huawei/huawei.pdfbin336192 -> 336961 bytes
-rw-r--r--macros/latex/contrib/huawei/huawei.tex10
-rw-r--r--macros/latex/contrib/huawei/samples/huawei-charter.tex2
4 files changed, 65 insertions, 35 deletions
diff --git a/macros/latex/contrib/huawei/huawei.cls b/macros/latex/contrib/huawei/huawei.cls
index c05ba70175..9dabf913a4 100644
--- a/macros/latex/contrib/huawei/huawei.cls
+++ b/macros/latex/contrib/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}%
}
diff --git a/macros/latex/contrib/huawei/huawei.pdf b/macros/latex/contrib/huawei/huawei.pdf
index b7a570f9a1..ce0d26f55b 100644
--- a/macros/latex/contrib/huawei/huawei.pdf
+++ b/macros/latex/contrib/huawei/huawei.pdf
Binary files differ
diff --git a/macros/latex/contrib/huawei/huawei.tex b/macros/latex/contrib/huawei/huawei.tex
index 5e0cc72416..226f2980e0 100644
--- a/macros/latex/contrib/huawei/huawei.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/huawei/samples/huawei-charter.tex b/macros/latex/contrib/huawei/samples/huawei-charter.tex
index 0cbc02b9d2..399e1cdc7d 100644
--- a/macros/latex/contrib/huawei/samples/huawei-charter.tex
+++ b/macros/latex/contrib/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}