texlive[59328] Master/texmf-dist: huawei (24may21)

commits+karl at tug.org commits+karl at tug.org
Mon May 24 22:16:09 CEST 2021


Revision: 59328
          http://tug.org/svn/texlive?view=revision&revision=59328
Author:   karl
Date:     2021-05-24 22:16:09 +0200 (Mon, 24 May 2021)
Log Message:
-----------
huawei (24may21)

Modified Paths:
--------------
    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/tex/latex/huawei/huawei.cls

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/huawei/images/
    trunk/Master/texmf-dist/doc/latex/huawei/images/huawei-cover.pdf
    trunk/Master/texmf-dist/doc/latex/huawei/samples/
    trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex
    trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex

Modified: trunk/Master/texmf-dist/doc/latex/huawei/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/README.md	2021-05-24 20:15:17 UTC (rev 59327)
+++ trunk/Master/texmf-dist/doc/latex/huawei/README.md	2021-05-24 20:16:09 UTC (rev 59328)
@@ -11,17 +11,20 @@
 
 ```tex
 \documentclass[landscape]{huawei}
-\author{Yegor Bugayenko}
-\title{An Interesting Document About Something}
+\renewcommand*\theauthor{Yegor Bugayenko}
+\renewcommand*\thetitle{An Interesting Document About Something}
 \begin{document}
+\maketitle
 Hello, world!
 \end{document}
 ```
 
+Read the detailed documentation [in PDF](http://mirrors.ctan.org/macros/latex/contrib/huawei/huawei.pdf).
+
 Find more examples in the [`samples/`](/samples) directory.
 
 If you need more formatting options, 
-[submit an issue](https://github.com/cqfn/huawei-latex/issues), 
+[submit an issue](https://github.com/yegor256/huawei.cls/issues), 
 I'll implement them.
 
 If you want to contribute yourself, make a fork, then create a branch, 

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-05-24 20:15:17 UTC (rev 59327)
+++ trunk/Master/texmf-dist/doc/latex/huawei/huawei.tex	2021-05-24 20:16:09 UTC (rev 59328)
@@ -1,3 +1,25 @@
+% (The MIT License)
+%
+% Copyright (c) 2021 Yegor Bugayenko
+%
+% Permission is hereby granted, free of charge, to any person obtaining a copy
+% of this software and associated documentation files (the 'Software'), to deal
+% in the Software without restriction, including without limitation the rights
+% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+% copies of the Software, and to permit persons to whom the Software is
+% furnished to do so, subject to the following conditions:
+%
+% The above copyright notice and this permission notice shall be included in all
+% copies or substantial portions of the Software.
+%
+% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+% SOFTWARE.
+
 \documentclass[nobrand,nosecurity]{./huawei}
 \renewcommand*\thetitle{\LaTeX{} Class \ff{huawei}}
 \renewcommand*\thesubtitle{User's Guide}
@@ -5,9 +27,9 @@
 \begin{document}
 \maketitle
 
-\ff{Version: 0.2.0}
+\ff{Version: 0.3.0}
 \newline
-\ff{Date: 13/05/2021}
+\ff{Date: 2021/05/24}
 
 \section{Overview}
 
@@ -74,6 +96,10 @@
   \href{https://en.wikipedia.org/wiki/Paper_size}{A4}),
   making it perfect for presentations.
 
+\ff{nocover}
+  avoid printing the cover images on the first page by the
+  \ff{\textbackslash{}PrintTitlePage} command.
+
 \ff{anonymous}
   removes the name of the author everywhere, including the bottom
   of the page, where the author's name stays next to the name of the
@@ -199,7 +225,7 @@
 \end{document}
 \end{minted}
 
-A more complete example is in the\ff{samples/charter.tex}.
+A more complete example is in the \ff{samples/huawei-charter.tex}.
 
 \subsection{Crumbs}
 
@@ -220,6 +246,6 @@
 \end{document}
 \end{minted}
 
-A more complete example is in the\ff{samples/charter.tex}.
+A more complete example is in the \ff{samples/huawei-charter.tex}.
 
 \end{document}
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/huawei/images/huawei-cover.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/huawei/images/huawei-cover.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/images/huawei-cover.pdf	2021-05-24 20:15:17 UTC (rev 59327)
+++ trunk/Master/texmf-dist/doc/latex/huawei/images/huawei-cover.pdf	2021-05-24 20:16:09 UTC (rev 59328)

Property changes on: trunk/Master/texmf-dist/doc/latex/huawei/images/huawei-cover.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex	2021-05-24 20:16:09 UTC (rev 59328)
@@ -0,0 +1,53 @@
+% (The MIT License)
+%
+% Copyright (c) 2021 Yegor Bugayenko
+%
+% Permission is hereby granted, free of charge, to any person obtaining a copy
+% of this software and associated documentation files (the 'Software'), to deal
+% in the Software without restriction, including without limitation the rights
+% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+% copies of the Software, and to permit persons to whom the Software is
+% furnished to do so, subject to the following conditions:
+%
+% The above copyright notice and this permission notice shall be included in all
+% copies or substantial portions of the Software.
+%
+% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+% SOFTWARE.
+
+\documentclass[nobrand,nosecurity,anonymous,nopaging]{../huawei}
+\renewcommand*\thetitle{Test Call for Proposal}
+\renewcommand*\theauthor{Yegor Bugayenko}
+\addbibresource{main.bib}
+\begin{document}
+
+\maketitle
+
+In this document you don't see the logo, because we use \ff{nobrand}
+option of the class:
+
+\begin{minted}{text}
+\documentclass[nobrand]{huawei}
+\begin{document}
+The rest of the document...
+\end{document}
+\end{minted}
+
+By the way, we use \TeX{} created by~\citet{knuth1984texbook}
+and \LaTeX{} created by~\citet{lamport1994latex}. The citations
+provided at the bottom of the document are printed via
+\ff{\textbackslash{}PrintBibliography}.
+
+The text in small font at the bottom of the page is printed by
+the \ff{\textbackslash{}PrintDisclaimer} command.
+
+\PrintDisclaimer
+
+\PrintBibliography
+
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex	2021-05-24 20:16:09 UTC (rev 59328)
@@ -0,0 +1,67 @@
+% (The MIT License)
+%
+% Copyright (c) 2021 Yegor Bugayenko
+%
+% Permission is hereby granted, free of charge, to any person obtaining a copy
+% of this software and associated documentation files (the 'Software'), to deal
+% in the Software without restriction, including without limitation the rights
+% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+% copies of the Software, and to permit persons to whom the Software is
+% furnished to do so, subject to the following conditions:
+%
+% The above copyright notice and this permission notice shall be included in all
+% copies or substantial portions of the Software.
+%
+% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+% SOFTWARE.
+
+\documentclass[landscape,nocover]{../huawei}
+\renewcommand*\thetitle{Test Charter}
+\renewcommand*\thesubtitle{Technology Project Charter}
+\renewcommand*\theauthor{Yegor Bugayenko}
+\begin{document}
+
+\PrintFirstPage{}
+
+\newpage
+\section*{Project Details}
+\begin{multicols}{2}
+\raggedright
+\crumb{Author and Project Manager}{\theauthor / \theid}
+
+\crumb{Project Name}{Making Compression 15\% Faster}
+
+\crumb{Technical Adviser}{Jeff Lebowski, 00112233}
+
+\crumb{Cooperation Manager}{Walter Sobchak, 00889977}
+
+\crumb{Budget}{\$99,999}
+
+\crumb{Duration}{8 months}
+
+\crumb{Export Control}{No}
+
+\crumb{AI Technology Involved}{No}
+
+\crumb{Hardware Supply}{No}
+
+\end{multicols}
+
+\newpage
+\begin{multicols}{2}
+\section*{Objectives}
+The main objective of the project is to win the war
+against poverty in the world.
+\columnbreak
+\section*{Novelty}
+The idea of this project is very new and breakthrough.
+\end{multicols}
+
+\PrintLastPage
+
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2021-05-24 20:15:17 UTC (rev 59327)
+++ trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2021-05-24 20:16:09 UTC (rev 59328)
@@ -21,7 +21,8 @@
 % SOFTWARE.
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{huawei}[13/05/2021 0.2.0 Template for Huawei documents]
+\ProvidesClass{huawei}[2021/05/24 0.3.0 Template for Huawei documents]
+
 \newif\ifnosecurity
 \DeclareOption{nosecurity}{\nosecuritytrue}
 \newif\ifnobrand
@@ -28,6 +29,8 @@
 \DeclareOption{nobrand}{\nobrandtrue}
 \newif\ifnodate
 \DeclareOption{nodate}{\nodatetrue}
+\newif\ifnocover
+\DeclareOption{nocover}{\nocovertrue}
 \newif\ifnopaging
 \DeclareOption{nopaging}{\nopagingtrue}
 \newif\iflandscape
@@ -35,7 +38,9 @@
 \newif\ifanonymous
 \DeclareOption{anonymous}{\anonymoustrue}
 \ProcessOptions\relax
+
 \LoadClass[12pt]{article}
+
 \RequirePackage{geometry}
 \iflandscape
   \geometry{paperwidth=16in, paperheight=9in, left=4in, right=2in, top=1.5in, bottom=1.5in}
@@ -269,6 +274,11 @@
   \fi
   \vspace*{0.5in}
   \maketitle
+  \iflandscape\ifnocover\else
+    \begin{textblock}{14}[1,1](14,14)
+      \raggedleft\includegraphics[height=3.6in]{images/huawei-cover.pdf}
+    \end{textblock}
+  \fi\fi
 }
 
 \newcommand\PrintLastPage{



More information about the tex-live-commits mailing list.