summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/huawei
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-07-08 03:00:51 +0000
committerNorbert Preining <norbert@preining.info>2021-07-08 03:00:51 +0000
commitf008fc632f906448b4bdbc5cd96ab7d98e68b0b9 (patch)
tree1bd4642b99cce05d6ca1dde2577729d865f402c8 /macros/latex/contrib/huawei
parent4747884efc69f5b8ad51cc818467f7bbf428b815 (diff)
CTAN sync 202107080300
Diffstat (limited to 'macros/latex/contrib/huawei')
-rw-r--r--macros/latex/contrib/huawei/DEPENDS.txt2
-rw-r--r--macros/latex/contrib/huawei/README.md2
-rw-r--r--macros/latex/contrib/huawei/huawei.cls37
-rw-r--r--macros/latex/contrib/huawei/huawei.pdfbin336511 -> 336670 bytes
-rw-r--r--macros/latex/contrib/huawei/huawei.tex4
-rw-r--r--macros/latex/contrib/huawei/samples/huawei-cfp.tex2
6 files changed, 27 insertions, 20 deletions
diff --git a/macros/latex/contrib/huawei/DEPENDS.txt b/macros/latex/contrib/huawei/DEPENDS.txt
index a4e9941327..bcf146a97f 100644
--- a/macros/latex/contrib/huawei/DEPENDS.txt
+++ b/macros/latex/contrib/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/macros/latex/contrib/huawei/README.md b/macros/latex/contrib/huawei/README.md
index ad89256331..8e3278065e 100644
--- a/macros/latex/contrib/huawei/README.md
+++ b/macros/latex/contrib/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/macros/latex/contrib/huawei/huawei.cls b/macros/latex/contrib/huawei/huawei.cls
index fa0ce1537c..87c562736c 100644
--- a/macros/latex/contrib/huawei/huawei.cls
+++ b/macros/latex/contrib/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
}
diff --git a/macros/latex/contrib/huawei/huawei.pdf b/macros/latex/contrib/huawei/huawei.pdf
index 63a83ce57d..0cd923a93e 100644
--- a/macros/latex/contrib/huawei/huawei.pdf
+++ b/macros/latex/contrib/huawei/huawei.pdf
Binary files differ
diff --git a/macros/latex/contrib/huawei/huawei.tex b/macros/latex/contrib/huawei/huawei.tex
index 8bf1d94619..f0607bf4ae 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.7.2}
+\ff{Version: 0.7.3}
\newline
-\ff{Date: 2021/07/05}
+\ff{Date: 2021/07/07}
\section{Overview}
diff --git a/macros/latex/contrib/huawei/samples/huawei-cfp.tex b/macros/latex/contrib/huawei/samples/huawei-cfp.tex
index 5811852155..733cec3751 100644
--- a/macros/latex/contrib/huawei/samples/huawei-cfp.tex
+++ b/macros/latex/contrib/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}