texlive[65264] Master/texmf-dist: huawei (13dec22)
commits+karl at tug.org
commits+karl at tug.org
Tue Dec 13 22:07:53 CET 2022
Revision: 65264
http://tug.org/svn/texlive?view=revision&revision=65264
Author: karl
Date: 2022-12-13 22:07:53 +0100 (Tue, 13 Dec 2022)
Log Message:
-----------
huawei (13dec22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt
trunk/Master/texmf-dist/doc/latex/huawei/huawei.pdf
trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx
trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls
Modified: trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt 2022-12-13 21:07:21 UTC (rev 65263)
+++ trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt 2022-12-13 21:07:53 UTC (rev 65264)
@@ -1,3 +1,4 @@
+hard pgfopts
hard geometry
hard anyfontsize
hard ragged2e
Modified: trunk/Master/texmf-dist/doc/latex/huawei/huawei.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx 2022-12-13 21:07:21 UTC (rev 65263)
+++ trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx 2022-12-13 21:07:53 UTC (rev 65264)
@@ -50,7 +50,7 @@
%<class>\NeedsTeXFormat{LaTeX2e}
%<class>\ProvidesClass{huawei}
%<*class>
-[2022-10-29 0.14.3 Template for Huawei Documents]
+[2022-12-13 0.15.0 Template for Huawei Documents]
%</class>
%<*driver>
\documentclass{ltxdoc}
@@ -179,6 +179,9 @@
% \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 @@
% \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 @@
% \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 at oldsection\section
+ \renewcommand\section{\clearpage\huawei at oldsection}
+}
\newif\ifhuawei at dark
\DeclareOption{dark}{\huawei at darktrue}
\newif\ifhuawei at slides
@@ -477,12 +494,11 @@
% \begin{macro}{\huawei at logo}
% Then, we define |\huawei at logo|:
% \begin{macrocode}
-\makeatletter\newcommand\huawei at logo{
+\makeatletter\newcommand\huawei at logo[1]{
\def\BLACK{\ifhuawei at dark white\else black\fi}
\def\BLANK{\ifhuawei at dark black\else white\fi}
-\def\SCALE{\ifhuawei at 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 @@
\ifnum\value{page}=1\else%
\ifhuawei at nobrand\else%
\begin{textblock}{8}[0,0](1.2,0.2)%
- \huawei at logo%
+ \huawei at logo{\ifhuawei at slides 1.8\else 1\fi}%
\end{textblock}%
\fi%
\fi%
@@ -707,12 +723,10 @@
% \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 at nobrand\else%
\ifhuawei at anonymous\else%
\ifx\thecompany\empty\else%
@@ -747,7 +761,7 @@
\newcommand\PrintCrumb[2]{%
\begin{minipage}{\columnwidth}%
\raggedright\textsc{#1}:\\#2%
- \end{minipage}\vspace{4pt}%
+ \end{minipage}\vspace{1em}%
}
% \end{macrocode}
% \end{macro}
Modified: trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls 2022-12-13 21:07:21 UTC (rev 65263)
+++ trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls 2022-12-13 21:07:53 UTC (rev 65264)
@@ -32,7 +32,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{huawei}
-[2022-10-29 0.14.3 Template for Huawei Documents]
+[2022-12-13 0.15.0 Template for Huawei Documents]
@@ -78,9 +78,14 @@
+
\LoadClass[12pt]{article}
\makeatletter
+\DeclareOption{breaks}{
+ \let\huawei at oldsection\section
+ \renewcommand\section{\clearpage\huawei at oldsection}
+}
\newif\ifhuawei at dark
\DeclareOption{dark}{\huawei at darktrue}
\newif\ifhuawei at slides
@@ -184,12 +189,11 @@
\end{textblock}%
}\makeatother
-\makeatletter\newcommand\huawei at logo{
+\makeatletter\newcommand\huawei at logo[1]{
\def\BLACK{\ifhuawei at dark white\else black\fi}
\def\BLANK{\ifhuawei at dark black\else white\fi}
-\def\SCALE{\ifhuawei at 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 @@
\ifnum\value{page}=1\else%
\ifhuawei at nobrand\else%
\begin{textblock}{8}[0,0](1.2,0.2)%
- \huawei at logo%
+ \huawei at logo{\ifhuawei at slides 1.8\else 1\fi}%
\end{textblock}%
\fi%
\fi%
@@ -401,12 +405,10 @@
\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 at nobrand\else%
\ifhuawei at anonymous\else%
\ifx\thecompany\empty\else%
@@ -436,7 +438,7 @@
\newcommand\PrintCrumb[2]{%
\begin{minipage}{\columnwidth}%
\raggedright\textsc{#1}:\\#2%
- \end{minipage}\vspace{4pt}%
+ \end{minipage}\vspace{1em}%
}
\newcommand\PrintThankYouPage{
More information about the tex-live-commits
mailing list.