diff options
author | Norbert Preining <norbert@preining.info> | 2021-05-27 03:01:40 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-05-27 03:01:40 +0000 |
commit | 5f1cfa686748068fedb95d8dafda3dc7f999c948 (patch) | |
tree | 874fa8430be12fe4633924f3b707428170316a46 /macros/latex/contrib/huawei | |
parent | 8982c52e00ffb3fb5a913fc60913ebd9070f091a (diff) |
CTAN sync 202105270301
Diffstat (limited to 'macros/latex/contrib/huawei')
-rw-r--r-- | macros/latex/contrib/huawei/DEPENDS.txt | 32 | ||||
-rw-r--r-- | macros/latex/contrib/huawei/huawei.cls | 13 | ||||
-rw-r--r-- | macros/latex/contrib/huawei/huawei.pdf | bin | 363871 -> 365108 bytes | |||
-rw-r--r-- | macros/latex/contrib/huawei/huawei.tex | 25 |
4 files changed, 63 insertions, 7 deletions
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 Binary files differindex a5a50cb96c..ab53e4be7c 100644 --- a/macros/latex/contrib/huawei/huawei.pdf +++ b/macros/latex/contrib/huawei/huawei.pdf 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 |