\documentclass[fontset=fandol]{ctexart} \pagestyle{empty}
\usepackage{zhlipsum}
\usepackage{geometry}
\geometry{left=2.5cm,right=2.5cm,top=3.5cm,bottom=2.5cm}
\ctexset{
    section/format=\Large\bfseries\raggedright\color{red!60!black}
}

\usepackage{xcolor}

\newenvironment{funclist}{\trivlist
  \parindent=0pt
\item[]
  \def\item{\medskip\par\leftskip=0pt}
  \def\go{\par\leftskip=4em}}
{\endtrivlist}

\makeatletter
\newenvironment{typelist}{\itemize
  \let\old@item\@item
  \def\@item[##1]{\expandafter\old@item[\ttfamily##1]}}
{\enditemize}
\makeatother

\newcommand{\xitem}[2]{#1 & \\ & #2\\}
\usepackage{enumitem}

\usepackage{tabularray}
\usepackage{minted}
\usepackage{codehigh}
\usepackage{fancyvrb}
\begin{document}
\section{typelist}
\begin{typelist}
\item[void] 空（\verb|void|）类型仅用于无参数或无返回值的函数。
\item[bool] 布尔类型只能取值
\end{typelist}

\section{funclist}
\begin{funclist}
\item Shift \go
  仅随嵌入它的图平移；
\item Rotate \go
  仅随嵌入它的图平移和旋转（默认值）；
\item Rotate(pair z) \go
  按（随图变换过的）向量 z 旋转；
\end{funclist}

\section{description}
\begin{description}[labelsep*=2em,font=\ttfamily,labelwidth=6em,align=parleft]
\item [Shift] 仅随嵌入它的图平移；
\item [Rotate]  仅随嵌入它的图平移和旋转（默认值）；
\item [Rotate(pair z)] 按（随图变换过的）向量 z 旋转；
\item [Rotate(pair\;z)] 按（随图变换过的）向量 z 旋转；
\end{description}

\section{description-nextline}
\begin{description}[style=nextline,font=\ttfamily,labelwidth=!,align=parleft]
\item [Shift] 仅随嵌入它的图平移；
\item [Shift] 仅随嵌入它的图平移；仅随嵌入它的图平移；
\item [Rotate(pair z)] 按（随图变换过的）向量 z 旋转；
\item [Rotate(pair\;z)] 按（随图变换过的）向量 z 旋转；
\end{description}

\section{tabularray-mintinline}
\begin{table}[H]
\raggedright
\begin{tblr}{
    colspec={Q[l,4em]Q[l]},
%    column{1}={font=\ttfamily},
    cell{odd}{1}={r=1,c=2}{
        font=\ttfamily,
        halign=l,
        preto=\mintinline{asy}|,
        appto=|
    }
}
\mintinline{asy}|Shift| & \\
& 仅随嵌入它的图平移；\\
Shift & \\
& 仅随嵌入它的图平移；仅随嵌入它的图平移；\\
Rotate(pair z) & \\
 & 按（随图变换过的）向量 z 旋转；\\
\fakeverb{Shift} & \\
& 仅随嵌入它的图平移；\\
Shift & \\
& 仅随嵌入它的图平移；仅随嵌入它的图平移；\\
Rotate(pair z) & \\
& 按（随图变换过的）向量 z 旋转；\\
\& & \\
& 按（随图变换过的）向量 z 旋转；\\
\end{tblr}
\end{table}

\section{tabularray-fakeverb}
\begin{table}[H]
\raggedright
\begin{tblr}{
    colspec={Q[l,4em]Q[l]},
%    column{1}={font=\ttfamily},
    cell{odd}{1}={r=1,c=2}{
        font=\ttfamily,
        halign=l,
        cmd=\fakeverb
    }
}
Shift & \\
& 仅随嵌入它的图平移；\\
Shift & \\
& 仅随嵌入它的图平移；仅随嵌入它的图平移；\\
Rotate(pair z) & \\
 & 按（随图变换过的）向量 z 旋转；\\
\fakeverb{Shift} & \\
& 仅随嵌入它的图平移；\\
Shift & \\
& 仅随嵌入它的图平移；仅随嵌入它的图平移；\\
Rotate(pair z) & \\
& 按（随图变换过的）向量 z 旋转；\\
\& & \\
& 按（随图变换过的）向量 z 旋转；\\
\end{tblr}
\end{table}
\end{document}
