TransWikia.com

How to create a table with fixed width height and column width for each row and column?

TeX - LaTeX Asked by AJ98 on January 12, 2021

What I'm trying to acheive

I have made this much progress so far

documentclass{report}
usepackage{tabularx}

begin{document}
begin{center}
vspace*{-2cm}
    Large
    SCOPE DOCUMENT REVISION HISTORY
    vspace{0.5cm}
    
    % begin{document}
    begin{tabularx}
    {textwidth}
    % {|c|c|c}
    {|p{1cm}@{rule[-3ex]{0pt}{11ex}}|*{7}{C|}}
    % |@{}p{4cm}
    % hlinexrowht[()]{0pt}
    hline
    % vspace{-1cm}
    % rule{-10pt}{No.}
    % [-5ex]
    % begin{center}
    % renewcommand{arraystretch}{0.5}
    % rule{0pt}{1cm} {No.} 
    No. & Comments & Action 
    % multicolumn{1}{|p{2cm}|}{makeheight{1cm}No.} & Comments& Action 
    % end{center}
    
    hline
    % vspace{1.75cm}
    % begin{center}
      &  &   
    % end{center}
    hline
    % vspace{1.75cm}
     &  &  
    hline
    % vspace{1.75cm}
     &  &  
    hline
    % vspace{1.75cm}
     &  &  
    hline
    % vspace{1.75cm}
     &  &  
    hline
    % vspace{1.75cm}
     &  &    
    hline
    % vspace{2cm}
    end{tabularx}
    % end{document}
end{center}
% begin{align}
vspace{0.3cm}
Large
hspace{0.56cm}Supervisor signature:*
% vspace{1cm
vskip 0.2in
end{document}

Can please someone tell me how I can turn it into the table I attached an image of? You would be doing me a huge favor, thanks a lot in advance.

One Answer

Probably the following results in an otuput closer to the expected one. The height of the rows can be adjusted by chaning the value inside of the []:

enter image description here

documentclass{article}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}

begin{document}

begin{center}
  vspace*{-2cm}
  Large
  SCOPE DOCUMENT REVISION HISTORY
  vspace{0.5cm}
    
  begin{tabularx}{textwidth}{|p{1cm}|*{2}{C|}}
    hline
    No. & Comments & Action 
    hline
      &  &   [11ex]
    hline
     &  &  [11ex]
    hline
     &  &  [11ex]
    hline
     &  &  [11ex]
    hline
     &  &  [11ex]
    hline
     &  &    [11ex]
    hline
  end{tabularx}
end{center}
vspace{0.3cm}
Large
noindent Supervisor signature:

end{document}

Correct answer by leandriis on January 12, 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