Graphics, Figures & Tables ⇒ How do I remove thick line and centre my text in the table?
-
- Posts: 4
- Joined: Sun Mar 28, 2021 11:31 pm
How do I remove thick line and centre my text in the table?
Also, how do I centre my text in 'grades' column (see attached file)?
- Attachments
-
- latex_table_issue.JPG (109.7 KiB) Viewed 2538 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
How do I remove thick line and centre my text in the table?

Remove the vertical line before the column type of the second
\multicolumn
command so that the thickness of the line is the same as that of the other lines.You can replace the column type
p
with m
of the array
package or use the tabularx
package and its column type suggested by me.Code: Select all
\documentclass{beamer}
\usepackage[english]{babel}
\usepackage{tabularx}% loads array
\usepackage{ragged2e}% provides \RaggedRight
\usepackage{showframe}
\begin{document}
{\renewcommand{\tabularxcolumn}[1]{>{\RaggedRight}m{#1}}
\begin{frame}{Course Work}
\centering
\footnotesize
\begin{tabularx}{\linewidth}{|X|c|X|c|}
\hline
\multicolumn{1}{|c|}{Monsoon 2019--20} & Grades
& \multicolumn{1}{c|}{Winter 2019--20} & Grades\\
\hline
Research Methodology and Statistics (MEC 591) & B
& Laser Processing of Materials (MED 553) & A+\\
\hline
\end{tabularx}
\end{frame}}
\end{document}
-
- Posts: 4
- Joined: Sun Mar 28, 2021 11:31 pm