From 2bc4c62a1034b71c0ac674ee8eec19b7390d2334 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 27 Oct 2021 03:00:57 +0000 Subject: CTAN sync 202110270300 --- macros/latex/contrib/huawei/DEPENDS.txt | 1 + macros/latex/contrib/huawei/huawei.cls | 52 ++++++++++++++++----- macros/latex/contrib/huawei/huawei.pdf | Bin 332659 -> 332985 bytes macros/latex/contrib/huawei/huawei.tex | 12 ++++- .../contrib/huawei/samples/huawei-charter.tex | 2 +- 5 files changed, 52 insertions(+), 15 deletions(-) (limited to 'macros/latex/contrib/huawei') diff --git a/macros/latex/contrib/huawei/DEPENDS.txt b/macros/latex/contrib/huawei/DEPENDS.txt index 0b4ee96ab5..9fd9cd6677 100644 --- a/macros/latex/contrib/huawei/DEPENDS.txt +++ b/macros/latex/contrib/huawei/DEPENDS.txt @@ -29,3 +29,4 @@ hard svg hard textpos hard fancyhdr hard changepage +hard pagecolor diff --git a/macros/latex/contrib/huawei/huawei.cls b/macros/latex/contrib/huawei/huawei.cls index 0e63e27b3c..0d63a46f55 100644 --- a/macros/latex/contrib/huawei/huawei.cls +++ b/macros/latex/contrib/huawei/huawei.cls @@ -21,11 +21,15 @@ % SOFTWARE. \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{huawei}[2021/09/13 0.12.0 Template for Huawei Documents] +\ProvidesClass{huawei}[2021/10/26 0.13.1 Template for Huawei Documents] \LoadClass[12pt]{article} \makeatletter +\newif\ifhuawei@dark +\DeclareOption{dark}{\huawei@darktrue} +\newif\ifhuawei@slides +\DeclareOption{slides}{\huawei@slidestrue} \newif\ifhuawei@nosecurity \DeclareOption{nosecurity}{\huawei@nosecuritytrue} \newif\ifhuawei@authordraft @@ -85,6 +89,7 @@ \definecolor{yellow}{HTML}{F2DC5D} \definecolor{blue}{HTML}{2274A5} \definecolor{green}{HTML}{499167} + \definecolor{orange}{HTML}{F06543} \RequirePackage{tikz} \RequirePackage{tabularx} \RequirePackage{titling} @@ -93,8 +98,13 @@ \TPGrid{16}{16} \makeatletter\newcommand\huawei@header[1]{{% - \setstretch{0.8}% - \fontsize{11pt}{13pt}\selectfont% + \ifhuawei@slides% + \setstretch{0.8}% + \fontsize{19pt}{24pt}\selectfont% + \else% + \setstretch{0.8}% + \fontsize{11pt}{13pt}\selectfont% + \fi% \sffamily\color{gray}#1\par% }}\makeatother @@ -105,16 +115,19 @@ }\makeatother \makeatletter\newcommand\huawei@logo{ - \begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-1, inner sep=0pt, outer sep=0pt] + \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{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) .. controls (10.9375,34.5713) and (10.4603,35.0845) .. (9.5932,35.0845) .. controls (8.7212,35.0845) and (8.2411,34.5565) .. (8.2411,33.5686) -- (8.2411,30.2278) -- (7.0415,30.2278) -- (7.0415,33.6097) .. controls (7.0415,35.2737) and (7.9658,36.2272) .. (9.5774,36.2272) .. controls (11.2041,36.2272) and (12.1371,35.2554) .. (12.1371,33.5609) -- (12.1371,30.2240) -- (10.9375,30.2240) -- cycle; - \path[fill=black] (15.3511,30.2240) -- (12.7456,36.1351) -- (13.9702,36.1351) -- (14.4731,34.9903) -- (14.5091,34.9045) -- (17.2158,34.9045) -- (17.7467,36.1351) -- (19.0045,36.1351) -- (16.4233,30.2590) -- (16.4001,30.2240) -- cycle; - \path[fill=black] (22.4840,30.2240) -- (21.1414,34.2912) -- (19.8344,30.2271) -- (18.5578,30.2271) -- (20.6186,36.1388) -- (21.6120,36.1388) -- (22.9573,32.2553) -- (24.3016,36.1388) -- (25.3034,36.1388) -- (27.3592,30.2271) -- (26.1152,30.2271) -- (24.8055,34.2912) -- (23.4626,30.2240) -- cycle; - \path[fill=black] (34.2236,30.2240) -- (34.2236,36.1300) -- (35.4074,36.1300) -- (35.4074,30.2240) -- cycle; - \path[fill=black] (0.2686,30.2244) -- (0.2686,36.1384) -- (1.4686,36.1384) -- (1.4686,33.7365) -- (4.1780,33.7365) -- (4.1780,36.1384) -- (5.3783,36.1384) -- (5.3783,30.2244) -- (4.1780,30.2244) -- (4.1780,32.6102) -- (1.4686,32.6102) -- (1.4686,30.2244) -- cycle; - \path[fill=black] (28.3267,30.2284) -- (28.3267,36.1344) -- (32.7928,36.1344) -- (32.7928,35.0575) -- (29.5105,35.0575) -- (29.5105,33.5931) -- (31.6931,33.5931) -- (31.6931,32.5160) -- (29.5105,32.5160) -- (29.5105,31.3052) -- (32.6785,31.3052) -- (32.6785,30.2284) -- cycle; - \path[fill=white] (15.8594,31.7207) -- (16.7149,33.7008) -- (16.7119,33.7008) -- (16.7701,33.8374) -- (14.9552,33.8374) -- (15.0127,33.7008) -- (15.0117,33.7008) -- cycle; + \path[fill=\BLACK] (10.9375,30.2240) -- (10.9375,33.6097) .. controls (10.9375,34.5713) and (10.4603,35.0845) .. (9.5932,35.0845) .. controls (8.7212,35.0845) and (8.2411,34.5565) .. (8.2411,33.5686) -- (8.2411,30.2278) -- (7.0415,30.2278) -- (7.0415,33.6097) .. controls (7.0415,35.2737) and (7.9658,36.2272) .. (9.5774,36.2272) .. controls (11.2041,36.2272) and (12.1371,35.2554) .. (12.1371,33.5609) -- (12.1371,30.2240) -- (10.9375,30.2240) -- cycle; + \path[fill=\BLACK] (15.3511,30.2240) -- (12.7456,36.1351) -- (13.9702,36.1351) -- (14.4731,34.9903) -- (14.5091,34.9045) -- (17.2158,34.9045) -- (17.7467,36.1351) -- (19.0045,36.1351) -- (16.4233,30.2590) -- (16.4001,30.2240) -- cycle; + \path[fill=\BLACK] (22.4840,30.2240) -- (21.1414,34.2912) -- (19.8344,30.2271) -- (18.5578,30.2271) -- (20.6186,36.1388) -- (21.6120,36.1388) -- (22.9573,32.2553) -- (24.3016,36.1388) -- (25.3034,36.1388) -- (27.3592,30.2271) -- (26.1152,30.2271) -- (24.8055,34.2912) -- (23.4626,30.2240) -- cycle; + \path[fill=\BLACK] (34.2236,30.2240) -- (34.2236,36.1300) -- (35.4074,36.1300) -- (35.4074,30.2240) -- cycle; + \path[fill=\BLACK] (0.2686,30.2244) -- (0.2686,36.1384) -- (1.4686,36.1384) -- (1.4686,33.7365) -- (4.1780,33.7365) -- (4.1780,36.1384) -- (5.3783,36.1384) -- (5.3783,30.2244) -- (4.1780,30.2244) -- (4.1780,32.6102) -- (1.4686,32.6102) -- (1.4686,30.2244) -- cycle; + \path[fill=\BLACK] (28.3267,30.2284) -- (28.3267,36.1344) -- (32.7928,36.1344) -- (32.7928,35.0575) -- (29.5105,35.0575) -- (29.5105,33.5931) -- (31.6931,33.5931) -- (31.6931,32.5160) -- (29.5105,32.5160) -- (29.5105,31.3052) -- (32.6785,31.3052) -- (32.6785,30.2284) -- cycle; + \path[fill=\BLANK] (15.8594,31.7207) -- (16.7149,33.7008) -- (16.7119,33.7008) -- (16.7701,33.8374) -- (14.9552,33.8374) -- (15.0127,33.7008) -- (15.0117,33.7008) -- cycle; \path[fill=red] (15.2113,0.0001) .. controls (14.7353,0.0422) and (13.4491,0.3349) .. (13.4491,0.3349) -- (13.4486,0.3349) .. controls (10.5495,1.0843) and (9.8643,3.7151) .. (9.8643,3.7151) .. controls (9.7227,4.1575) and (9.6584,4.6109) .. (9.6395,5.0380) -- (9.6395,5.6194) .. controls (9.6780,6.5176) and (9.8777,7.1883) .. (9.8777,7.1883) .. controls (10.8461,11.4823) and (15.6075,18.5379) .. (16.6308,20.0200) .. controls (16.7034,20.0920) and (16.7615,20.0660) .. (16.7615,20.0660) .. controls (16.8720,20.0355) and (16.8633,19.9296) .. (16.8633,19.9296) -- (16.8654,19.9301) .. controls (18.4416,4.1760) and (15.2113,0.0001) .. (15.2113,0.0001) -- (15.2113,0.0001) -- cycle; \path[fill=red] (20.4192,0.0000) .. controls (20.4192,0.0000) and (17.1748,4.1782) .. (18.7521,19.9415) -- (18.7542,19.9415) .. controls (18.7664,20.0416) and (18.8374,20.0624) .. (18.8374,20.0624) .. controls (18.9430,20.1033) and (18.9971,20.0019) .. (18.9971,20.0019) -- (18.9976,20.0029) .. controls (20.0472,18.4829) and (24.7814,11.4657) .. (25.7455,7.1882) .. controls (25.7455,7.1882) and (26.2683,5.1179) .. (25.7636,3.7150) .. controls (25.7636,3.7150) and (25.0470,1.0434) .. (22.1442,0.3375) .. controls (22.1442,0.3375) and (21.3077,0.1251) .. (20.4193,0.0000) -- (20.4192,0.0000) -- cycle; \path[fill=red] (5.4542,4.7294) .. controls (5.4542,4.7294) and (2.6920,7.3513) .. (2.5547,10.1307) -- (2.5558,10.1307) -- (2.5558,10.5519) .. controls (2.5579,10.5836) and (2.5595,10.6157) .. (2.5615,10.6480) .. controls (2.6804,12.8893) and (4.3665,14.2157) .. (4.3665,14.2157) .. controls (7.0831,16.8634) and (13.6611,20.2062) .. (15.1896,20.9647) .. controls (15.2110,20.9727) and (15.2900,20.9985) .. (15.3364,20.9399) .. controls (15.3364,20.9399) and (15.3605,20.9216) .. (15.3715,20.8887) -- (15.3715,20.8189) .. controls (15.3704,20.8149) and (15.3683,20.8109) .. (15.3663,20.8065) -- (15.3669,20.8065) .. controls (11.1809,11.6620) and (5.4543,4.7294) .. (5.4543,4.7294) -- (5.4542,4.7294) -- cycle; @@ -141,6 +154,8 @@ };% \end{textblock}% \else\fi% + }\makeatother + \makeatletter\fancyhead[L]{ \ifnum\value{page}=1\else% \ifhuawei@nobrand\else% \begin{textblock}{8}[0,0](1.2,0.2)% @@ -148,6 +163,8 @@ \end{textblock}% \fi% \fi% + }\makeatother + \makeatletter\fancyhead[R]{ \begin{textblock}{8}[1,0](15.8,0.2)% \raggedleft\huawei@header{% \ifhuawei@nosecurity\else% @@ -155,13 +172,15 @@ \fi% }% \end{textblock}% + }\makeatother + \makeatletter\fancyfoot[R]{ \begin{textblock}{8}[0,1](1.2,15.8)% \ifnum\value{page}=1\else% \huawei@header{% \ifhuawei@anonymous\else% \theauthor% \ifhuawei@nosecurity\else% - \ifx\theid\empty\else,\theid\fi + \ifx\theid\empty\else, \theid\fi \fi% \ifhuawei@nobrand\else% \newline @@ -349,8 +368,17 @@ \fi }\makeatother +\makeatletter\ifhuawei@dark + \RequirePackage{pagecolor} + \pagecolor{black} + \color{white} +\fi + \AtBeginDocument{% \raggedbottom% + \raggedcolumns% + \setlength\headheight{32pt}% + \setlength\footskip{32pt}% \setlength\topskip{0mm}% \setlength\parindent{0pt}% \setlength\parskip{6pt}% diff --git a/macros/latex/contrib/huawei/huawei.pdf b/macros/latex/contrib/huawei/huawei.pdf index 61d6c68931..f288913d02 100644 Binary files a/macros/latex/contrib/huawei/huawei.pdf and b/macros/latex/contrib/huawei/huawei.pdf differ diff --git a/macros/latex/contrib/huawei/huawei.tex b/macros/latex/contrib/huawei/huawei.tex index ade62504a9..6b697a03af 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.12.0} +\ff{Version: 0.13.1} \newline -\ff{Date: 2021/09/13} +\ff{Date: 2021/10/26} \section{Overview} @@ -87,6 +87,14 @@ the layout of your document: \href{https://en.wikipedia.org/wiki/Paper_size}{A4}), making it perfect for presentations. +\ff{dark} + turns on a dark layout, where the page color is black and the text + is white. + +\ff{slides} + makes all headers a bit larger, assuming that the document + is in the landscape mode and being presented as a slide deck. + \ff{nocover} avoid printing the cover images on the first page by the \ff{\char`\\PrintTitlePage} command. diff --git a/macros/latex/contrib/huawei/samples/huawei-charter.tex b/macros/latex/contrib/huawei/samples/huawei-charter.tex index cb948574dd..e352802f36 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,XL]{../huawei} +\documentclass[landscape,nocover,XL,dark,slides]{../huawei} % \renewcommand*\thetitle{Test Charter} % \renewcommand*\thesubtitle{Technology Project Charter} % \renewcommand*\theauthor{Yegor Bugayenko} -- cgit v1.2.3