How can I write 2 simple columns with data?

For example like this:

 a      kjh
 f      ghjjjk
 f      gtrgthgthtyhth

I tried /twocolumns but I didnt get this result.


For basic representation of data, use tabular:

enter image description here



\begin{tabular}{ c c }
  a & kjh            \\
  f & ghjjjk         \\
  f & gtrgthgthtyhth

  • But I like teh second column to be intended, I mean in a straight line – John Dow Nov 14 '18 at 23:09
  • @JohnDow: You're probably talking about the column specification being centred. You can try with left or right-aligned. That is, \begin{tabular}{ l l } or \begin{tabular}{ c r }. – Werner Nov 14 '18 at 23:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.