summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-08-03 19:57:22 +0000
committerKarl Berry <karl@freefriends.org>2023-08-03 19:57:22 +0000
commita1c9fe316d7bbdf53ac17551a8b9806aa0f82b9a (patch)
treed6005a5d52a12bbf4895a633ebdc0dce2519a668
parent95afc17a88f21b9b0d78410b06b3da8d1b3875bb (diff)
huawei (3aug23)
git-svn-id: svn://tug.org/texlive/trunk@67802 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/huawei/DEPENDS.txt17
-rw-r--r--Master/texmf-dist/doc/latex/huawei/huawei.pdfbin806259 -> 807934 bytes
-rw-r--r--Master/texmf-dist/source/latex/huawei/huawei.dtx93
-rw-r--r--Master/texmf-dist/tex/latex/huawei/huawei.cls50
4 files changed, 130 insertions, 30 deletions
diff --git a/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt b/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt
index c2b072d36c2..32d6fff18a7 100644
--- a/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt
+++ b/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt
@@ -1,5 +1,6 @@
hard anyfontsize
hard biblatex
+hard caption
hard catchfile
hard changepage
hard currfile
@@ -16,18 +17,32 @@ hard geometry
hard hyperref
hard lastpage
hard libertine
+hard listings
+hard listingsutf8
hard makecell
hard microtype
hard pagecolor
hard paralist
+hard pdfcol
hard pgf
hard pgfopts
hard ragged2e
hard setspace
hard svg
+hard tcolorbox
hard textpos
+hard tikzfill
hard titling
hard transparent
hard trimspaces
hard wrapfig
-hard xcolor \ No newline at end of file
+hard xcolor
+soft docshots
+soft href-ul
+soft hypdoc
+soft iexec
+soft l3build
+soft libertine
+soft scheme-basic
+soft tools
+soft xetex \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/huawei/huawei.pdf b/Master/texmf-dist/doc/latex/huawei/huawei.pdf
index a84233c4758..8355c298f14 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/source/latex/huawei/huawei.dtx b/Master/texmf-dist/source/latex/huawei/huawei.dtx
index 8c502d0f38e..7546b37e567 100644
--- a/Master/texmf-dist/source/latex/huawei/huawei.dtx
+++ b/Master/texmf-dist/source/latex/huawei/huawei.dtx
@@ -50,7 +50,7 @@
%<class>\NeedsTeXFormat{LaTeX2e}
%<class>\ProvidesClass{huawei}
%<*class>
-[2023-05-20 0.16.0 Template for Huawei Documents]
+[2023-08-03 0.17.0 Template for Huawei Documents]
%</class>
%<*driver>
\documentclass{ltxdoc}
@@ -58,9 +58,9 @@
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{microtype}
-\AddToHook{env/verbatim/begin}{\microtypesetup{protrusion=false}}
+ \AddToHook{env/verbatim/begin}{\microtypesetup{protrusion=false}}
\usepackage[dtx,margin=0,log,nocrop]{docshots}
-\docshotPrerequisite{huawei-cover-picture.pdf}
+ \docshotPrerequisite{huawei-cover-picture.pdf}
\usepackage{href-ul}
\PageIndex
\EnableCrossrefs
@@ -402,39 +402,75 @@ $pdflatex = 'pdflatex %O --shell-escape %S';
\fi\makeatother
% \end{macrocode}
-% Then, we include a important packages:
+% Then, we configure the encodings:
% \begin{macrocode}
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
+% \end{macrocode}
+
+% Then, we include a few important packages:
+% \begin{macrocode}
\RequirePackage{tabularx}
\RequirePackage{anyfontsize}
\RequirePackage{multicol}
\RequirePackage{ragged2e}
\RequirePackage{multicol}
-\RequirePackage[mmddyyyy,iso]{datetime}
- \newtimeformat{daytime}{\twodigit{\THEHOUR}:\twodigit{\THEMINUTE}}
-\RequirePackage[tt=false,type1=true]{libertine}
\RequirePackage{paralist}
\RequirePackage{makecell}
-\RequirePackage[para]{footmisc}
- \setlength{\footnotemargin}{2pt}
- \setlength{\footnotesep}{2pt}
\RequirePackage{graphicx}
\RequirePackage{array}
-\RequirePackage[hidelinks]{hyperref} % to enable \pageref* command
\RequirePackage[abspath]{currfile}
-\RequirePackage{enumitem}
- \setlist{nosep}
-\RequirePackage{microtype}
-\AddToHook{env/verbatim/begin}{\microtypesetup{protrusion=false}}
\RequirePackage{wrapfig}
\RequirePackage{lastpage}
\RequirePackage{tikz}
\RequirePackage{tabularx}
\RequirePackage{titling}
\RequirePackage{svg}
+% \end{macrocode}
+
+% Then, we configure |libertine| font:
+% \begin{macrocode}
+\PassOptionsToPackage{tt=false,type1=true}{libertine}
+\RequirePackage{libertine}
+% \end{macrocode}
+
+% Then, we configure |microtype|:
+% \begin{macrocode}
+\RequirePackage{microtype}
+\AddToHook{env/verbatim/begin}{\microtypesetup{protrusion=false}}
+% \end{macrocode}
+
+% Then, we configure |footmisc|:
+% \begin{macrocode}
+\PassOptionsToPackage{para}{footmisc}
+\RequirePackage{footmisc}
+\setlength{\footnotemargin}{2pt}
+\setlength{\footnotesep}{2pt}
+% \end{macrocode}
+
+% Then, we configure |enumitem|:
+% \begin{macrocode}
+\RequirePackage{enumitem}
+\setlist{nosep}
+% \end{macrocode}
+
+% Then, we configure |textpos|:
+% \begin{macrocode}
\RequirePackage[absolute]{textpos}
- \TPGrid{16}{16}
+\TPGrid{16}{16}
+% \end{macrocode}
+
+% Then, we configure |datetime|:
+% \begin{macrocode}
+\PassOptionsToPackage{mmddyyyy,iso}{datetime}
+\RequirePackage{datetime}
+\newtimeformat{daytime}{\twodigit{\THEHOUR}:\twodigit{\THEMINUTE}}
+% \end{macrocode}
+
+% Then, to enable |\pageref*| command, we configure |hyperref|:
+% \begin{macrocode}
+\PassOptionsToPackage{hidelinks}{hyperref}
+\RequirePackage{hyperref}
% \end{macrocode}
% Then, we configure |biblatex|:
@@ -445,6 +481,31 @@ $pdflatex = 'pdflatex %O --shell-escape %S';
url=false,isbn=false,isbn=false]{biblatex}
% \end{macrocode}
+% Then, we make figure captions smaller and in |sf| font:
+% \changes{v0.17.0}{2023/08/08}{Smaller and sans-serif font for captions of figures.}
+% \begin{macrocode}
+\PassOptionsToPackage{font={small,sf}}{caption}
+\RequirePackage{caption}
+% \end{macrocode}
+
+% Then, we make all figures and tables bordered by default, with the help of the |float| package:
+% \changes{v0.17.0}{2023/08/08}{All figures and tables are bordered by default.}
+% \begin{macrocode}
+\RequirePackage{float}
+\floatstyle{boxed}
+\restylefloat{table}
+\restylefloat{figure}
+% \end{macrocode}
+
+% Then, we make sure all figures and tables are centered by default, as recommended
+% \href{https://tex.stackexchange.com/questions/2651/}{here}:
+% \changes{v0.17.0}{2023/08/08}{All figures and tables are centered by default.}
+% \begin{macrocode}
+\makeatletter
+\g@addto@macro\@floatboxreset\centering
+\makeatother
+% \end{macrocode}
+
% Then, we set spacing between lines:
% \begin{macrocode}
\RequirePackage{setspace}
diff --git a/Master/texmf-dist/tex/latex/huawei/huawei.cls b/Master/texmf-dist/tex/latex/huawei/huawei.cls
index f6fff324f84..72c92ad3597 100644
--- a/Master/texmf-dist/tex/latex/huawei/huawei.cls
+++ b/Master/texmf-dist/tex/latex/huawei/huawei.cls
@@ -32,7 +32,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{huawei}
-[2023-05-20 0.16.0 Template for Huawei Documents]
+[2023-08-03 0.17.0 Template for Huawei Documents]
@@ -124,40 +124,64 @@
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
+
\RequirePackage{tabularx}
\RequirePackage{anyfontsize}
\RequirePackage{multicol}
\RequirePackage{ragged2e}
\RequirePackage{multicol}
-\RequirePackage[mmddyyyy,iso]{datetime}
- \newtimeformat{daytime}{\twodigit{\THEHOUR}:\twodigit{\THEMINUTE}}
-\RequirePackage[tt=false,type1=true]{libertine}
\RequirePackage{paralist}
\RequirePackage{makecell}
-\RequirePackage[para]{footmisc}
- \setlength{\footnotemargin}{2pt}
- \setlength{\footnotesep}{2pt}
\RequirePackage{graphicx}
\RequirePackage{array}
-\RequirePackage[hidelinks]{hyperref} % to enable \pageref* command
\RequirePackage[abspath]{currfile}
-\RequirePackage{enumitem}
- \setlist{nosep}
-\RequirePackage{microtype}
-\AddToHook{env/verbatim/begin}{\microtypesetup{protrusion=false}}
\RequirePackage{wrapfig}
\RequirePackage{lastpage}
\RequirePackage{tikz}
\RequirePackage{tabularx}
\RequirePackage{titling}
\RequirePackage{svg}
+
+\PassOptionsToPackage{tt=false,type1=true}{libertine}
+\RequirePackage{libertine}
+
+\RequirePackage{microtype}
+\AddToHook{env/verbatim/begin}{\microtypesetup{protrusion=false}}
+
+\PassOptionsToPackage{para}{footmisc}
+\RequirePackage{footmisc}
+\setlength{\footnotemargin}{2pt}
+\setlength{\footnotesep}{2pt}
+
+\RequirePackage{enumitem}
+\setlist{nosep}
+
\RequirePackage[absolute]{textpos}
- \TPGrid{16}{16}
+\TPGrid{16}{16}
+
+\PassOptionsToPackage{mmddyyyy,iso}{datetime}
+\RequirePackage{datetime}
+\newtimeformat{daytime}{\twodigit{\THEHOUR}:\twodigit{\THEMINUTE}}
+
+\PassOptionsToPackage{hidelinks}{hyperref}
+\RequirePackage{hyperref}
\RequirePackage[maxnames=1,minnames=1,natbib=true,
citestyle=numeric,bibstyle=numeric,
url=false,isbn=false,isbn=false]{biblatex}
+\PassOptionsToPackage{font={small,sf}}{caption}
+\RequirePackage{caption}
+
+\RequirePackage{float}
+\floatstyle{boxed}
+\restylefloat{table}
+\restylefloat{figure}
+
+\makeatletter
+\g@addto@macro\@floatboxreset\centering
+\makeatother
+
\RequirePackage{setspace}
\setstretch{1.08}