texlive[67802] Master/texmf-dist: huawei (3aug23)

commits+karl at tug.org commits+karl at tug.org
Thu Aug 3 21:57:22 CEST 2023


Revision: 67802
          http://tug.org/svn/texlive?view=revision&revision=67802
Author:   karl
Date:     2023-08-03 21:57:22 +0200 (Thu, 03 Aug 2023)
Log Message:
-----------
huawei (3aug23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt
    trunk/Master/texmf-dist/doc/latex/huawei/huawei.pdf
    trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx
    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	2023-08-03 02:50:52 UTC (rev 67801)
+++ trunk/Master/texmf-dist/doc/latex/huawei/DEPENDS.txt	2023-08-03 19:57:22 UTC (rev 67802)
@@ -1,5 +1,6 @@
 hard anyfontsize
 hard biblatex
+hard caption
 hard catchfile
 hard changepage
 hard currfile
@@ -16,18 +17,32 @@
 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

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

Modified: trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx	2023-08-03 02:50:52 UTC (rev 67801)
+++ trunk/Master/texmf-dist/source/latex/huawei/huawei.dtx	2023-08-03 19:57:22 UTC (rev 67802)
@@ -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,31 +402,24 @@
 \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}
@@ -433,10 +426,53 @@
 \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|:
 % \changes{v0.16.0}{2023/05/20}{The \texttt{doi} tag enabled for \texttt{biblatex}.}
 %    \begin{macrocode}
@@ -445,6 +481,31 @@
   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 at addto@macro\@floatboxreset\centering
+\makeatother
+%    \end{macrocode}
+
 % Then, we set spacing between lines:
 %    \begin{macrocode}
 \RequirePackage{setspace}

Modified: trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2023-08-03 02:50:52 UTC (rev 67801)
+++ trunk/Master/texmf-dist/tex/latex/huawei/huawei.cls	2023-08-03 19:57:22 UTC (rev 67802)
@@ -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,27 +124,17 @@
 
 \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}
@@ -151,13 +141,47 @@
 \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 at addto@macro\@floatboxreset\centering
+\makeatother
+
 \RequirePackage{setspace}
 \setstretch{1.08}
 



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