texlive[59866] Master/texmf-dist: huawei (7jul21)
commits+karl at tug.org
commits+karl at tug.org
Wed Jul 7 22:56:12 CEST 2021
Revision: 59866
http://tug.org/svn/texlive?view=revision&revision=59866
Author: karl
Date: 2021-07-07 22:56:12 +0200 (Wed, 07 Jul 2021)
Log Message:
-----------
huawei (7jul21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt
trunk/Master/texmf-dist/doc/latex/huawei/README.md
trunk/Master/texmf-dist/doc/latex/huawei/huawei.pdf
trunk/Master/texmf-dist/doc/latex/huawei/huawei.tex
trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex
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 2021-07-07 20:55:57 UTC (rev 59865)
+++ trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt 2021-07-07 20:56:12 UTC (rev 59866)
@@ -13,12 +13,12 @@
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
Modified: trunk/Master/texmf-dist/doc/latex/huawei/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/README.md 2021-07-07 20:55:57 UTC (rev 59865)
+++ trunk/Master/texmf-dist/doc/latex/huawei/README.md 2021-07-07 20:56:12 UTC (rev 59866)
@@ -1,4 +1,4 @@
-[](https://github.com/yegor256/huawei.cls/actions/workflows/make.yml)
+[](https://github.com/yegor256/huawei.cls/actions/workflows/latexmk.yml)
[](https://github.com/yegor256/huawei.cls/blob/master/LICENSE.txt)
Disclaimer: This is **NOT** a product of Huawei Technologies Co., Ltd.
Modified: trunk/Master/texmf-dist/doc/latex/huawei/huawei.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/huawei/huawei.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/huawei.tex 2021-07-07 20:55:57 UTC (rev 59865)
+++ trunk/Master/texmf-dist/doc/latex/huawei/huawei.tex 2021-07-07 20:56:12 UTC (rev 59866)
@@ -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}
Modified: trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex 2021-07-07 20:55:57 UTC (rev 59865)
+++ trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex 2021-07-07 20:56:12 UTC (rev 59866)
@@ -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}
Modified: trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls 2021-07-07 20:55:57 UTC (rev 59865)
+++ trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls 2021-07-07 20:56:12 UTC (rev 59866)
@@ -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,6 +66,7 @@
\setlength{\footnotesep}{2pt}
\RequirePackage{graphicx}
\RequirePackage{array}
+\RequirePackage[hidelinks]{hyperref} % to enable \pageref* command
\RequirePackage[abspath]{currfile}
\RequirePackage{enumitem}
\setlist{nosep}
@@ -72,14 +73,8 @@
\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
}
More information about the tex-live-commits
mailing list.