\[
\begin{array}{|l|>{$}l<{$}}
x_1,y_1 & starting position\\
x_2,y_2 & ending position\\
\end{array}
\]
で、>{$}l<{$}のところなんですが
ヘルプにはIf you use this type of a preamble in an array&#8211;environment, you get a column in LR mode because the additional $’s cancel the existing $’s.
と書いているのですが、array環境でだけでしょうか?
$$y=f(x)$$は数式モードのキャンセルじゃなくて、普通ディスプレイモードでの表示
なので。