0

I have some text like below and need to convert it to latex.

enter image description here

I used the following latex code to create it.

\begin{center}
\begin{tabular}{ cc} 

 PIXELS: &               \shortstack{ (00100111 11101001 11001000) \\
                                 (00100111 11001000 11001001) \\
                                 (11001000 00100111 11101001)  }\\ \\
 240: & 011110000 \\ \\
 RESULT: &               \shortstack{(00100110 11101001 11001001)\\
                                 (00100111 11001001 11001000)\\
                                 (11001000 00100110 11101000) }\\

\end{tabular}
\end{center}

but output is like this

enter image description here

I need some expert help to correct this format.

3

enter image description here

\begin{tabular}{ lll} 

 PIXELS& : &              (00100111 11101001 11001000) \\
        &&                         (00100111 11001000 11001001) \\
         &&                        (11001000 00100111 11101001)  \\
 240&: & 011110000 \\ 
 RESULT&: &               (00100110 11101001 11001001)\\
         &&                        (00100111 11001001 11001000)\\
         &&                        (11001000 00100110 11101000) \\

\end{tabular}

to further reduce column space replace with

\begin{tabular}{ l@{}ll} 

enter image description here

to add additional row spacing

\begin{tabular}{ l@{}ll} 

 PIXELS& : &              (00100111 11101001 11001000) \\
        &&                         (00100111 11001000 11001001) \\
         &&                        (11001000 00100111 11101001)  \\
         &&\\
 240&: & 011110000 \\
 &&\\ 
 RESULT&: &               (00100110 11101001 11001001)\\
         &&                        (00100111 11001001 11001000)\\
         &&                        (11001000 00100110 11101000) \\

\end{tabular}

enter image description here

1
  • Thank you , it is working as expected. :)
    – uma
    Mar 22 '20 at 4:43

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.