In this image, since there are no characters like g,y
in the first cell, there seems to be a misalignment between the round brackets and the text CBSE
. Is there any way to automatically center text like the following image? I edited the following in GIMP and moved the text CBSE
slightly down, to align it vertically. Is there any way to do the same in LaTeX?
Code snippet from my class file
\begin{tabular}{|M{0.295\textwidth}|c|c|c|}
\hline
Program & Institute & Percent/CGPA & Year of Completion \\
\hline
#1 & #2 & #3 & #4
\hline
\end{tabular}
#1, #2, #3, #4
are filled in the main TeX file. Here,#2
isXII (CBSE)
XII
andCBSE
are not aligned.g,y
, it should center the entire cell's contents. I was too lazy and just moved theCBSE
alone.