TransWikia.com

How to fit large width Table data into double column format?

TeX - LaTeX Asked by Nafees Ahmed on March 8, 2021

I am using the Conferance Latex Format, you may see the detail formating code on this given link.
I want to insert a table in the double-column format. Here is the content I want to format in the latex
enter image description here

I made some basic code for it but the output visualization is quite small. Here is the output of Latex code
enter image description here

Please see Table1.

This is the code for the table:

begin{table}[htb]
caption{hello2 testing}
label{1234}
resizebox{columnwidth}{!}{%

begin{tabular}{c*{6}{>{$}c<{$}}}
hline
    text{Name}        & text{Reference}       & text{S/A}       & text{Advantages}  & text{Disadvantages}   & API  
    hline
 Abcde (abcc) & 43,50 & S & There is value in the demanding of high data & It do not thing any thing you can make better & Abbccc & Python, C++ 
 69.8pm 9.5 & 93.6pm 3.6 & 86.9pm 8.4 & 91.5pm 4.5 & 94.9pm 5.4 
97.0pm 2.9 & 99.2pm 1.8 & 99.6pm 1.4 & 98.3pm 2.9 & 99.6pm 1.4 
97.8pm 3.1 & 95.3pm 3.1 & 96.2pm 2.5 & 92.4pm 3.3 & 97.5pm 3.0 
77.5pm 7.2 & 90.2pm 4.1 & 90.2pm 5.7 & 88.1pm 4.8 & 91.6pm 4.9 
 88.0      & 95.1      & 94.1      & 93.5      & 96.5 
 hline
end{tabular}
}
end{table}

One Answer

Off-topic:

You need to be aware that the members of this site are volunteers. They answer on questions in their spare time. In order to be able to answer as many questions as possible, it is normal that that they expect that the questions are clear and comprehensible, that they do not need to search the web for data known to asker etc., that the questions contain MWE (Minimal Working Example, a small but a complete compilable document) that reproduces the problem of interest.

So be so kind, and provide in your question all what you asked in comment. If you not do so, we can only guess about some information, which are essential ion preparation of answer.- For example, the following example, is based in guessing:

On-topic:

IN MWE below is assumed, that your document has two columns.

  • In such document for table, which span both columns you should use table* environment.
  • Some table cells has very long text. For it is sensible to use column type which breaks text into multiple lines. Example of such column tapes are p{<column width>}, or X and its derivatives from tabularx table environment (as is selected in MWE below).
  • Numbers in tale can be simply and concise to write by employing siunitx package.
documentclass[twocolumn]{article}
usepackage{booktabs, tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
newcolumntype{L}{>{raggedrightarraybackslash}X}
NewExpandableDocumentCommandmcC{O{1}m}
    {multicolumn{#1}{C}{#2}}
NewExpandableDocumentCommandmcL{O{1}m}
    {multicolumn{#1}{L}{#2}}
usepackage{siunitx}
usepackage{stfloats} % for positioning of figure* on the same page

usepackage{lipsum}

begin{document}
lipsum[1]
begin{table*}[b]
caption{hello2 testing}
label{1234}
    small
    setlengthtabcolsep{4pt}
begin{tabularx}{linewidth}{l *{5}{S[table-format=2.1(2),
                                        separate-uncertainty]}
                             }
    toprule
Name   
    &   mcC{Reference}  
                &   mcC{S/A}    
                        &   mcC{Advantages}
                                    &   mcC{Disadvantages}
                                                &   mcC{API}               
    midrule
Abcde (abcc) 
    &   43,50   &   mcL{There is value in the demanding of high data}
                            &   mcL{It do not thing any thing you can make better}
                                        &   mcC{Abbccc}
                                                    &   mcC{Python, C++}   
    addlinespace
B   & 69.8(95)  & 93.6(36)  & 86.9(84)  & 91.5(45)   & 94.9(54)  
C   & 97.0(29)  & 99.2(18)  & 99.6(14)  & 98.3(29)  & 99.6(14)  
D   & 97.8(31)  & 95.3(31)  & 96.2(25)  & 92.4(33)  & 97.5(30)  
E   & 77.5(72)  & 90.2(41)  & 90.2(57)  & 88.1(48)  & 91.6(49)  
F   & {88.0}    & {95.1}    & {94.1}    & {93.5}    & {96.5}    
    bottomrule
end{tabularx}
end{table*}
lipsum[2-5]
end{document}

It gives:

enter image description here

Answered by Zarko on March 8, 2021

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