TransWikia.com

Making tabular without frame for text and left justify

TeX - LaTeX Asked on September 30, 2021

I’ve seen related to this problem, but my problem is the output shows mathstyle with italic font instead of textstyle (Not italic).
And then i tried to use text{...}, but it didn’t work and a lot of errors happened.

And what if i get rid the dollar symbol? The tabular will fail.

So, this is my code:

begin{center}
     begin{tabular}
      $begin{array}{ll}
       text{My Name   & : Justin Bieber 
        Class          & : VIII D 
        NIM            & : 1234567890}
     end{array}$
     end{tabular}
end{center}

Please help me to fix my code until shows textstyle, tabular set with left justify.
Thanks!

One Answer

It's not a good idea to place an array environment inside a tabular environment -- at least not the way you are attempting to do it. array is mainly for math-mode material; tabular is mainly for text-mode material. Your code also generates quite a few syntax error messages -- don't ignore them.

Anyway, here's an attempt to fix your code:

begin{center}
     begin{tabular}{ll}
        My Name   & Justin Bieber 
        Class     & VIII D 
        NIM       & 1234567890
     end{tabular}
end{center}

Correct answer by Mico on September 30, 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