简体   繁体   English

如何在乳胶中键入&&?

[英]how do I type && in latex?

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}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM