summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-24 20:16:09 +0000
committerKarl Berry <karl@freefriends.org>2021-05-24 20:16:09 +0000
commit6817402334ba1ac1d3602301cd96216af854adf4 (patch)
treee7382b8f19cbacb9e591980640af9e079f607d24
parent03deeefc2e47912c06c5df308b73274878480619 (diff)
huawei (24may21)
git-svn-id: svn://tug.org/texlive/trunk@59328 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/huawei/README.md9
-rw-r--r--Master/texmf-dist/doc/latex/huawei/huawei.pdfbin362961 -> 363871 bytes
-rw-r--r--Master/texmf-dist/doc/latex/huawei/huawei.tex34
-rw-r--r--Master/texmf-dist/doc/latex/huawei/images/huawei-cover.pdfbin0 -> 253724 bytes
-rw-r--r--Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex53
-rw-r--r--Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex67
-rw-r--r--Master/texmf-dist/tex/latex/huawei/huawei.cls12
7 files changed, 167 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/huawei/README.md b/Master/texmf-dist/doc/latex/huawei/README.md
index a6ae6ec72c0..c3a9ad9132c 100644
--- a/Master/texmf-dist/doc/latex/huawei/README.md
+++ b/Master/texmf-dist/doc/latex/huawei/README.md
@@ -11,17 +11,20 @@ and then use in the preamble:
```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,
diff --git a/Master/texmf-dist/doc/latex/huawei/huawei.pdf b/Master/texmf-dist/doc/latex/huawei/huawei.pdf
index 0c4cfd48e1e..a5a50cb96c1 100644
--- a/Master/texmf-dist/doc/latex/huawei/huawei.pdf
+++ b/Master/texmf-dist/doc/latex/huawei/huawei.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/huawei/huawei.tex b/Master/texmf-dist/doc/latex/huawei/huawei.tex
index dc2d76e5cf0..dc9904a0d4a 100644
--- a/Master/texmf-dist/doc/latex/huawei/huawei.tex
+++ b/Master/texmf-dist/doc/latex/huawei/huawei.tex
@@ -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 @@ the layout of your document:
\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 @@ Here goes the second column content.
\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 @@ we recommend you to use ``crumbs'':
\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
diff --git a/Master/texmf-dist/doc/latex/huawei/images/huawei-cover.pdf b/Master/texmf-dist/doc/latex/huawei/images/huawei-cover.pdf
new file mode 100644
index 00000000000..6717a9ff35e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/huawei/images/huawei-cover.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex b/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex
new file mode 100644
index 00000000000..76681372548
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/huawei/samples/huawei-cfp.tex
@@ -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
diff --git a/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex b/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex
new file mode 100644
index 00000000000..0cbc02b9d25
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/huawei/samples/huawei-charter.tex
@@ -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
diff --git a/Master/texmf-dist/tex/latex/huawei/huawei.cls b/Master/texmf-dist/tex/latex/huawei/huawei.cls
index 1a8c9c2ef3b..ef8f26da251 100644
--- a/Master/texmf-dist/tex/latex/huawei/huawei.cls
+++ b/Master/texmf-dist/tex/latex/huawei/huawei.cls
@@ -21,13 +21,16 @@
% 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
\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{