I have a need to create a table, I have shown a MWE, its producing the table with the text I want. I have two question relating to the attached image.
- How to change the height of cells.
- How to control the line so that it does not span across the table. my second column is 10cm and I want the line to travel only 2 cm
Sample code:
\documentclass[fleqn,12pt,a4paper]{article}
\usepackage{tabularx}
\usepackage{multicol}
\begin{document}
\begin{tabular}{p{2cm}|p{10cm}}
Heading & relavent text \\
\hline
Alphabets & A B C D E F G .. .... .... ... Z \\
\hline
Numbers & 1 2 3 .. .... .... .... 10 etc
\end{tabular}
\end{document}
booktabs
package, turn Heading, Alphabets, and Numbers into bold face text, get rid of the vertical bars, and use\midrule
instead of\hline
.\midrule
goes from one end to other. Nothing changed I could not produce anywhere close to the attached image. Also is there anyway to keep the vertical line\cmidrule
, which is provided bybooktabs
, should let you create partial rules. It's described in thebooktabs
manual.tabular
).