| 1 |
% \iffalse meta-comment |
| 2 |
% (The MIT License) |
| 3 |
% |
| 4 |
% Copyright (c) 2021-2024 Yegor Bugayenko |
| 5 |
% |
| 6 |
% Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 |
% of this software and associated documentation files (the 'Software'), to deal |
| 8 |
% in the Software without restriction, including without limitation the rights |
| 9 |
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 |
% copies of the Software, and to permit persons to whom the Software is |
| 11 |
% furnished to do so, subject to the following conditions: |
| 12 |
% |
| 13 |
% The above copyright notice and this permission notice shall be included in all |
| 14 |
% copies or substantial portions of the Software. |
| 15 |
% |
| 16 |
% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 |
% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 |
% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 |
% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 |
% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 |
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 |
% SOFTWARE. |
| 23 |
% \fi |
| 24 |
|
| 25 |
%%% \CheckSum{0} |
| 26 |
% |
| 27 |
% \CharacterTable |
| 28 |
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 29 |
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 30 |
% Digits \0\1\2\3\4\5\6\7\8\9 |
| 31 |
% Exclamation \! Double quote \" Hash (number) \# |
| 32 |
% Dollar \$ Percent \% Ampersand \& |
| 33 |
% Acute accent \' Left paren \( Right paren \) |
| 34 |
% Asterisk \* Plus \+ Comma \, |
| 35 |
% Minus \- Point \. Solidus \/ |
| 36 |
% Colon \: Semicolon \; Less than \< |
| 37 |
% Equals \= Greater than \> Question mark \? |
| 38 |
% Commercial at \@ Left bracket \[ Backslash \\ |
| 39 |
% Right bracket \] Circumflex \^ Underscore \_ |
| 40 |
% Grave accent \` Left brace \{ Vertical bar \| |
| 41 |
% Right brace \} Tilde \~} |
| 42 |
|
| 43 |
% \GetFileInfo{huawei.dtx} |
| 44 |
% \DoNotIndex{\endgroup,\begingroup,\let,\else,\fi,\newcommand,\newenvironment} |
| 45 |
|
| 46 |
% \iffalse |
| 47 |
%<*driver> |
| 48 |
\ProvidesFile{huawei.dtx} |
| 49 |
%</driver> |
| 50 |
%<class>\NeedsTeXFormat{LaTeX2e} |
| 51 |
%<class>\ProvidesClass{huawei} |
| 52 |
%<*class> |
| 53 |
[2024-12-17 0.19.1 Template for Huawei Documents] |
| 54 |
%</class> |
| 55 |
%<*driver> |
| 56 |
\documentclass{ltxdoc} |
| 57 |
\usepackage[tt=false, type1=true]{libertine} |
| 58 |
\usepackage[T1]{fontenc} |
| 59 |
\usepackage[utf8]{inputenc} |
| 60 |
\usepackage{microtype} |
| 61 |
\AddToHook{env/verbatim/begin}{\microtypesetup{protrusion=false}} |
| 62 |
\usepackage[dtx,margin=0,log,nocrop]{docshots} |
| 63 |
\docshotPrerequisite{huawei-cover-picture.pdf} |
| 64 |
\usepackage{href-ul} |
| 65 |
\PageIndex |
| 66 |
\EnableCrossrefs |
| 67 |
\CodelineIndex |
| 68 |
\RecordChanges |
| 69 |
\begin{document} |
| 70 |
\DocInput{huawei.dtx} |
| 71 |
\PrintChanges |
| 72 |
\PrintIndex |
| 73 |
\end{document} |
| 74 |
%</driver> |
| 75 |
% \fi |
| 76 |
|
| 77 |
% \title{\LaTeX{} Class |huawei|\thanks{The sources are in GitHub at \href{https://github.com/yegor256/huawei.cls}{yegor256/huawei.cls}}} |
| 78 |
% \author{Yegor Bugayenko \\ \texttt{[email protected]}} |
| 79 |
% \date{\filedate, \fileversion} |
| 80 |
% |
| 81 |
% \maketitle |
| 82 |
% |
| 83 |
% \section{Introduction} |
| 84 |
% |
| 85 |
% The provided class |huawei| helps you design your work |
| 86 |
% documents and presentations keeping the code short and the |
| 87 |
% style elegant enough both for management and technical |
| 88 |
% papers. To use the class you simply mention its name |
| 89 |
% in the preamble: |
| 90 |
% \begin{docshot} |
| 91 |
% \documentclass{huawei} |
| 92 |
% \begin{document} |
| 93 |
% Hello, world! |
| 94 |
% \end{document} |
| 95 |
% \end{docshot} |
| 96 |
|
| 97 |
% We recommend you to use |
| 98 |
% |latexmk| to compile your |.tex| files to |.pdf|. |
| 99 |
% The simplest setup will require a few files staying next to your |
| 100 |
% |.tex| file, in the same directory (``story'' is the name |
| 101 |
% of your project here): |
| 102 |
|
| 103 |
%\iffalse |
| 104 |
%<*verb> |
| 105 |
%\fi |
| 106 |
\begin{verbatim} |
| 107 |
story\ |
| 108 |
.latexmkrc |
| 109 |
.gitignore |
| 110 |
story.tex |
| 111 |
\end{verbatim} |
| 112 |
%\iffalse |
| 113 |
%</verb> |
| 114 |
%\fi |
| 115 |
|
| 116 |
% The content of your |.latexmkrc| file would be this: |
| 117 |
|
| 118 |
%\iffalse |
| 119 |
%<*verb> |
| 120 |
%\fi |
| 121 |
\begin{verbatim} |
| 122 |
$pdflatex = 'pdflatex %O --shell-escape %S'; |
| 123 |
\end{verbatim} |
| 124 |
%\iffalse |
| 125 |
%</verb> |
| 126 |
%\fi |
| 127 |
|
| 128 |
% Make sure the |.gitignore| file lists all the files generated |
| 129 |
% by |pdflatex| during the compilation. You don't need to commit |
| 130 |
% them to your repository, since they are temporary and will |
| 131 |
% be generated again when you compile your document. |
| 132 |
% In order to compile the document, just say |latexmk| on the command line. |
| 133 |
|
| 134 |
% \section{Class Options} |
| 135 |
|
| 136 |
% There are a few class options, provided in square brackets after the |
| 137 |
% |\documentclass|, which can help you fine-tune |
| 138 |
% the layout of your document: |
| 139 |
|
| 140 |
% \DescribeMacro{landscape} |
| 141 |
% The option |landscape| makes the document in landscape format, also changing the size |
| 142 |
% of the paper to 16x9 inches (the default page size is |
| 143 |
% \href{https://en.wikipedia.org/wiki/Paper_size}{A4}), |
| 144 |
% making it perfect for presentations. |
| 145 |
|
| 146 |
% \DescribeMacro{dark} |
| 147 |
% The option |dark| turns on a dark layout, where the page color is black and the text |
| 148 |
% is white. |
| 149 |
|
| 150 |
% \DescribeMacro{slides} |
| 151 |
% The option |slides| makes all headers a bit larger, assuming that the document |
| 152 |
% is in the landscape mode and being presented as a slide deck. |
| 153 |
|
| 154 |
% \DescribeMacro{nocover} |
| 155 |
% The option |nocover|, if it's present, avoids printing the cover images on the first page by the |
| 156 |
% |\PrintTitlePage| command. |
| 157 |
|
| 158 |
% \DescribeMacro{anonymous} |
| 159 |
% The |anonymous| removes the name of the author everywhere, including the bottom |
| 160 |
% of the page, where the author's name stays next to the name of the |
| 161 |
% company. |
| 162 |
|
| 163 |
% \DescribeMacro{nobrand} |
| 164 |
% The option |nobrand| avoids mentioning the brand of Huawei anywhere |
| 165 |
% in the document and removes the logo too. |
| 166 |
|
| 167 |
% \DescribeMacro{nosecurity} |
| 168 |
% The option |nosecurity| avoids mentioning the level of security at the right top |
| 169 |
% corner of the document and also avoids showing the ID of the author |
| 170 |
% where it usually is visible. |
| 171 |
|
| 172 |
% \DescribeMacro{nodate} |
| 173 |
% The option |nodate| doesn't show the date and time at the bottom of each page, |
| 174 |
% where they usually are rendered in ISO~8601 format. |
| 175 |
|
| 176 |
% \DescribeMacro{nopaging} |
| 177 |
% The option |nopaging| avoids page numbers at the bottom of each page. |
| 178 |
|
| 179 |
% \DescribeMacro{authordraft} |
| 180 |
% The option |authordraft| prints a big ``It's a draft'' message across each page. |
| 181 |
|
| 182 |
% \DescribeMacro{breaks} |
| 183 |
% The option |breaks| forces all |\section| to start from a new page. |
| 184 |
|
| 185 |
% \section{Preamble} |
| 186 |
|
| 187 |
% In the preamble you can specify meta information about the document, |
| 188 |
% such as its title or author's name, here is how: |
| 189 |
% \begin{docshot} |
| 190 |
% \documentclass{huawei} |
| 191 |
% \renewcommand* |
| 192 |
% \thetitle{15\% Faster Algorithm} |
| 193 |
% \renewcommand* |
| 194 |
% \thesubtitle{Technical Report} |
| 195 |
% \renewcommand* |
| 196 |
% \theauthor{Yegor Bugayenko} |
| 197 |
% \begin{document} |
| 198 |
% \maketitle |
| 199 |
% Hello, world! |
| 200 |
% \end{document} |
| 201 |
% \end{docshot} |
| 202 |
|
| 203 |
% It's recommended to use |\renewcommand*| instead of |
| 204 |
% |\renewcommand| in order to let \LaTeX{} catch you |
| 205 |
% if by mistake a new line gets into the content. |
| 206 |
|
| 207 |
% The following meta commands are defined: |
| 208 |
|
| 209 |
% \DescribeMacro{\thetitle} |
| 210 |
% |\thetitle| is the main title of the document |
| 211 |
% to be used in the text and in the properties of the PDF document. |
| 212 |
|
| 213 |
% \DescribeMacro{\thesubtitle} |
| 214 |
% |\thesubtitle| is the subtitle to be |
| 215 |
% printed under the title. |
| 216 |
|
| 217 |
% \DescribeMacro{\theauthor} |
| 218 |
% |\theauthor| is the author of the document |
| 219 |
% in ``first-name last-name'' format. |
| 220 |
|
| 221 |
% \DescribeMacro{\theid} |
| 222 |
% |\theid| is the internal ID of the author, if |
| 223 |
% it's applicable. |
| 224 |
|
| 225 |
% \DescribeMacro{\thesecurity} |
| 226 |
% It is the level of security of |
| 227 |
% the document, which is usually printed at the top right |
| 228 |
% corner of it; usual values are ``Internal,'' |
| 229 |
% ''Confidential,'' or ``Secret.'' |
| 230 |
|
| 231 |
% Default values of all these commands are empty. If you don't |
| 232 |
% renew them in your document, nothing will be printed. |
| 233 |
|
| 234 |
% \section{Custom Commands} |
| 235 |
|
| 236 |
% Inside the document body you can use these commands: |
| 237 |
|
| 238 |
% \DescribeMacro{\PrintFirstPage} |
| 239 |
% It is recommended to use |\PrintFirstPage| for rendering the first |
| 240 |
% page in landscape document, for example a project charter. |
| 241 |
% The only argument of the commmand is the name of an image to render at the |
| 242 |
% right bottom corner. You can omit the name and just call the command with |
| 243 |
% an empty argument. In this case the default image will be rendered, a pretty |
| 244 |
% good looking one: |
| 245 |
% \begin{docshot} |
| 246 |
% \documentclass[landscape]{huawei} |
| 247 |
% \renewcommand* |
| 248 |
% \thetitle{Perpetum Mobile} |
| 249 |
% \renewcommand* |
| 250 |
% \theauthor{Yegor Bugayenko} |
| 251 |
% \begin{document} |
| 252 |
% \PrintFirstPage{} |
| 253 |
% \end{document} |
| 254 |
% \end{docshot} |
| 255 |
|
| 256 |
% \DescribeMacro{\PrintLastPage} |
| 257 |
% |\PrintLastPage| prints the last page of a project charter or a similar landscape document: |
| 258 |
% \begin{docshot} |
| 259 |
% \documentclass[landscape]{huawei} |
| 260 |
% \begin{document} |
| 261 |
% \PrintLastPage{} |
| 262 |
% \end{document} |
| 263 |
% \end{docshot} |
| 264 |
|
| 265 |
% \DescribeMacro{\PrintThankYouPage} |
| 266 |
% |\PrintThankYouPage| prints the last page with a "Thank You" message in the center. |
| 267 |
% \begin{docshot} |
| 268 |
% \documentclass[landscape,dark]{huawei} |
| 269 |
% \begin{document} |
| 270 |
% \PrintThankYouPage{} |
| 271 |
% \end{document} |
| 272 |
% \end{docshot} |
| 273 |
|
| 274 |
% \DescribeMacro{\PrintDisclaimer} |
| 275 |
% |\PrintDisclaimer| prints a paragraph at the bottom of the page with a standard disclaimer: |
| 276 |
% \begin{docshot} |
| 277 |
% \documentclass{huawei} |
| 278 |
% \begin{document} |
| 279 |
% \section{Introduction} |
| 280 |
% Hello, world! |
| 281 |
% \subsection{More Details} |
| 282 |
% Hello again! |
| 283 |
% \PrintDisclaimer |
| 284 |
% \end{document} |
| 285 |
% \end{docshot} |
| 286 |
|
| 287 |
% \section{Best Practices} |
| 288 |
|
| 289 |
% You are free to design your documents any way you want. However, |
| 290 |
% it would be convenient for yourself and for your readers, if you follow |
| 291 |
% the convention we have for business and technical documents. |
| 292 |
|
| 293 |
% The rule of thumb is simple: try \emph{not} to format your documents. |
| 294 |
% Instead, let the class designed by us do this work for you. Just type |
| 295 |
% the content without changing the layout, adding colors, changing fonts, |
| 296 |
% etc. The less you modify the look-and-feel, the better your documents |
| 297 |
% will be perceived by your readers. |
| 298 |
|
| 299 |
% \subsection{Two Columns} |
| 300 |
|
| 301 |
% In the landscape format it's recommended to use two columns, for better |
| 302 |
% readability of the text. Here is how: |
| 303 |
% \begin{docshot} |
| 304 |
% \documentclass[landscape]{huawei} |
| 305 |
% \begin{document} |
| 306 |
% \newpage |
| 307 |
% \begin{multicols}{2} |
| 308 |
% \section*{First} |
| 309 |
% Here goes the first column content. |
| 310 |
% \columnbreak |
| 311 |
% \section*{Second} |
| 312 |
% Here goes the second column content. |
| 313 |
% \end{multicols} |
| 314 |
% \end{document} |
| 315 |
% \end{docshot} |
| 316 |
|
| 317 |
% \subsection{Crumbs} |
| 318 |
|
| 319 |
% When you need to put many small information pieces into one page, |
| 320 |
% we recommend you to use ``crumbs'': |
| 321 |
% \begin{docshot} |
| 322 |
% \documentclass{huawei} |
| 323 |
% \begin{document} |
| 324 |
% \newpage |
| 325 |
% \section*{Project Details} |
| 326 |
% \begin{multicols}{2} |
| 327 |
% \raggedright |
| 328 |
% \PrintCrumb{Budget}{\$100K} |
| 329 |
% \PrintCrumb{Duration}{5 months} |
| 330 |
% \end{multicols} |
| 331 |
% \end{document} |
| 332 |
% \end{docshot} |
| 333 |
|
| 334 |
% \StopEventually{} |
| 335 |
|
| 336 |
% \section{Implementation} |
| 337 |
|
| 338 |
% \changes{v0.1.0}{2021/04/18}{The first draft version.} |
| 339 |
% \changes{v0.3.0}{2021/05/24}{The cover picture added for front pages.} |
| 340 |
% \changes{v0.4.0}{2021/05/26}{The current time is rendered without seconds.} |
| 341 |
% \changes{v0.5.0}{2021/05/26}{The \texttt{DEPENDS.txt} file added.} |
| 342 |
% \changes{v0.6.0}{2021/06/14}{The \texttt{ffcode} and \texttt{href-ul} packages created an their code removed from this class.} |
| 343 |
% \changes{v0.7.0}{2021/06/27}{The \texttt{authordraft} option is now supported.} |
| 344 |
% \changes{v0.10.0}{2021/09/08}{Some colors redefined.} |
| 345 |
% \changes{v0.11.0}{2021/09/09}{The fixed-width font is rendered correctly now, without \texttt{ffcode}.} |
| 346 |
% \changes{v0.12.0}{2021/09/13}{The \texttt{abstract} is now formatted correctly.} |
| 347 |
% \changes{v0.14.0}{2022/10/05}{The \texttt{l3build} is now used for build automation, instead of \texttt{Makefile}.} |
| 348 |
|
| 349 |
% First, we load the parent class: |
| 350 |
% \begin{macrocode} |
| 351 |
\LoadClass[12pt]{article} |
| 352 |
% \end{macrocode} |
| 353 |
|
| 354 |
% Then, we parse class options: |
| 355 |
% \changes{v0.15.0}{2022/12/13}{A new package option \texttt{breaks} introduced, which forces all sections to start from a new page.} |
| 356 |
% \changes{v0.18.0}{2023/08/09}{Now we use \texttt{pfgopts} for parsing class options.} |
| 357 |
% \changes{v0.19.0}{2024/10/25}{New option \texttt{boring} added, making the layout of the document more compliant with the expectations of Huawei.} |
| 358 |
% \begin{macrocode} |
| 359 |
\RequirePackage{pgfopts} |
| 360 |
\pgfkeys{ |
| 361 |
/huawei/.cd, |
| 362 |
boring/.store in=\huawei@boring, |
| 363 |
breaks/.store in=\huawei@breaks, |
| 364 |
slides/.store in=\huawei@slides, |
| 365 |
nosecurity/.store in=\huawei@nosecurity, |
| 366 |
authordraft/.store in=\huawei@authordraft, |
| 367 |
nobrand/.store in=\huawei@nobrand, |
| 368 |
nodate/.store in=\huawei@nodate, |
| 369 |
nocover/.store in=\huawei@nocover, |
| 370 |
nopaging/.store in=\huawei@nopaging, |
| 371 |
landscape/.store in=\huawei@landscape, |
| 372 |
anonymous/.store in=\huawei@anonymous, |
| 373 |
} |
| 374 |
\ProcessPgfPackageOptions{/huawei} |
| 375 |
% \end{macrocode} |
| 376 |
|
| 377 |
% Then, we set Helvetica as the default font for the entire document, if the |boring| document option is used: |
| 378 |
% \begin{macrocode} |
| 379 |
\ifdefined\huawei@boring |
| 380 |
\usepackage[scaled]{helvet} |
| 381 |
\renewcommand\familydefault{\sfdefault} |
| 382 |
\fi |
| 383 |
% \end{macrocode} |
| 384 |
|
| 385 |
% Then, we redefine |\section| command in order to break pages for each section, with the help of |titlesec| package: |
| 386 |
% \begin{macrocode} |
| 387 |
\RequirePackage{titlesec} |
| 388 |
\ifdefined\huawei@boring |
| 389 |
\def\huawei@sectioncolor{red} |
| 390 |
\else |
| 391 |
\def\huawei@sectioncolor{black} |
| 392 |
\fi |
| 393 |
\makeatletter |
| 394 |
\titleformat |
| 395 |
{\section} |
| 396 |
{\color{\huawei@sectioncolor}\ifdefined\huawei@breaks\clearpage\fi\normalfont\Large\bfseries} |
| 397 |
{\color{\huawei@sectioncolor}\thesection}{1em}{} |
| 398 |
\makeatother |
| 399 |
% \end{macrocode} |
| 400 |
|
| 401 |
% Then, we set the size of the page: |
| 402 |
% \begin{macrocode} |
| 403 |
\RequirePackage{geometry} |
| 404 |
\makeatletter\ifdefined\huawei@landscape |
| 405 |
\ifdefined\huawei@boring |
| 406 |
\geometry{paperwidth=16in, paperheight=9in, |
| 407 |
left=3in, right=2.5in, top=1in, bottom=1.8in} |
| 408 |
\else |
| 409 |
\geometry{paperwidth=16in, paperheight=9in, |
| 410 |
left=4in, right=2in, top=1.5in, bottom=1.5in} |
| 411 |
\fi |
| 412 |
\else |
| 413 |
\geometry{a4paper, left=1.5in, right=1in, |
| 414 |
top=1.2in, bottom=1.2in} |
| 415 |
\fi\makeatother |
| 416 |
% \end{macrocode} |
| 417 |
|
| 418 |
% Then, we set the size of the font: |
| 419 |
% \begin{macrocode} |
| 420 |
\makeatletter\ifdefined\huawei@slides |
| 421 |
\usepackage[fontsize=24pt]{fontsize} |
| 422 |
\fi\makeatother |
| 423 |
% \end{macrocode} |
| 424 |
|
| 425 |
% Then, we configure the encodings: |
| 426 |
% \begin{macrocode} |
| 427 |
\RequirePackage[T1]{fontenc} |
| 428 |
\RequirePackage[utf8]{inputenc} |
| 429 |
% \end{macrocode} |
| 430 |
|
| 431 |
% Then, we include a few important packages: |
| 432 |
% \begin{macrocode} |
| 433 |
\RequirePackage{tabularx} |
| 434 |
\RequirePackage{anyfontsize} |
| 435 |
\RequirePackage{multicol} |
| 436 |
\RequirePackage{ragged2e} |
| 437 |
\RequirePackage{multicol} |
| 438 |
\RequirePackage{paralist} |
| 439 |
\RequirePackage{makecell} |
| 440 |
\RequirePackage{graphicx} |
| 441 |
\RequirePackage{array} |
| 442 |
\RequirePackage[abspath]{currfile} |
| 443 |
\RequirePackage{wrapfig} |
| 444 |
\RequirePackage{tikz} |
| 445 |
\RequirePackage{tabularx} |
| 446 |
\RequirePackage{titling} |
| 447 |
\RequirePackage{svg} |
| 448 |
% \end{macrocode} |
| 449 |
|
| 450 |
% Then, we include |lastpage| package to enable total counting of pages: |
| 451 |
% \begin{macrocode} |
| 452 |
\RequirePackage{lastpage} |
| 453 |
% \end{macrocode} |
| 454 |
|
| 455 |
% Then, we configure |libertine| font: |
| 456 |
% \begin{macrocode} |
| 457 |
\PassOptionsToPackage{tt=false,type1=true}{libertine} |
| 458 |
\RequirePackage{libertine} |
| 459 |
% \end{macrocode} |
| 460 |
|
| 461 |
% Then, we configure |microtype|: |
| 462 |
% \begin{macrocode} |
| 463 |
\RequirePackage{microtype} |
| 464 |
\AddToHook{env/verbatim/begin}{\microtypesetup{protrusion=false}} |
| 465 |
% \end{macrocode} |
| 466 |
|
| 467 |
% Then, we configure |footmisc|: |
| 468 |
% \begin{macrocode} |
| 469 |
\PassOptionsToPackage{para}{footmisc} |
| 470 |
\RequirePackage{footmisc} |
| 471 |
\setlength{\footnotemargin}{2pt} |
| 472 |
\setlength{\footnotesep}{2pt} |
| 473 |
% \end{macrocode} |
| 474 |
|
| 475 |
% Then, we configure |enumitem|: |
| 476 |
% \begin{macrocode} |
| 477 |
\RequirePackage[inline]{enumitem} |
| 478 |
\setlist{nosep} |
| 479 |
% \end{macrocode} |
| 480 |
|
| 481 |
% Then, we configure |textpos|: |
| 482 |
% \begin{macrocode} |
| 483 |
\RequirePackage[absolute]{textpos} |
| 484 |
\TPGrid{16}{16} |
| 485 |
% \end{macrocode} |
| 486 |
|
| 487 |
% Then, we configure |datetime|: |
| 488 |
% \begin{macrocode} |
| 489 |
\PassOptionsToPackage{mmddyyyy,iso}{datetime} |
| 490 |
\RequirePackage{datetime} |
| 491 |
\newtimeformat{daytime}{\twodigit{\THEHOUR}:\twodigit{\THEMINUTE}} |
| 492 |
% \end{macrocode} |
| 493 |
|
| 494 |
% Then, to enable |\pageref*| command, we configure |hyperref|: |
| 495 |
% \begin{macrocode} |
| 496 |
\PassOptionsToPackage{hidelinks}{hyperref} |
| 497 |
\RequirePackage{hyperref} |
| 498 |
% \end{macrocode} |
| 499 |
|
| 500 |
% Then, we configure |biblatex|: |
| 501 |
% \changes{v0.16.0}{2023/05/20}{The \texttt{doi} tag enabled for \texttt{biblatex}.} |
| 502 |
% \begin{macrocode} |
| 503 |
\RequirePackage[maxnames=1,minnames=1,natbib=true, |
| 504 |
citestyle=numeric,bibstyle=numeric, |
| 505 |
url=false,isbn=false,isbn=false]{biblatex} |
| 506 |
% \end{macrocode} |
| 507 |
|
| 508 |
% Then, we make figure captions smaller and in |sf| font: |
| 509 |
% \changes{v0.17.0}{2023/08/08}{Smaller and sans-serif font for captions of figures.} |
| 510 |
% \begin{macrocode} |
| 511 |
\PassOptionsToPackage{font={small,sf}}{caption} |
| 512 |
\RequirePackage{caption} |
| 513 |
% \end{macrocode} |
| 514 |
|
| 515 |
% Then, we make all figures and tables bordered by default, with the help of the |float| package: |
| 516 |
% \changes{v0.17.0}{2023/08/08}{All figures and tables are bordered by default.} |
| 517 |
% \begin{macrocode} |
| 518 |
\RequirePackage{float} |
| 519 |
\floatstyle{boxed} |
| 520 |
\restylefloat{table} |
| 521 |
\restylefloat{figure} |
| 522 |
% \end{macrocode} |
| 523 |
|
| 524 |
% Then, we make sure all figures and tables are centered by default, as recommended |
| 525 |
% \href{https://tex.stackexchange.com/questions/2651/}{here}: |
| 526 |
% \changes{v0.17.0}{2023/08/08}{All figures and tables are centered by default.} |
| 527 |
% \begin{macrocode} |
| 528 |
\makeatletter |
| 529 |
\g@addto@macro\@floatboxreset\centering |
| 530 |
\makeatother |
| 531 |
% \end{macrocode} |
| 532 |
|
| 533 |
% Then, we set spacing between lines: |
| 534 |
% \begin{macrocode} |
| 535 |
\RequirePackage{setspace} |
| 536 |
\setstretch{1.08} |
| 537 |
% \end{macrocode} |
| 538 |
|
| 539 |
% Then, we define branded colors: |
| 540 |
% \begin{macrocode} |
| 541 |
\PassOptionsToPackage{table}{xcolor} |
| 542 |
\RequirePackage{xcolor} |
| 543 |
\makeatletter |
| 544 |
\ifdefined\huawei@boring |
| 545 |
\definecolor{red}{HTML}{8C1A11} |
| 546 |
\definecolor{black}{HTML}{000000} |
| 547 |
\definecolor{gray}{HTML}{878C8F} |
| 548 |
\definecolor{lightgray}{HTML}{DCDDDF} |
| 549 |
\definecolor{yellow}{HTML}{F6C342} |
| 550 |
\definecolor{blue}{HTML}{2B62BA} |
| 551 |
\definecolor{green}{HTML}{499167} |
| 552 |
\definecolor{orange}{HTML}{F7CEA1} |
| 553 |
\else |
| 554 |
\definecolor{red}{HTML}{CF0A2C} |
| 555 |
\definecolor{black}{HTML}{232527} |
| 556 |
\definecolor{gray}{HTML}{878C8F} |
| 557 |
\definecolor{lightgray}{HTML}{DCDDDF} |
| 558 |
\definecolor{yellow}{HTML}{F2DC5D} |
| 559 |
\definecolor{blue}{HTML}{2274A5} |
| 560 |
\definecolor{green}{HTML}{499167} |
| 561 |
\definecolor{orange}{HTML}{F06543} |
| 562 |
\fi |
| 563 |
\makeatother |
| 564 |
% \end{macrocode} |
| 565 |
|
| 566 |
% \begin{macro}{\huawei@header} |
| 567 |
% Then, we define |\huawei@header|: |
| 568 |
% \begin{macrocode} |
| 569 |
\makeatletter\newcommand\huawei@header[1]{{% |
| 570 |
\ifdefined\huawei@slides% |
| 571 |
\setstretch{0.8}% |
| 572 |
\fontsize{19pt}{24pt}\selectfont% |
| 573 |
\else% |
| 574 |
\setstretch{0.8}% |
| 575 |
\fontsize{11pt}{13pt}\selectfont% |
| 576 |
\fi% |
| 577 |
\sffamily\color{gray}#1\par% |
| 578 |
}}\makeatother |
| 579 |
% \end{macrocode} |
| 580 |
% \end{macro} |
| 581 |
|
| 582 |
% \begin{macro}{\huawei@bar} |
| 583 |
% Then, we define |\huawei@bar|: |
| 584 |
% \begin{macrocode} |
| 585 |
\makeatletter\newcommand\huawei@bar{% |
| 586 |
\ifdefined\huawei@boring% |
| 587 |
\begin{textblock}{16}[0,1](0,16)% |
| 588 |
\tikz \node[fill=lightgray,minimum width=16\TPHorizModule, |
| 589 |
minimum height=1.5\TPVertModule] {};% |
| 590 |
\end{textblock}% |
| 591 |
\begin{textblock}{8}[1,0.5](15,15.25)% |
| 592 |
\raggedleft\huawei@logo{1.4} |
| 593 |
\end{textblock}% |
| 594 |
\ifdefined\huawei@nobrand\else% |
| 595 |
\begin{textblock}{8}[0,0.5](1,15.25)% |
| 596 |
\fontsize{16}{16}\selectfont% |
| 597 |
\textcolor{gray}{\thecompany{}}% |
| 598 |
\end{textblock}% |
| 599 |
\fi% |
| 600 |
\ifdefined\huawei@nosecurity\else% |
| 601 |
\begin{textblock}{8}[0.5,0.5](7,15.25)% |
| 602 |
\fontsize{16}{16}\selectfont% |
| 603 |
\centering\textcolor{gray}{\thesecurity}% |
| 604 |
\end{textblock}% |
| 605 |
\fi% |
| 606 |
\ifdefined\huawei@nopaging\else% |
| 607 |
\begin{textblock}{8}[1,0.5](12,15.25)% |
| 608 |
\raggedleft\fontsize{16}{16}\selectfont% |
| 609 |
\textcolor{gray}{Page \#\thepage{} of \pageref*{LastPage}}% |
| 610 |
\end{textblock}% |
| 611 |
\fi% |
| 612 |
\begin{textblock}{2}[1,0.5](14,15.25)% |
| 613 |
\tikz \path[scale=0.3, draw=none, rotate=40, fill=white] (0,0) .. controls (3,1) .. (16,0) -- (16,3) .. controls (8, 2) .. (0, 3) -- (0,0); |
| 614 |
\end{textblock}% |
| 615 |
\else% |
| 616 |
\begin{textblock}{1}[0,0](0,0)% |
| 617 |
\tikz \node[fill=red,minimum width=\TPHorizModule, |
| 618 |
minimum height=16\TPVertModule] {};% |
| 619 |
\end{textblock}% |
| 620 |
\fi% |
| 621 |
}\makeatother |
| 622 |
% \end{macrocode} |
| 623 |
% \end{macro} |
| 624 |
|
| 625 |
% \begin{macro}{\huawei@logo} |
| 626 |
% Then, we define |\huawei@logo|: |
| 627 |
% \begin{macrocode} |
| 628 |
\makeatletter\newcommand\huawei@logo[1]{ |
| 629 |
\def\BLACK{\ifdefined\huawei@dark white\else black\fi} |
| 630 |
\def\BLANK{\ifdefined\huawei@dark black\else white\fi} |
| 631 |
\definecolor{logo-red}{HTML}{CF0A2C} |
| 632 |
\begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-#1, |
| 633 |
xscale=#1, inner sep=0pt, outer sep=0pt] |
| 634 |
\begin{scope}[even odd rule,line width=0.800pt] |
| 635 |
\begin{scope}[shift={(0,-0.00024)}] |
| 636 |
\path[fill=\BLACK] (10.9375,30.2240) -- (10.9375,33.6097) |
| 637 |
.. controls (10.9375,34.5713) and (10.4603,35.0845) .. |
| 638 |
(9.5932,35.0845) .. controls (8.7212,35.0845) and |
| 639 |
(8.2411,34.5565) |
| 640 |
.. (8.2411,33.5686) -- (8.2411,30.2278) -- (7.0415,30.2278) |
| 641 |
-- (7.0415,33.6097) .. controls (7.0415,35.2737) and |
| 642 |
(7.9658,36.2272) .. (9.5774,36.2272) .. controls |
| 643 |
(11.2041,36.2272) and (12.1371,35.2554) .. (12.1371,33.5609) -- |
| 644 |
(12.1371,30.2240) |
| 645 |
-- (10.9375,30.2240) -- cycle; |
| 646 |
\path[fill=\BLACK] (15.3511,30.2240) -- (12.7456,36.1351) -- |
| 647 |
(13.9702,36.1351) -- (14.4731,34.9903) -- (14.5091,34.9045) -- |
| 648 |
(17.2158,34.9045) -- (17.7467,36.1351) -- (19.0045,36.1351) -- |
| 649 |
(16.4233,30.2590) -- (16.4001,30.2240) -- cycle; |
| 650 |
\path[fill=\BLACK] (22.4840,30.2240) -- (21.1414,34.2912) -- |
| 651 |
(19.8344,30.2271) -- (18.5578,30.2271) -- (20.6186,36.1388) -- |
| 652 |
(21.6120,36.1388) -- (22.9573,32.2553) -- (24.3016,36.1388) -- |
| 653 |
(25.3034,36.1388) -- (27.3592,30.2271) -- (26.1152,30.2271) -- |
| 654 |
(24.8055,34.2912) -- (23.4626,30.2240) -- cycle; |
| 655 |
\path[fill=\BLACK] (34.2236,30.2240) -- (34.2236,36.1300) -- |
| 656 |
(35.4074,36.1300) -- (35.4074,30.2240) -- cycle; |
| 657 |
\path[fill=\BLACK] (0.2686,30.2244) -- (0.2686,36.1384) -- |
| 658 |
(1.4686,36.1384) -- (1.4686,33.7365) -- (4.1780,33.7365) -- |
| 659 |
(4.1780,36.1384) -- (5.3783,36.1384) -- (5.3783,30.2244) -- |
| 660 |
(4.1780,30.2244) -- (4.1780,32.6102) -- (1.4686,32.6102) -- |
| 661 |
(1.4686,30.2244) -- cycle; |
| 662 |
\path[fill=\BLACK] (28.3267,30.2284) -- (28.3267,36.1344) -- |
| 663 |
(32.7928,36.1344) -- (32.7928,35.0575) -- (29.5105,35.0575) -- |
| 664 |
(29.5105,33.5931) -- (31.6931,33.5931) -- (31.6931,32.5160) -- |
| 665 |
(29.5105,32.5160) -- (29.5105,31.3052) -- (32.6785,31.3052) -- |
| 666 |
(32.6785,30.2284) -- cycle; |
| 667 |
\path[fill=\BLANK] (15.8594,31.7207) -- (16.7149,33.7008) -- |
| 668 |
(16.7119,33.7008) -- (16.7701,33.8374) -- (14.9552,33.8374) -- |
| 669 |
(15.0127,33.7008) -- (15.0117,33.7008) -- cycle; |
| 670 |
\path[fill=logo-red] (15.2113,0.0001) .. controls (14.7353,0.0422) and |
| 671 |
(13.4491,0.3349) .. (13.4491,0.3349) -- (13.4486,0.3349) .. controls |
| 672 |
(10.5495,1.0843) and (9.8643,3.7151) .. (9.8643,3.7151) .. controls |
| 673 |
(9.7227,4.1575) and (9.6584,4.6109) .. (9.6395,5.0380) -- |
| 674 |
(9.6395,5.6194) .. controls (9.6780,6.5176) and (9.8777,7.1883) .. |
| 675 |
(9.8777,7.1883) .. controls (10.8461,11.4823) and |
| 676 |
(15.6075,18.5379) ..(16.6308,20.0200) .. controls |
| 677 |
(16.7034,20.0920) and(16.7615,20.0660) .. |
| 678 |
(16.7615,20.0660) .. controls(16.8720,20.0355) and |
| 679 |
(16.8633,19.9296) .. (16.8633,19.9296) -- |
| 680 |
(16.8654,19.9301) .. controls (18.4416,4.1760) and |
| 681 |
(15.2113,0.0001) .. (15.2113,0.0001) -- (15.2113,0.0001) -- cycle; |
| 682 |
\path[fill=logo-red] (20.4192,0.0000) .. controls (20.4192,0.0000) and |
| 683 |
(17.1748,4.1782) .. (18.7521,19.9415) -- |
| 684 |
(18.7542,19.9415) .. controls (18.7664,20.0416) and |
| 685 |
(18.8374,20.0624) ..(18.8374,20.0624) .. controls |
| 686 |
(18.9430,20.1033) and(18.9971,20.0019) .. (18.9971,20.0019) -- |
| 687 |
(18.9976,20.0029) .. controls (20.0472,18.4829) and |
| 688 |
(24.7814,11.4657) ..(25.7455,7.1882) .. controls(25.7455,7.1882) and |
| 689 |
(26.2683,5.1179) .. (25.7636,3.7150) .. controls |
| 690 |
(25.7636,3.7150) and (25.0470,1.0434) ..(22.1442,0.3375) .. controls |
| 691 |
(22.1442,0.3375) and (21.3077,0.1251) .. (20.4193,0.0000) -- |
| 692 |
(20.4192,0.0000) -- cycle; |
| 693 |
\path[fill=logo-red] (5.4542,4.7294) .. controls (5.4542,4.7294) and |
| 694 |
(2.6920,7.3513) .. (2.5547,10.1307) -- (2.5558,10.1307) -- |
| 695 |
(2.5558,10.5519) .. controls (2.5579,10.5836) and |
| 696 |
(2.5595,10.6157) .. (2.5615,10.6480) .. controls |
| 697 |
(2.6804,12.8893) and (4.3665,14.2157) .. |
| 698 |
(4.3665,14.2157) .. controls (7.0831,16.8634) and |
| 699 |
(13.6611,20.2062) .. (15.1896,20.9647) .. controls |
| 700 |
(15.2110,20.9727) and (15.2900,20.9985) .. |
| 701 |
(15.3364,20.9399) .. controls (15.3364,20.9399) and |
| 702 |
(15.3605,20.9216) .. (15.3715,20.8887) -- |
| 703 |
(15.3715,20.8189) .. controls (15.3704,20.8149) and |
| 704 |
(15.3683,20.8109) .. (15.3663,20.8065) -- |
| 705 |
(15.3669,20.8065) .. controls (11.1809,11.6620) and |
| 706 |
(5.4543,4.7294) .. (5.4543,4.7294) -- (5.4542,4.7294) -- cycle; |
| 707 |
\path[fill=logo-red] (30.1695,4.7294) .. controls (30.1695,4.7294) and |
| 708 |
(24.4602,11.6403) .. (20.2761,20.7662) -- |
| 709 |
(20.2777,20.7657) .. controls (20.2777,20.7657) and |
| 710 |
(20.2283,20.8715) .. (20.3082,20.9399) .. controls |
| 711 |
(20.3082,20.9399) and (20.3320,20.9579) .. (20.3650,20.9652) -- |
| 712 |
(20.4229,20.9652) .. controls (20.4333,20.9622) and |
| 713 |
(20.4444,20.9582) .. (20.4554,20.9507) -- |
| 714 |
(20.4554,20.9517) .. controls (22.0255,20.1724) and |
| 715 |
(28.5525,16.8516) .. (31.2563,14.2162) .. controls |
| 716 |
(31.2563,14.2162) and (32.9686,12.8412) .. |
| 717 |
(33.0583,10.6334) .. controls (33.2560,7.5672) and |
| 718 |
(30.1696,4.7294) .. (30.1696,4.7294) -- (30.1695,4.7294) -- cycle; |
| 719 |
\path[fill=logo-red] (35.3082,13.8080) .. controls (35.3082,13.8080) and |
| 720 |
(26.0003,18.8031) .. (21.1876,22.0494) -- (21.1882,22.0499) -- |
| 721 |
(21.1893,22.0509) .. controls (21.1893,22.0509) and |
| 722 |
(21.1019,22.1081) .. (21.1324,22.2106) .. controls |
| 723 |
(21.1324,22.2106) and (21.1781,22.2933) .. (21.2446,22.2933) -- |
| 724 |
(21.2446,22.2938) .. controls (22.9684,22.2968) and |
| 725 |
(29.4914,22.3041) .. (29.6549,22.2736) .. controls |
| 726 |
(29.6549,22.2736) and (30.4983,22.2399) .. |
| 727 |
(31.5406,21.8395) .. controls (31.5406,21.8395) and |
| 728 |
(33.8608,21.1019) .. (35.0659,18.4677) .. controls |
| 729 |
(35.0659,18.4677) and (35.6166,17.3662) .. (35.6246,15.8187) -- |
| 730 |
(35.6246,15.7531) .. controls (35.6206,15.1563) and |
| 731 |
(35.5365,14.4957) .. (35.3083,13.8080) -- |
| 732 |
(35.3082,13.8080) -- cycle; |
| 733 |
\path[fill=logo-red] (0.3129,13.8313) .. controls (-0.5339,16.4531) and |
| 734 |
(0.6062,18.5656) .. (0.6080,18.5690) .. controls |
| 735 |
(1.7962,21.0795) and (4.0641,21.8401) .. |
| 736 |
(4.0641,21.8401) .. controls (5.1112,22.2703) and |
| 737 |
(6.1586,22.3000) .. (6.1586,22.3000) .. controls |
| 738 |
(6.3221,22.3300) and (12.6713,22.3030) .. |
| 739 |
(14.3725,22.2950) .. controls (14.4445,22.2945) and |
| 740 |
(14.4842,22.2221) .. (14.4842,22.2221) .. controls |
| 741 |
(14.4892,22.2142) and (14.4936,22.2062) .. (14.4955,22.1989) -- |
| 742 |
(14.4955,22.1333) .. controls (14.4814,22.0893) and |
| 743 |
(14.4439,22.0584) .. (14.4439,22.0584) -- |
| 744 |
(14.4450,22.0578) .. controls (9.6347,18.8126) and |
| 745 |
(0.3130,13.8315) .. (0.3130,13.8315) -- (0.3129,13.8313) -- cycle; |
| 746 |
\path[fill=logo-red] (14.1782,23.1010) -- (3.2285,23.4850) .. controls |
| 747 |
(4.4160,25.6018) and (6.4158,27.2469) .. |
| 748 |
(8.4990,26.7416) .. controls (9.9366,26.3822) and |
| 749 |
(13.1935,24.1105) .. (14.2687,23.3429) -- |
| 750 |
(14.2651,23.3399) .. controls (14.3487,23.2648) and |
| 751 |
(14.3188,23.2045) .. (14.3188,23.2045) .. controls |
| 752 |
(14.2913,23.1062) and (14.1783,23.1063) .. (14.1783,23.1063) -- |
| 753 |
(14.1782,23.1010) -- cycle; |
| 754 |
\path[fill=logo-red] (21.4305,23.1090) -- (21.4294,23.1130) .. controls |
| 755 |
(21.4294,23.1130) and (21.3333,23.1252) .. |
| 756 |
(21.3064,23.1972) .. controls (21.3064,23.1972) and |
| 757 |
(21.2831,23.2956) .. (21.3478,23.3445) -- |
| 758 |
(21.3467,23.3455) .. controls (22.3950,24.0973) and |
| 759 |
(25.5729,26.3191) .. (27.1039,26.7505) .. controls |
| 760 |
(27.1039,26.7505) and (27.3359,26.8294) .. (27.7246,26.8435) -- |
| 761 |
(27.9581,26.8435) .. controls (28.9839,26.8075) and |
| 762 |
(30.7708,26.2805) .. (32.3946,23.4907) -- |
| 763 |
(21.4305,23.1090) -- cycle; |
| 764 |
\end{scope}% |
| 765 |
\end{scope}% |
| 766 |
\end{tikzpicture}% |
| 767 |
}\makeatother |
| 768 |
% \end{macrocode} |
| 769 |
% \end{macro} |
| 770 |
|
| 771 |
% Then, we configure headers using |fancyhdr|: |
| 772 |
% \begin{macrocode} |
| 773 |
\RequirePackage{fancyhdr} |
| 774 |
\pagestyle{fancy} |
| 775 |
\renewcommand{\headrulewidth}{0pt} |
| 776 |
\fancyhf{} |
| 777 |
\makeatletter\fancyfoot[L]{ |
| 778 |
\huawei@bar |
| 779 |
\ifdefined\huawei@authordraft% |
| 780 |
\begin{textblock}{14}[0.5,0.5](8,8)% |
| 781 |
\tikz \node[minimum width=14\TPHorizModule] {% |
| 782 |
\fontsize{64}{64}\selectfont\sffamily\scshape% |
| 783 |
\color{gray!20}\rotatebox{30}{it is a draft}% |
| 784 |
};% |
| 785 |
\end{textblock}% |
| 786 |
\else\fi% |
| 787 |
}\makeatother |
| 788 |
\makeatletter\fancyhead[L]{ |
| 789 |
\ifnum\value{page}=1\else% |
| 790 |
\ifdefined\huawei@nobrand\else% |
| 791 |
\ifdefined\huawei@boring\else% |
| 792 |
\begin{textblock}{8}[0,0](1.2,0.2)% |
| 793 |
\huawei@logo{\ifdefined\huawei@slides 1.8\else 1\fi}% |
| 794 |
\end{textblock}% |
| 795 |
\fi |
| 796 |
\fi% |
| 797 |
\fi% |
| 798 |
}\makeatother |
| 799 |
\makeatletter\fancyhead[R]{ |
| 800 |
\ifdefined\huawei@boring\else% |
| 801 |
\begin{textblock}{8}[1,0](15.8,0.2)% |
| 802 |
\raggedleft\huawei@header{% |
| 803 |
\ifdefined\huawei@nosecurity\else% |
| 804 |
\thesecurity% |
| 805 |
\fi% |
| 806 |
}% |
| 807 |
\end{textblock}% |
| 808 |
\fi% |
| 809 |
}\makeatother |
| 810 |
\makeatletter\fancyfoot[R]{ |
| 811 |
\ifdefined\huawei@boring\else% |
| 812 |
\begin{textblock}{8}[0,1](1.2,15.8)% |
| 813 |
\ifnum\value{page}=1\else% |
| 814 |
\huawei@header{\raggedright% |
| 815 |
\ifdefined\huawei@anonymous\else% |
| 816 |
\theauthor% |
| 817 |
\ifdefined\huawei@nosecurity\else% |
| 818 |
\ifx\theid\empty\else, \theid\fi% |
| 819 |
\fi% |
| 820 |
\ifdefined\huawei@nobrand\else% |
| 821 |
\newline |
| 822 |
\fi% |
| 823 |
\fi% |
| 824 |
\ifdefined\huawei@nobrand\else% |
| 825 |
\thecompany{}% |
| 826 |
\fi% |
| 827 |
}% |
| 828 |
\fi% |
| 829 |
\end{textblock}% |
| 830 |
\begin{textblock}{8}[1,1](15.8,15.8)% |
| 831 |
\raggedleft\huawei@header{% |
| 832 |
\ifnum\value{page}=1\else% |
| 833 |
\ifdefined\huawei@nopaging\else% |
| 834 |
Page \#\thepage{} of \pageref*{LastPage}% |
| 835 |
\ifdefined\huawei@nodate\else% |
| 836 |
\\ |
| 837 |
\fi% |
| 838 |
\fi% |
| 839 |
\fi% |
| 840 |
\ifdefined\huawei@nodate\else% |
| 841 |
\today{} \settimeformat{daytime}\currenttime{}% |
| 842 |
\fi% |
| 843 |
}% |
| 844 |
\end{textblock}% |
| 845 |
\fi% |
| 846 |
}\makeatother |
| 847 |
% \end{macrocode} |
| 848 |
|
| 849 |
% \begin{macro}{abstract} |
| 850 |
% Then, we redefine |abstract| environment: |
| 851 |
% \begin{macrocode} |
| 852 |
\RequirePackage{changepage} |
| 853 |
\renewenvironment{abstract} |
| 854 |
{\begin{adjustwidth}{0pt}{1in}{\scshape Abstract:}\newline\small} |
| 855 |
{\end{adjustwidth}} |
| 856 |
% \end{macrocode} |
| 857 |
% \end{macro} |
| 858 |
|
| 859 |
% \begin{macro}{\maketitle} |
| 860 |
% Then, we redefine |\maketitle|: |
| 861 |
% \begin{macrocode} |
| 862 |
\makeatletter\renewcommand\maketitle{% |
| 863 |
\vspace*{18pt}% |
| 864 |
{% |
| 865 |
\bfseries{\begin{spacing}{.9}\Huge\raggedright% |
| 866 |
\ifdefined\huawei@boring% |
| 867 |
\color{red}% |
| 868 |
\fi% |
| 869 |
\thetitle\par\end{spacing}}% |
| 870 |
}% |
| 871 |
\ifx\thesubtitle\empty\else% |
| 872 |
{\color{gray!50!black}\large\raggedright\thesubtitle\par}% |
| 873 |
\fi% |
| 874 |
\ifdefined\huawei@nobrand\else% |
| 875 |
\ifdefined\huawei@anonymous\else% |
| 876 |
\ifx\thecompany\empty\else% |
| 877 |
\thecompany\par% |
| 878 |
\fi% |
| 879 |
\fi% |
| 880 |
\fi% |
| 881 |
\parbox{.6\textwidth}{\raggedright% |
| 882 |
\ifx\theauthor\empty\else% |
| 883 |
{\scshape\ifdefined\huawei@anonymous% |
| 884 |
Anonymous Authors% |
| 885 |
\else% |
| 886 |
\theauthor% |
| 887 |
\fi}% |
| 888 |
\fi% |
| 889 |
\ifdefined\huawei@anonymous\else% |
| 890 |
\ifx\theauthor\empty\else% |
| 891 |
\ifdefined\huawei@nobrand\else% |
| 892 |
\ifx\theid\empty\else% |
| 893 |
$\;$/ {\theid}% |
| 894 |
\fi% |
| 895 |
\fi% |
| 896 |
\fi% |
| 897 |
\fi% |
| 898 |
\par% |
| 899 |
}% |
| 900 |
\vspace{2em}% |
| 901 |
}\makeatother |
| 902 |
% \end{macrocode} |
| 903 |
% \end{macro} |
| 904 |
|
| 905 |
% \begin{macro}{\PrintCrumb} |
| 906 |
% Then, we define |\PrintCrumb|: |
| 907 |
% \begin{macrocode} |
| 908 |
\newcommand\PrintCrumb[2]{% |
| 909 |
\begin{minipage}{\columnwidth}% |
| 910 |
\raggedright\textsc{#1}:\\#2% |
| 911 |
\end{minipage}\vspace{1em}% |
| 912 |
} |
| 913 |
% \end{macrocode} |
| 914 |
% \end{macro} |
| 915 |
|
| 916 |
% \begin{macro}{\PrintThankYouPage} |
| 917 |
% Then, we define |\PrintThankYouPage|: |
| 918 |
% \begin{macrocode} |
| 919 |
\newcommand\PrintThankYouPage{ |
| 920 |
\newpage |
| 921 |
\vspace*{\fill} |
| 922 |
\begin{center} |
| 923 |
\normalsize |
| 924 |
{\Huge\color{red}\textbf{Thank you!}} |
| 925 |
\end{center} |
| 926 |
\vspace*{\fill} |
| 927 |
} |
| 928 |
% \end{macrocode} |
| 929 |
% \end{macro} |
| 930 |
|
| 931 |
% \begin{macro}{\PrintDisclaimer} |
| 932 |
% Then, we define |\PrintDisclaimer|: |
| 933 |
% \begin{macrocode} |
| 934 |
\makeatletter\newcommand\PrintDisclaimer{% |
| 935 |
\justify\vspace*{\fill}% |
| 936 |
\begingroup% |
| 937 |
\setstretch{0.55}% |
| 938 |
\sffamily\scriptsize\color{gray!50!black}% |
| 939 |
\textbf{Disclaimer}: The opinions expressed in |
| 940 |
this document are in good faith and |
| 941 |
while every care has been taken in preparing it, |
| 942 |
\ifdefined\huawei@nobrand% |
| 943 |
the author% |
| 944 |
\else% |
| 945 |
\thecompany{}% |
| 946 |
\fi |
| 947 |
makes no representations and gives no warranties |
| 948 |
of whatever nature in respect of these documents, |
| 949 |
including but not limited to the accuracy or completeness |
| 950 |
of any information, facts and/or opinions contained therein. |
| 951 |
\ifdefined\huawei@nobrand% |
| 952 |
The author% |
| 953 |
\else% |
| 954 |
\thecompany{}% |
| 955 |
\fi, |
| 956 |
its subsidiaries, the directors, employees and agents |
| 957 |
cannot be held liable for the use of and reliance of |
| 958 |
the opinions, estimates, forecasts and findings in |
| 959 |
these documents. |
| 960 |
\par% |
| 961 |
\endgroup% |
| 962 |
}\makeatother |
| 963 |
% \end{macrocode} |
| 964 |
% \end{macro} |
| 965 |
|
| 966 |
% \begin{macro}{\PrintFirstPage} |
| 967 |
% Then, we define |\PrintFirstPage|: |
| 968 |
% \begin{macrocode} |
| 969 |
\makeatletter\newcommand\PrintFirstPage[1]{% |
| 970 |
\ifdefined\huawei@landscape\else% |
| 971 |
\PackageError{huawei}{It's allowed to use |
| 972 |
PrintFirstPage only in landscape mode}{Read huawei.pdf |
| 973 |
for more information} |
| 974 |
\fi% |
| 975 |
\huawei@bar% |
| 976 |
\def\param{#1}% |
| 977 |
\ifx\param\empty\else% |
| 978 |
\includegraphics[height=2in]{#1}% |
| 979 |
\newline% |
| 980 |
\fi% |
| 981 |
\vspace*{0.5in}% |
| 982 |
\maketitle% |
| 983 |
\ifdefined\huawei@nocover\else% |
| 984 |
\begin{textblock}{14}[1,1](14,14)% |
| 985 |
\raggedleft\includegraphics[height=3.6in]{huawei-cover-picture.pdf}% |
| 986 |
\end{textblock}% |
| 987 |
\fi% |
| 988 |
}\makeatother |
| 989 |
% \end{macrocode} |
| 990 |
% \end{macro} |
| 991 |
|
| 992 |
% \begin{macro}{\PrintLastPage} |
| 993 |
% Then, we define |\PrintLastPage|: |
| 994 |
% \begin{macrocode} |
| 995 |
\makeatletter\newcommand\PrintLastPage{% |
| 996 |
\ifdefined\huawei@landscape\else% |
| 997 |
\PackageError{huawei}{It's allowed to use |
| 998 |
PrintLastPage only in landscape mode}{Read huawei.pdf |
| 999 |
for more information} |
| 1000 |
\fi% |
| 1001 |
\newpage% |
| 1002 |
\vspace*{1in}% |
| 1003 |
\begin{center}% |
| 1004 |
\begin{minipage}{0.8\columnwidth}\raggedright% |
| 1005 |
\normalsize% |
| 1006 |
\setlength{\parskip}{6pt}% |
| 1007 |
{\Huge\color{red}\textbf{Thank you!}}% |
| 1008 |
\par% |
| 1009 |
\vspace{0.5in}% |
| 1010 |
\par% |
| 1011 |
Bring digital to every person, home and organization |
| 1012 |
\newline% |
| 1013 |
for a fully connected, intelligent world. |
| 1014 |
\par% |
| 1015 |
\textbf{% |
| 1016 |
Copyright \copyright{} \the\year{} \thecompany{} |
| 1017 |
\newline |
| 1018 |
All Rights Reserved.% |
| 1019 |
} |
| 1020 |
\par% |
| 1021 |
The information in this document may contain predictive |
| 1022 |
statements including, without limitation, statements regarding |
| 1023 |
the future financial and operating results, future product |
| 1024 |
portfolio, new technology, etc. There are a number of factors that |
| 1025 |
could cause actual results and developments to differ materially |
| 1026 |
from those expressed or implied in the predictive statements. |
| 1027 |
Therefore, such information is provided for reference purpose |
| 1028 |
only and constitutes neither an offer nor an acceptance. |
| 1029 |
\ifdefined\huawei@nobrand% |
| 1030 |
The author% |
| 1031 |
\else% |
| 1032 |
\thecompany{}% |
| 1033 |
\fi% |
| 1034 |
may change the information at any time without notice. |
| 1035 |
\end{minipage} |
| 1036 |
\end{center}% |
| 1037 |
}\makeatother |
| 1038 |
% \end{macrocode} |
| 1039 |
% \end{macro} |
| 1040 |
|
| 1041 |
% \begin{macro}{\PrintBibliography} |
| 1042 |
% Then, we define |\PrintBibliography|: |
| 1043 |
% \changes{v0.18.0}{2023/08/09}{The bibliography prints in one column unless \texttt{breaks} class option is specified.} |
| 1044 |
% \begin{macrocode} |
| 1045 |
\makeatletter\newcommand\PrintBibliography{% |
| 1046 |
\setlength\bibitemsep{3pt}% |
| 1047 |
\AtNextBibliography{\small}% |
| 1048 |
\ifdefined\huawei@breaks\newpage\fi% |
| 1049 |
\begingroup% |
| 1050 |
\raggedright% |
| 1051 |
\setstretch{0.95}% |
| 1052 |
\ifdefined\huawei@landscape% |
| 1053 |
\begin{multicols}{3}\printbibliography\end{multicols}% |
| 1054 |
\else% |
| 1055 |
\ifdefined\huawei@breaks% |
| 1056 |
\begin{multicols}{2}\printbibliography\end{multicols}% |
| 1057 |
\else |
| 1058 |
\printbibliography% |
| 1059 |
\fi% |
| 1060 |
\fi% |
| 1061 |
}\makeatother |
| 1062 |
% \end{macrocode} |
| 1063 |
% \end{macro} |
| 1064 |
|
| 1065 |
% Then, we set the background color of the document, if required by the |dark| class option: |
| 1066 |
% \begin{macrocode} |
| 1067 |
\makeatletter\ifdefined\huawei@dark% |
| 1068 |
\RequirePackage{pagecolor}% |
| 1069 |
\pagecolor{black}% |
| 1070 |
\color{white}% |
| 1071 |
\fi |
| 1072 |
% \end{macrocode} |
| 1073 |
|
| 1074 |
% Then, we configure the layout: |
| 1075 |
% \begin{macrocode} |
| 1076 |
\AtBeginDocument{% |
| 1077 |
\raggedbottom% |
| 1078 |
\raggedcolumns% |
| 1079 |
\setlength\headheight{32pt}% |
| 1080 |
\setlength\footskip{32pt}% |
| 1081 |
\setlength\topskip{0mm}% |
| 1082 |
\setlength\parindent{0pt}% |
| 1083 |
\setlength\parskip{6pt}% |
| 1084 |
\setlength\columnsep{32pt}% |
| 1085 |
\renewcommand{\arraystretch}{1}% |
| 1086 |
} |
| 1087 |
% \end{macrocode} |
| 1088 |
|
| 1089 |
% Then, we renew a few commands: |
| 1090 |
% \begin{macrocode} |
| 1091 |
\renewcommand\title[1]{\renewcommand\thetitle{#1}} |
| 1092 |
\newcommand\thetitle{\textbackslash{}thetitle} |
| 1093 |
\newcommand*\thecompany{Huawei Technologies Co., Ltd.} |
| 1094 |
\newcommand\thesubtitle{} |
| 1095 |
\renewcommand\author[1]{\renewcommand\theauthor{#1}} |
| 1096 |
\newcommand\theauthor{\textbackslash{}theauthor} |
| 1097 |
\newcommand*\thesecurity{Confidential} |
| 1098 |
\newcommand*\theid{} |
| 1099 |
\ifcsname nospell\endcsname\else\newcommand\nospell[1]{#1}\fi |
| 1100 |
% \end{macrocode} |
| 1101 |
|
| 1102 |
% \Finale |
| 1103 |
|
| 1104 |
%\clearpage |
| 1105 |
% |
| 1106 |
%\PrintChanges |
| 1107 |
%\clearpage |
| 1108 |
%\PrintIndex |