From 37acdfb25ae9a280366c6ee994127edc42badf9b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 13 Dec 2022 21:07:53 +0000 Subject: huawei (13dec22) git-svn-id: svn://tug.org/texlive/trunk@65264 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/huawei/DEPENDS.txt | 1 + Master/texmf-dist/doc/latex/huawei/huawei.pdf | Bin 804104 -> 805499 bytes Master/texmf-dist/source/latex/huawei/huawei.dtx | 38 ++++++++++++++++------- Master/texmf-dist/tex/latex/huawei/huawei.cls | 24 +++++++------- 4 files changed, 40 insertions(+), 23 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt b/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt index 22b1f7e9306..6c82ab82127 100644 --- a/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt +++ b/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt @@ -1,3 +1,4 @@ +hard pgfopts hard geometry hard anyfontsize hard ragged2e diff --git a/Master/texmf-dist/doc/latex/huawei/huawei.pdf b/Master/texmf-dist/doc/latex/huawei/huawei.pdf index f9612c00734..a9334860219 100644 Binary files a/Master/texmf-dist/doc/latex/huawei/huawei.pdf and b/Master/texmf-dist/doc/latex/huawei/huawei.pdf differ diff --git a/Master/texmf-dist/source/latex/huawei/huawei.dtx b/Master/texmf-dist/source/latex/huawei/huawei.dtx index d9fa5fa2a9b..1810de09da2 100644 --- a/Master/texmf-dist/source/latex/huawei/huawei.dtx +++ b/Master/texmf-dist/source/latex/huawei/huawei.dtx @@ -50,7 +50,7 @@ %\NeedsTeXFormat{LaTeX2e} %\ProvidesClass{huawei} %<*class> -[2022-10-29 0.14.3 Template for Huawei Documents] +[2022-12-13 0.15.0 Template for Huawei Documents] % %<*driver> \documentclass{ltxdoc} @@ -179,6 +179,9 @@ $pdflatex = 'pdflatex %O --shell-escape %S'; % \DescribeMacro{authordraft} % The option |authordraft| prints a big ``It's a draft'' message across each page. +% \DescribeMacro{breaks} +% The option |breaks| forces all |\section| to start from a new page. + % \section{Preamble} % In the preamble you can specify meta information about the document, @@ -332,7 +335,16 @@ $pdflatex = 'pdflatex %O --shell-escape %S'; % \section{Implementation} -% \changes{v0.1.0}{2021/04/18}{Initial version} +% \changes{v0.1.0}{2021/04/18}{The first draft version.} +% \changes{v0.3.0}{2021/05/24}{The cover picture added for front pages.} +% \changes{v0.4.0}{2021/05/26}{The current time is rendered without seconds.} +% \changes{v0.5.0}{2021/05/26}{The \texttt{DEPENDS.txt} file added.} +% \changes{v0.6.0}{2021/06/14}{The \texttt{ffcode} and \texttt{href-ul} packages created an their code removed from this class.} +% \changes{v0.7.0}{2021/06/27}{The \texttt{authordraft} option is now supported.} +% \changes{v0.10.0}{2021/09/08}{Some colors redefined.} +% \changes{v0.11.0}{2021/09/09}{The fixed-width font is rendered correctly now, without \texttt{ffcode}.} +% \changes{v0.12.0}{2021/09/13}{The \texttt{abstract} is now formatted correctly.} +% \changes{v0.14.0}{2022/10/05}{The \texttt{l3build} is now used for build automation, instead of \texttt{Makefile}.} % First, we load the parent class: % \begin{macrocode} @@ -340,8 +352,13 @@ $pdflatex = 'pdflatex %O --shell-escape %S'; % \end{macrocode} % Then, we parse package options: +% \changes{v0.15.0}{2022/12/13}{A new package option \texttt{breaks} introduced, which forces all sections to start from a new page.} % \begin{macrocode} \makeatletter +\DeclareOption{breaks}{ + \let\huawei@oldsection\section + \renewcommand\section{\clearpage\huawei@oldsection} +} \newif\ifhuawei@dark \DeclareOption{dark}{\huawei@darktrue} \newif\ifhuawei@slides @@ -477,12 +494,11 @@ $pdflatex = 'pdflatex %O --shell-escape %S'; % \begin{macro}{\huawei@logo} % Then, we define |\huawei@logo|: % \begin{macrocode} -\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) @@ -641,7 +657,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% @@ -707,12 +723,10 @@ xscale=\SCALE, inner sep=0pt, outer sep=0pt] % \begin{macrocode} \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% @@ -747,7 +761,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}% } % \end{macrocode} % \end{macro} 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{ -- cgit v1.2.3