LaTeX stretching tables / array to fill page width

I recently needed to make a math array or a table extension to fill the page width.

The effect I'm trying to achieve is that for one line on the page, half is aligned to the left and the other to the right.

For example, only now the following problems arise ...

$$
\begin{array}{l r}    
  \phi_{CJ}^* = \Sum_{SV} \psi_{CSJV} = P(S) P(S|V,C,S,J) & \text{(no summation on S or V which are in evidence.)}    
\end{array}
$$

The desired effect is that the first cell is aligned to the left and the second is aligned to the right. Instead, the array is centered, with no spaces between cells.

Many thanks

+3
source share
1 answer

Interestingly, instead of l and r, you can try p {width} for your alignment. This works well for me:

\begin{tabular}{p{0.45\textwidth} p{0.5\textwidth}}
$\phi$$_{\mathrm{CJ}}$^* = \Sum$_{\mathrm{SV}}$ $\psi$$_{\mathrm{CSJV}}$ = P(S) P(S \&     V,C,S,J)  &  (no summation on S or V which are in evidence.)  \\
\end{tabular}

p {width} , , l r - (, ) , -.

P (S) P (S V, C, S, J), \& , ...

, eQmakebox LaTeX/Tables Wikibook , , , - , \tabular... (LINK).

+5

Source: https://habr.com/ru/post/1772420/


All Articles