TransWikia.com

How to create that table?

TeX - LaTeX Asked by Brm-Covißio on July 23, 2020

I used a code, I have a table which created by using tabularx, but the problem is that, I want to create that following table by using tabularx and using textwidth, where the value of the first column A is 0.1/5, the column TexttExText is 0.2/5 and TextTextText is 0.2/5.

I wanna need an information, I want that the column accept the auto break line because I will remplace T
by a long text.

The picture of the table enter image description here

I tried to create that following code, please help me :

documentclass[twocolumn]{svjour3}  
usepackage{graphicx}
usepackage{makecell, multirow, tabularx}
newcolumntype{L}{>{raggedrightarraybackslash}X}  % new
usepackage{enumitem}                               % new
newlist{tabitem}{itemize}{1}   % <-- defined new list
setlist[tabitem]{nosep,        % <-- new list setup
                  leftmargin=*,
                  label=$bullet$,
                  before=begin{minipage}[t]{linewidth}, 
                  after=end{minipage}                   
                  }


begin{table} [htp]
setcellgapes{2pt}
centering
makegapedcells
setlengthtabcolsep{1pt}
  begin{table} [htp]
    setcellgapes{4pt}
    centering
    makegapedcells
    setlengthtabcolsep{2pt}
begin{tabularx}{linewidth}
{| L L| 
p{0.18textwidth} |
p{0.18textwidth} | 
}  
  hline
  
  multicolumn{2}{c}{ multirow{2}{=} {centering A}}  & 
   multirow{2}{=} {centering TextTextText} &  
   multirow{2}{=} {centering TextTextText}           
            
               
    hline
    
    
      hline
  
  multicolumn{2}{c}{ {centering MADM}}  & 
   multirow{2}{=} {centering T} &  
   multirow{2}{=} {centering T}           
            
               
    hline
    
    

    
  end{tabularx}
  end{table}

One Answer

Is it what you want?

documentclass[twocolumn]{article}%{svjour3}
usepackage{geometry}
usepackage{graphicx}
usepackage{makecell, multirow, tabularx}
newcolumntype{L}{>{raggedrightarraybackslash}X} % new

usepackage{lipsum}

begin{document}

lipsum[2]

 begin{table} [htp]
    setcellgapes{4pt}
    centering
    makegapedcells
    setlengthtabcolsep{2pt}
begin{tabularx}{columnwidth}{|>{hsize =0.66hsize}L| >{hsize =0.66hsize}L|
 >{hsize =1.34hsize}L|>{hsize =1.34hsize}L|}
  hline
  multicolumn{2}{|c|}{ multirowcell{1}{centering A}} &
   multirow{2}{=} {centering TexttEXTtext} &
   multirow{2}{=} {centering TextTextText} 
    hline
 multicolumn{2}{|c|}{ {centering MADM}} &
 T & T 
 hline
 AAAA & AAA & T & T 
 hline
  end{tabularx}
  end{table}

  end{document} 

enter image description here

Answered by Bernard on July 23, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP