So i'm trying to make a table but it doesn't look to good since the lines break inside the table in a way I don't like.
\begin{tabular}{|p{8cm}|p{1cm}|}
\hline
! (4 < 5) & \\
! false & \\
(2 > 2) ││ ((4 == 4) && (1 < 0)) & \\
(2 > 2) ││ (4 == 4) && (1 < 0) & \\
(34 != 33) && ! false & \\
\hline
end{tabular}
What happens is that it breaks into new lines after every "&&", how do I stop this from happening? How do I make latex type "&&" instead of it thinking "& something empty &"?
Use an escape character: \\ (I added a package here for clarity)
\begin{tabular}{|p{8cm}|p{1cm}|}
\hline
! (4 < 5) & \\
! false & \\
(2 > 2) ││ ((4 == 4) \&\& (1 < 0)) & \\
(2 > 2) ││ (4 == 4) \&\& (1 < 0) & \\
(34 != 33) \&\& ! false & \\
\hline
\end{tabular}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.