summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-12-13 21:07:53 +0000
committerKarl Berry <karl@freefriends.org>2022-12-13 21:07:53 +0000
commit37acdfb25ae9a280366c6ee994127edc42badf9b (patch)
tree78040445f23396bdbc87f44bfe8f5084c0b63ec3 /Master/texmf-dist/tex/latex
parent8902c3c391b4abe6a879cd84be30ae1dcd856bd8 (diff)
huawei (13dec22)
git-svn-id: svn://tug.org/texlive/trunk@65264 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/huawei/huawei.cls24
1 files changed, 13 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/huawei/huawei.cls b/Master/texmf-dist/tex/latex/huawei/huawei.cls
index e1d9d8404f7..3cef6fe58dd 100644
--- a/Master/texmf-dist/tex/latex/huawei/huawei.cls
+++ b/Master/texmf-dist/tex/latex/huawei/huawei.cls
@@ -32,7 +32,8 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{huawei}
-[2022-10-29 0.14.3 Template for Huawei Documents]
+[2022-12-13 0.15.0 Template for Huawei Documents]
+
@@ -81,6 +82,10 @@
\LoadClass[12pt]{article}
\makeatletter
+\DeclareOption{breaks}{
+ \let\huawei@oldsection\section
+ \renewcommand\section{\clearpage\huawei@oldsection}
+}
\newif\ifhuawei@dark
\DeclareOption{dark}{\huawei@darktrue}
\newif\ifhuawei@slides
@@ -184,12 +189,11 @@
\end{textblock}%
}\makeatother
-\makeatletter\newcommand\huawei@logo{
+\makeatletter\newcommand\huawei@logo[1]{
\def\BLACK{\ifhuawei@dark white\else black\fi}
\def\BLANK{\ifhuawei@dark black\else white\fi}
-\def\SCALE{\ifhuawei@slides 1.8\else 1\fi}
-\begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-\SCALE,
-xscale=\SCALE, inner sep=0pt, outer sep=0pt]
+\begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-#1,
+xscale=#1, inner sep=0pt, outer sep=0pt]
\begin{scope}[even odd rule,line width=0.800pt]
\begin{scope}[shift={(0,-0.00024)}]
\path[fill=\BLACK] (10.9375,30.2240) -- (10.9375,33.6097)
@@ -344,7 +348,7 @@ xscale=\SCALE, inner sep=0pt, outer sep=0pt]
\ifnum\value{page}=1\else%
\ifhuawei@nobrand\else%
\begin{textblock}{8}[0,0](1.2,0.2)%
- \huawei@logo%
+ \huawei@logo{\ifhuawei@slides 1.8\else 1\fi}%
\end{textblock}%
\fi%
\fi%
@@ -401,12 +405,10 @@ xscale=\SCALE, inner sep=0pt, outer sep=0pt]
\makeatletter\renewcommand\maketitle{%
\vspace*{18pt}
- {\bfseries{\Huge\thetitle}}
+ {\bfseries{\Huge\thetitle\par}}
\ifx\thesubtitle\empty\else%
- \\[6pt]
- {\color{gray!50!black}\large\thesubtitle}
+ {\color{gray!50!black}\large\thesubtitle\par}
\fi
- \\[18pt]
\ifhuawei@nobrand\else%
\ifhuawei@anonymous\else%
\ifx\thecompany\empty\else%
@@ -436,7 +438,7 @@ xscale=\SCALE, inner sep=0pt, outer sep=0pt]
\newcommand\PrintCrumb[2]{%
\begin{minipage}{\columnwidth}%
\raggedright\textsc{#1}:\\#2%
- \end{minipage}\vspace{4pt}%
+ \end{minipage}\vspace{1em}%
}
\newcommand\PrintThankYouPage{