I enjoy writing my math notes/lectures like so:
\documentclass[twocolumn, 10px]{article}
Before I discovered the code above I was using the package paracol to split the page whenever I want, but my professor recently started writing equations next to tabular environments. My question is there an easy way to write equations side-by-side either to the left or right of a tabular environment when already in a two-column format. For example If I wanted equations in that blue circle but still remaining in the left column:
Though I doubt you guys need the code for such a simple tabular I provided it just in case :)
\begin{tabular}{c|c}
$x$ & $f(x)$ \\
\hline
$0$ & $1-p$ \\
$1$ & $p$
\end{tabular}
Edit: Further testing I realized If I add the code to the end tabular line it does produce an equation to the right and centered relative to the tabular
\begin{tabular}{c|c}
$x$ & $f(x)$ \\
\hline
$0$ & $1-p$ \\
$1$ & $p$
\end{tabular} $f(x)=p^x(1-p)^{1-x}\enspace x=0,1$
But I Suppose this would work only If I needed one equation, But if I needed a couple or maybe a cases environment I am not sure this method would work.
multicol
package?multicol
package with atwocolumn
documentclass, results in the following warning: "Package multicol Warning: May not work with the twocolumn option"