From 5f1cfa686748068fedb95d8dafda3dc7f999c948 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 27 May 2021 03:01:40 +0000 Subject: CTAN sync 202105270301 --- macros/latex/contrib/huawei/DEPENDS.txt | 32 ++++++++++++++++++++++++++++++++ macros/latex/contrib/huawei/huawei.cls | 13 ++++++++----- macros/latex/contrib/huawei/huawei.pdf | Bin 363871 -> 365108 bytes macros/latex/contrib/huawei/huawei.tex | 25 +++++++++++++++++++++++-- 4 files changed, 63 insertions(+), 7 deletions(-) create mode 100644 macros/latex/contrib/huawei/DEPENDS.txt (limited to 'macros/latex/contrib/huawei') diff --git a/macros/latex/contrib/huawei/DEPENDS.txt b/macros/latex/contrib/huawei/DEPENDS.txt new file mode 100644 index 0000000000..77c644d06f --- /dev/null +++ b/macros/latex/contrib/huawei/DEPENDS.txt @@ -0,0 +1,32 @@ +hard geometry +hard fontenc +hard inputenc +hard CJKutf8 +hard tabularx +hard multicol +hard datetime +hard libertine +hard paralist +hard makecell +hard footmisc +hard minted +hard graphicx +hard array +hard currfile +hard enumitem +hard microtype +hard wrapfig +hard lastpage +hard xfp +hard setspace +hard biblatex +hard xcolor +hard tikz +hard tabularx +hard titling +hard svg +hard ulem +hard hyperref +hard textpos +hard tcolorbox +hard fancyhdr diff --git a/macros/latex/contrib/huawei/huawei.cls b/macros/latex/contrib/huawei/huawei.cls index ef8f26da25..ab4e253151 100644 --- a/macros/latex/contrib/huawei/huawei.cls +++ b/macros/latex/contrib/huawei/huawei.cls @@ -21,7 +21,7 @@ % SOFTWARE. \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{huawei}[2021/05/24 0.3.0 Template for Huawei documents] +\ProvidesClass{huawei}[2021/05/26 0.5.1 Template for Huawei documents] \newif\ifnosecurity \DeclareOption{nosecurity}{\nosecuritytrue} @@ -52,14 +52,15 @@ \RequirePackage{CJKutf8} \RequirePackage{tabularx} \RequirePackage{multicol} -\RequirePackage[mmddyyyy,iso,hhmmss]{datetime} +\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{minted} +\RequirePackage[draft=true]{minted} \setminted{breaklines} \usemintedstyle{bw} \renewcommand{\theFancyVerbLine}{\textcolor{gray}{\tiny\oldstylenums{\ttfamily\arabic{FancyVerbLine}}}} @@ -98,7 +99,8 @@ \endgroup }% \endgroup\makeatother -\RequirePackage[absolute]{textpos}\TPGrid{16}{16} +\RequirePackage[absolute]{textpos} + \TPGrid{16}{16} % Our custom commands to redefine: \renewcommand\title[1]{\renewcommand\thetitle{#1}} @@ -208,7 +210,7 @@ \fi% \fi% \ifnodate\else% - \today{} \currenttime + \today{} \settimeformat{daytime}\currenttime{}% \fi% }% \end{textblock}% @@ -271,6 +273,7 @@ \def\param{#1}% \ifx\param\empty\else \includegraphics[height=2in]{#1} + \newline \fi \vspace*{0.5in} \maketitle diff --git a/macros/latex/contrib/huawei/huawei.pdf b/macros/latex/contrib/huawei/huawei.pdf index a5a50cb96c..ab53e4be7c 100644 Binary files a/macros/latex/contrib/huawei/huawei.pdf and b/macros/latex/contrib/huawei/huawei.pdf differ diff --git a/macros/latex/contrib/huawei/huawei.tex b/macros/latex/contrib/huawei/huawei.tex index dc9904a0d4..3422c6ce40 100644 --- a/macros/latex/contrib/huawei/huawei.tex +++ b/macros/latex/contrib/huawei/huawei.tex @@ -27,9 +27,9 @@ \begin{document} \maketitle -\ff{Version: 0.3.0} +\ff{Version: 0.5.1} \newline -\ff{Date: 2021/05/24} +\ff{Date: 2021/05/26} \section{Overview} @@ -248,4 +248,25 @@ we recommend you to use ``crumbs'': A more complete example is in the \ff{samples/huawei-charter.tex}. +\subsection{Code Blocks} + +When you need to show some source code, we recommend to use +\ff{minted} environment, for example: + +\begin{minted}{text} +\begin{minted}{text} +void foo() { + return "Hello, world!"; +} +\ end{minted} +\end{minted} + +This is what you will see: + +\begin{minted}{text} +void foo() { + return "Hello, world!"; +} +\end{minted} + \end{document} \ No newline at end of file -- cgit v1.2.3