0

Can someone compile the following three tables and attach the outputs as a photo?

Table 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}

Table 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}

Table 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}

EDIT:

This is the version I'm using:

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7050) entering extended mode

The error outputted in a fresh document:

! 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: 

EDIT 2:

After installing tabularray package and all the latest updates on MikTex console, my document that was compiling before is not compiling anymore with the following error:

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}
                                                  
? 

EDIT 3:

Using Celdor's comments, I installed miktex from the link he sent, the tables compiled but they're not identical as I thought they'd be:

enter image description here

We see, the second is much "bulkier"? I want it like the one provided in Zarko's solution: How to draw a vertical line in a table? as it looks better in my opinion.

22
  • Please describe what problem you have with them.
    – mickep
    Commented Jun 9, 2022 at 14:15
  • @mickep I asked a similar question here: tex.stackexchange.com/questions/624752/…. The table will not compile for me for some reason..
    – Math
    Commented Jun 9, 2022 at 14:18
  • @Math show your log file, so it shows the version you have, and the error. As posted there is no question here. Commented Jun 9, 2022 at 14:24
  • @DavidCarlisle I am using TeXworks, I don't see a log file. I just had a look at my other documents, none of them have a log filed saved..
    – Math
    Commented Jun 9, 2022 at 14:26
  • 2
    The error message says tabularray is not installed. Did you try to install it with MiKTeX Package Manager?
    – Bernard
    Commented Jun 9, 2022 at 14:38

1 Answer 1

1

All tree tables compile in one page:

enter image description here

Your code with little changes:

\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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .