第一列未显示

第一列未显示

在此处输入图片描述

\documentclass[a4paper,12pt]{article}
\usepackage{tabularx,ragged2e,siunitx}
\newcolumntype{L}{>{\RaggedRight}X}  % flush-left, not justified
\newcommand\mC[2]{\multicolumn{1}{L}{#1}}
\sisetup{group-four-digits=true} % show thousands separator for 4-digits numbers

\begin{document}

\begin{table}
\setlength\tabcolsep{3.5pt}    % default: 6pt
\setlength\extrarowheight{2pt} % for a less-cramped look
\caption{Funding round}
\label{tab:addlabel}
\begin{tabularx}{\textwidth}{@{} 
    S[table-format=4.2] c l L *{2}{S[table-format=5.2]} @{}}
    \hline
    
     {\bfseries Name of the Shareholder} & 
    \bfseries No. of Equity Shares & 
    \mC{\bfseries Percentage of the pre-Offer Equity Share Capital on a fully diluted basis (\%) } \\
    Percentage of the pre-Offer Equity Share Capital on a fully diluted basis (\%) \\
    \hline
    Go Digit Infoworks Services Private Limited & 729565220 & 83.65 \\
    A91 Emerging Fund I LLP & 29282949 & 3.36 \\
    TVS Shriram Growth Fund 3 & 31066389 & 3.56 \\
    Faering Capital India Evolving Fund II & 18638596 & 2.14 \\
    Faering Capital India Evolving Fund III & 10644353 & 1.22 \\
    Wellington Hadley  Harbor  AIV Master  Investors (Cayman) III, Ltd. & 13024841 & 1.49 \\
    SCI Growth Investments III & 9054878 & 1.04 \\
    Total & 841277226 & 96.46 \\
    \hline
    *Based on the beneficiary position statement dated August 12, 2022.  &       &  \\
    \end{tabularx}%
  \label{tab:addlabel}%
\end{table}%
\end{document}

答案1

您发布的屏幕截图似乎与您提供的表格代码毫无关系。

我认为,除了允许在第 1 列的所有单元格和第 3 列的标题中换行之外,还应该在第 2 列的标题中安排换行。我还建议您不要粗体标题,因为它很让人分心。那么,可能是类似下面的内容:

在此处输入图片描述

\documentclass{article}  % or some other suitable document class

\usepackage{tabularx,siunitx}
\newcolumntype{L}{>{\raggedright\arraybackslash}X} % flush-left, not justified
\newcolumntype{C}{>{\centering\arraybackslash}X} % centered
\newcommand\mC[1]{\multicolumn{1}{@{} C @{}}{#1}} % handy shortcut macro
\newlength\mylen
\settowidth\mylen{\textbf{No.\ of Equity}} % determine intended width of 2nd column

\begin{document}
\begin{table}
\setlength\extrarowheight{2pt} % for a less-cramped look
\caption{Funding round\strut}
\label{tab:addlabel}
%% define a table with three columns:
\begin{tabularx}{\textwidth}{@{} L p{\mylen} S[table-format=2.2] @{}}
\hline
\bfseries Shareholder & 
\bfseries No.\ of Equity Shares & 
\mC{\bfseries Percentage of pre-offer equity share capital, on fully diluted basis, in \%} \\
%%\mC{Percentage of the pre-Offer Equity Share Capital on a fully diluted basis (\%)} \\
\hline
    Go Digit Infoworks Services Private Ltd. & 729565220 & 83.65 \\
    A91 Emerging Fund I LLP                  & 29282949  & 3.36  \\
    TVS Shriram Growth Fund~3                & 31066389  & 3.56  \\
    Faering Capital India Evolving Fund II   & 18638596  & 2.14  \\
    Faering Capital India Evolving Fund III  & 10644353  & 1.22  \\
    Wellington Hadley Harbor AIV Master Investors (Cayman) III & 13024841 & 1.49 \\
    SCI Growth Investments III               & 9054878   & 1.04  \\
    Total                                    & 841277226 & 96.46 \\
    \hline
    \multicolumn{3}{@{}l@{}}{\small *Based on beneficiary position statement dated August 12, 2022.}  \\
\end{tabularx}
\end{table}
\end{document}

答案2

作为问题中图片中表格的起点。为此我将使用tabularray包:

\documentclass[a4paper,12pt]{article}
\usepackage{ragged2e}
\usepackage{tabularray}
\UseTblrLibrary{booktabs, siunitx}

\sisetup{group-four-digits=true} % show thousands separator for 4-digits numbers

\begin{document}
    \begin{table}
    \small
\caption{Funding round}
\label{tab:addlabel}
\begin{tblr}{colsep=3pt,
             colspec = {@{} S[table-format=4.2] c l 
                            X[1.9, cmd=\RaggedRight] 
                            X[1,c,si={table-format=5.2}]
                            X[1.1,c,si={table-format=5.2}]
                            @{}},
             row{1}  = {font=\footnotesize\bfseries},
             row{1-2}= {guard}
             }
    \toprule
Amount
    & Round
        & Stage
            & Investor
                & Pre Money Validation
                    & Post Money Validation     \\
(INR Cr)
    &   &   &   & (INR Cr)    
                    &   (INR Cr)    \\ 
    \midrule
417 & 8 & Growth-PE
            & IIFL VC, Sequoia Capital India
                &   & 30 496        \\
1001.82
    & 7 & Late
            & Wellington Management, Fearing Capital, TVS Capital, Others
                & 29 971.97
                    & 26 072.97        \\
    \bottomrule
\end{tblr}
    \end{table}
\end{document}

相关内容