diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/huawei/DEPENDS.txt | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/huawei/README.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/huawei/huawei.pdf | bin | 336511 -> 336670 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/huawei/huawei.tex | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/huawei/huawei.cls | 37 |
6 files changed, 27 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt b/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt index a4e9941327f..bcf146a97f2 100644 --- a/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt +++ b/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt @@ -13,12 +13,12 @@ hard makecell hard footmisc hard graphicx hard array +hard hyperref hard currfile hard enumitem hard microtype hard wrapfig hard lastpage -hard xfp hard setspace hard biblatex hard xcolor diff --git a/Master/texmf-dist/doc/latex/huawei/README.md b/Master/texmf-dist/doc/latex/huawei/README.md index ad892563315..8e3278065e1 100644 --- a/Master/texmf-dist/doc/latex/huawei/README.md +++ b/Master/texmf-dist/doc/latex/huawei/README.md @@ -1,4 +1,4 @@ -[![make](https://github.com/yegor256/huawei.cls/actions/workflows/make.yml/badge.svg)](https://github.com/yegor256/huawei.cls/actions/workflows/make.yml) +[![make](https://github.com/yegor256/huawei.cls/actions/workflows/latexmk.yml/badge.svg)](https://github.com/yegor256/huawei.cls/actions/workflows/latexmk.yml) [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/huawei.cls/blob/master/LICENSE.txt) Disclaimer: This is **NOT** a product of Huawei Technologies Co., Ltd. diff --git a/Master/texmf-dist/doc/latex/huawei/huawei.pdf b/Master/texmf-dist/doc/latex/huawei/huawei.pdf Binary files differindex 63a83ce57db..0cd923a93ec 100644 --- a/Master/texmf-dist/doc/latex/huawei/huawei.pdf +++ b/Master/texmf-dist/doc/latex/huawei/huawei.pdf diff --git a/Master/texmf-dist/doc/latex/huawei/huawei.tex b/Master/texmf-dist/doc/latex/huawei/huawei.tex index 8bf1d946197..f0607bf4aef 100644 --- a/Master/texmf-dist/doc/latex/huawei/huawei.tex +++ b/Master/texmf-dist/doc/latex/huawei/huawei.tex @@ -29,9 +29,9 @@ \begin{document} \maketitle -\ff{Version: 0.7.2} +\ff{Version: 0.7.3} \newline -\ff{Date: 2021/07/05} +\ff{Date: 2021/07/07} \section{Overview} diff --git a/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex b/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex index 58118521556..733cec37519 100644 --- a/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex +++ b/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex @@ -20,7 +20,7 @@ % OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE % SOFTWARE. -\documentclass[nobrand,nosecurity,anonymous,nopaging,authordraft]{../huawei} +\documentclass[nobrand,nosecurity,nopaging,authordraft]{../huawei} \usepackage{ffcode} \renewcommand*\thetitle{Test Call for Proposal} \renewcommand*\theauthor{Yegor Bugayenko} diff --git a/Master/texmf-dist/tex/latex/huawei/huawei.cls b/Master/texmf-dist/tex/latex/huawei/huawei.cls index fa0ce1537cc..87c562736cd 100644 --- a/Master/texmf-dist/tex/latex/huawei/huawei.cls +++ b/Master/texmf-dist/tex/latex/huawei/huawei.cls @@ -21,7 +21,7 @@ % SOFTWARE. \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{huawei}[2021/07/05 0.7.2 Template for Huawei Documents] +\ProvidesClass{huawei}[2021/07/07 0.7.3 Template for Huawei Documents] \newif\ifnosecurity \DeclareOption{nosecurity}{\nosecuritytrue} @@ -66,20 +66,15 @@ \setlength{\footnotesep}{2pt} \RequirePackage{graphicx} \RequirePackage{array} +\RequirePackage[hidelinks]{hyperref} % to enable \pageref* command \RequirePackage[abspath]{currfile} \RequirePackage{enumitem} \setlist{nosep} \RequirePackage{microtype} \RequirePackage{wrapfig} \RequirePackage{lastpage} -\RequirePackage{xfp} % for \setrelativestretch \RequirePackage{setspace} \setstretch{1.08} - \newcommand{\setrelativestretch}[1]{% - \begingroup\edef\x{\endgroup% - \noexpand\setstretch{\fpeval{(#1)*(\baselinestretch)}}% - }\x% - } \RequirePackage[maxnames=1,minnames=1,natbib=true,citestyle=numeric,bibstyle=numeric,doi=false,url=false,isbn=false,isbn=false]{biblatex} \RequirePackage[table]{xcolor} \definecolor{huawei-red}{HTML}{CF0A2C} @@ -103,7 +98,7 @@ % Custom commands \newcommand\nospell[1]{#1} -\newcommand\headers[1]{\setrelativestretch{0.8}{\small\sffamily\color{gray}#1}} +\newcommand\headers[1]{\setstretch{0.8}{\small\sffamily\color{gray}#1\par}} \newcommand\tbd[1]{{\color{red}#1}} \newcommand\crumb[2]{\begin{minipage}{\columnwidth}\raggedright\textsc{#1}:\\#2\end{minipage}\vspace{4pt}} @@ -252,7 +247,10 @@ } \newcommand\PrintDisclaimer{% - \justify\vspace*{\fill}\setrelativestretch{0.55}{{\sffamily\scriptsize\color{gray!50!black}% + \justify\vspace*{\fill}% + \begingroup% + \setstretch{0.55}% + \sffamily\scriptsize\color{gray!50!black}% \textbf{Disclaimer}: The opinions expressed in this document are in good faith and while every care has been taken in preparing it, \ifnobrand% @@ -270,9 +268,15 @@ \fi, its subsidiaries, the directors, employees and agents cannot be held liable for the use of and reliance of the opinions, estimates, forecasts and - findings in these documents.}}} + findings in these documents. + \par + \endgroup% +} \newcommand\PrintFirstPage[1]{ + \iflandscape\else + \PackageError{huawei}{It's allowed to use PrintFirstPage only in landscape mode}{Read huawei.pdf for more information} + \fi \LeftHuaweiBar{} \def\param{#1}% \ifx\param\empty\else @@ -281,14 +285,17 @@ \fi \vspace*{0.5in} \maketitle - \iflandscape\ifnocover\else + \ifnocover\else \begin{textblock}{14}[1,1](14,14) \raggedleft\includegraphics[height=3.6in]{huawei-cover-picture.pdf} \end{textblock} - \fi\fi + \fi } \newcommand\PrintLastPage{ + \iflandscape\else + \PackageError{huawei}{It's allowed to use PrintLastPage only in landscape mode}{Read huawei.pdf for more information} + \fi \newpage \vspace*{1in} \begin{center} @@ -331,14 +338,14 @@ } \newcommand\PrintBibliography{ - \setlength\bibitemsep{0pt} + \setlength\bibitemsep{3pt} \AtNextBibliography{\small} \newpage \raggedright \iflandscape - \begin{multicols}{3}\setrelativestretch{1.0}{\printbibliography}\end{multicols} + \begin{multicols}{3}\setstretch{0.95}\printbibliography\end{multicols} \else - \begin{multicols}{2}\setrelativestretch{1.0}{\printbibliography}\end{multicols} + \begin{multicols}{2}\setstretch{0.95}\printbibliography\end{multicols} \fi } |