TransWikia.com

Table horizontal lines are incomplete

TeX - LaTeX Asked by miguelpiquet on October 18, 2020

I am a bit lost in the result that this table is generating, seeming that the horizontal lines seem to render incompletely. Any ideas what could be causing this? Thank you.

enter image description here

{renewcommand{arraystretch}{1.5}%
begin{table}[]
centering
scriptsize
begin{tabularx}{linewidth}{|>{centeringarraybackslash}m{.6cm}|>{centeringarraybackslash}m{1.4cm}|>{centeringarraybackslash}m{1.8cm}|>{centeringarraybackslash}m{1.3cm}|c|c|c|c|c|c|>{centeringarraybackslash}m{.6cm}|c|}
hline
 & multicolumn{3}{c|}{textbf{INPUTS}} & multicolumn{8}{c|}{textbf{OUTPUTS}} hline
 & V1 & V2 & V3 & V1 & I1 & V2 & I2 & V3 & I3 & V4 & I4  hline
PS 1 & 200V AC, 400 Hz & 115V AC, 400 Hz & - & +5V & 1A & +15V & 1.5A & -15V & 1.5A & - & -  hline
PS 2 & - & 115V AC,    50-400 Hz (3 Phase) & 200-300V DC & - & - & - & - & - & - & +96V & 0.2A  hline
PS 3 & 220V AC, 50-400 Hz (1 Phase) & 115V AC,    50-400 Hz (1,2 & 3 Phase) & 200-300V DC & +5V & 50A & - & - & - & - & - & -  hline
PS 4 & - & - & 28V DC $pm$ 12V & - & - & +15V & 3.5A & -15V & 3.5A & 26V AC, 400Hz & 3A  hline
PS 5 & 220V AC, 50-400 Hz (1 Phase) & 115V AC,    50-400 Hz (1,2 & 3 Phase) & 200-300V DC & - & - & +15V & 3.5A & -15V & 3.5A & - & -  hline
end{tabularx}
end{table}}

One Answer

enter image description here

(red lines indicate text borders)

  • you not provide any information about page layout in your document, so we can only guessing
  • In above image of table is assumed, that page layout is defined by default values of geometry package
  • Using tabularx table environment require that at least one column had to be X or types derived from it:
documentclass{article}
usepackage{geometry}
usepackage{tabularx}
newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
newcolumntype{C}{>{centeringarraybackslash}X}
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%

begin{document}
    begin{table}
centering
footnotesize
renewcommand{arraystretch}{1.5}
setlengthtabcolsep{3pt}
begin{tabularx}{linewidth}{|M{7mm}|
                              M{13mm}|
                              M{25mm}|
                              M{13mm}|
                              C|C|C|C|C|C|M{12mm}|C|}
hline
 & multicolumn{3}{c|}{textbf{INPUTS}} & multicolumn{8}{c|}{textbf{OUTPUTS}} hline
 & V1 & V2 & V3 & V1 & I1 & V2 & I2 & V3 & I3 & V4 & I4  hline
PS 1 & 200V AC, 400 Hz & 115V AC, 400 Hz & - & +5V & 1A & +15V & 1.5A & $-15$V & 1.5A & - & -  hline
PS 2 & - & 115V AC,    50-400 Hz (3 Phase) & 200-300V DC & - & - & - & - & - & - & +96V & 0.2A  hline
PS 3 & 220V AC, 50-400 Hz (1 Phase) & 115V AC,    50-400 Hz (1,2 & 3 Phase) & 200-300V DC & +5V & 50A & - & - & - & - & - & -  hline
PS 4 & - & - & 28V DC $pm$ 12V & - & - & +15V & 3.5A & $-15$V & 3.5A & 26V AC, 400Hz & 3A  hline
PS 5 & 220V AC, 50-400 Hz (1 Phase) & 115V AC,    50-400 Hz (1,2 & 3 Phase) & 200-300V DC & - & - & +15V & 3.5A & $-15$V & 3.5A & - & -  hline
end{tabularx}
    end{table}
end{document}

Answered by Zarko on October 18, 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