编制下表?

编制下表?

有人可以编制以下三个表格并将输出结果作为照片附加吗?

表格1:

\documentclass{article}
\usepackage{geometry}
\usepackage{tabularray} 
\UseTblrLibrary{booktabs}


\begin{document}
    \noindent\begin{tblr}{colspec = {| Q[c,$] X[l] |
                                       Q[c,$] X[l] |},
                           row{1} = {mode=text},
                         row{2-Y} = {belowsep+=2pt}
                         } 
    \toprule
Parameter & Description & Parameter & Description\\
    \midrule
b     & Influx rate of the popu\-la\-tion 
            & \sigma  & Progression rate from the asymptomatic compartment to the symptomatic compartment  \\
\mu & Natural death rate 
            & \gamma_A       & Non-treatment recovery rate of asymptomatic individuals \\
\beta_A & Transmission rate of the asymptomatic compartment 
            & \gamma_I       & Non-treatment recovery rate of symptomatic individuals      \\
\beta_I & Transmission rate of the symptomatic compartment 
            & \eta & Treatment rate of symptomatic individuals      \\
\nu       & Vaccination rate of newborns
            & \xi     & Immunity loss rate     \\
\rho       & Vaccination rate of susceptibles 
            & \alpha       & Disease induced death rate                    \\

    \bottomrule
\end{tblr}
\end{document}

表 2:

\documentclass{article}
\usepackage{geometry}
\usepackage{tabularray} 
\UseTblrLibrary{booktabs}


\begin{document}
    \noindent\begin{tblr}{colspec = {| Q[c,$] X[l] |
                                       Q[c,$] X[l] |},
                           row{1} = {mode=text},
                         row{2-Y} = {belowsep+=2pt}
                         } 
        \toprule
    Parameter & Sensitivity index & Parameter & Sensitivity index\\
        \midrule
    b     & +1.000 
                & \sigma  & -0.447  \\
    \mu & -0.453 
                & \gamma_A       & -0.417    \\
    \beta_A & +0.891 
                & \gamma_I       & -0.013      \\
    \beta_I & +0.109 
                & \eta & -0.093      \\
    \nu       & -2.667 
                & \xi & +0.324      \\
    \rho       & -0.901 
                & \alpha       & -0.001                    \\
    
        \bottomrule
    \end{tblr}
\end{document}

表3:

\documentclass{article}
    \usepackage{geometry}
    \usepackage{tabularray} 
    \UseTblrLibrary{booktabs}
    
    
    \begin{document}
        \noindent\begin{tblr}{colspec = {| Q[c,$] X[l] |
                                           Q[c,$] X[l] |},
                               row{1} = {mode=text},
                             row{2-Y} = {belowsep+=2pt}
                             } 
            \toprule
        Parameter & Sensitivity index & Parameter & Sensitivity index\\
            \midrule
        b     & +1.000 
                    & \sigma  & -0.215  \\
        \mu & -0.223 
                    & \gamma_A       & -0.052    \\
        \beta_A & +0.277 
                    & \gamma_I       & -0.594      \\
        \beta_I & +0.723 
                    & \eta     & -0.116     \\
        \nu       & -0.222 
                    & \xi     & +0.102      \\
        \rho       & -0.901 
                    & \alpha       & -0.001                    \\
        
            \bottomrule
        \end{tblr}
    \end{document}

编辑:

这是我正在使用的版本:

这是 pdfTeX,版本 3.14159265-2.6-1.40.20(MiKTeX 2.9.7050)进入扩展模式

新文档中输出的错误:

! LaTeX Error: File `tabularray.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 

编辑2:

在 MikTex 控制台上安装tabularray软件包和所有最新更新后,我之前编译的文档是不是编译时出现以下错误:

Package tabularray Warning: Your LaTeX release is too old.
(tabularray)                Please update to 2020-10-01 first.

! Undefined control sequence.
\NewDashStyle code ..._tmpa_seq {4}}\tl_if_eq:NnT 
                                                  \l__tblr_a_tl {on}{\tl_if_...
l.1114 ...ashStyle {dashed} {on ~ 2pt ~ off ~ 2pt}
                                                  
? 

编辑3:

使用 Celdor 的评论,我从他发送的链接安装了 miktex,表格已编译,但它们并不像我想象的那样完全相同:

在此处输入图片描述

我们看到,第二个更“笨重”?我想要像 Zarko 的解决方案中提供的那样:如何在表格中画垂直线?因为我认为它看起来更好。

答案1

所有树形表都编译在一页中:

在此处输入图片描述

您的代码几乎没有变化:

\documentclass{article}
\usepackage[a4paper,margin=1cm]{geometry} %<-- modified
\usepackage{tabularray} 
\UseTblrLibrary{booktabs}


\begin{document}
\noindent\begin{tblr}{colspec = {@{} Q[c,$] X[l] |
                                    Q[c,$] X[l] @{}},
                       row{1} = {mode=text},
                     row{2-Y} = {belowsep+=2pt}
                     }  
    \toprule
Parameter & Description & Parameter & Description\\
    \midrule
b     & Influx rate of the popu\-la\-tion 
            & \sigma  & Progression rate from the asymptomatic compartment to the symptomatic compartment  \\
\mu & Natural death rate 
            & \gamma_A       & Non-treatment recovery rate of asymptomatic individuals \\
\beta_A & Transmission rate of the asymptomatic compartment 
            & \gamma_I       & Non-treatment recovery rate of symptomatic individuals      \\
\beta_I & Transmission rate of the symptomatic compartment 
            & \eta & Treatment rate of symptomatic individuals      \\
\nu       & Vaccination rate of newborns
            & \xi     & Immunity loss rate     \\
\rho       & Vaccination rate of susceptibles 
            & \alpha       & Disease induced death rate                    \\

    \bottomrule
\end{tblr}
\vspace{.5cm} %<-- added

  \noindent\begin{tblr}{colspec = {| Q[c,$] X[l] |
            Q[c,$] X[l] |},
        row{1} = {mode=text},
        row{2-Y} = {belowsep+=2pt}
    } 
    \toprule
    Parameter & Sensitivity index & Parameter & Sensitivity index\\
    \midrule
    b     & +1.000 
    & \sigma  & -0.447  \\
    \mu & -0.453 
    & \gamma_A       & -0.417    \\
    \beta_A & +0.891 
    & \gamma_I       & -0.013      \\
    \beta_I & +0.109 
    & \eta & -0.093      \\
    \nu       & -2.667 
    & \xi & +0.324      \\
    \rho       & -0.901 
    & \alpha       & -0.001                    \\
    
    \bottomrule
\end{tblr}

\vspace{.5cm}% <-- added

 \noindent\begin{tblr}{colspec = {| Q[c,$] X[l] |
            Q[c,$] X[l] |},
        row{1} = {mode=text},
        row{2-Y} = {belowsep+=2pt}
    } 
    \toprule
    Parameter & Sensitivity index & Parameter & Sensitivity index\\
    \midrule
    b     & +1.000 
    & \sigma  & -0.215  \\
    \mu & -0.223 
    & \gamma_A       & -0.052    \\
    \beta_A & +0.277 
    & \gamma_I       & -0.594      \\
    \beta_I & +0.723 
    & \eta     & -0.116     \\
    \nu       & -0.222 
    & \xi     & +0.102      \\
    \rho       & -0.901 
    & \alpha       & -0.001                    \\
    
    \bottomrule
\end{tblr}
\end{document}

相关内容