1

Attempting to alternate between left alignment and center alignment in table. Wish to have vertical rule between columns. Following code loses vertical rule because of use of \multicol to achieve alternating alignments.

Thanks in advance for assistance.

Edit: correction per comment @egreg.

\documentclass{article}
\let\mc\multicolumn
\DeclareMathOperator{\lo}{\mathrm{o}}
\begin{document}

\begin{tabular}{l|l}
 Coordonnées du point O & Coordonnées de l’axe o \\
\mc1c{$x=\lo,\;y=\lo.$} & \mc1c{$u=\lo,\;v=\lo.$}\\
  Équation de l’axe $x$ & Équation du point $X$  \\
        \mc1c{$y=\lo.$} & \mc1c{$v=\lo.$}        \\
  Équation de l’axe $y$ & Équation du point $Y$  \\
        \mc1c{$x=\lo.$} & \mc1c{$u=\lo.$}
\end{tabular}

\end{document}

what I have

enter image description here

4
  • I understand that you want to emulate an old book, but using o in place of 0 is wrong.
    – egreg
    May 19, 2021 at 10:29
  • @egreg The author explains his notation beginning here: 52. Nous représenterons les points par des lettres majuscules, les droites par des minuscules. Un point sera parfois désigné par les noms de deux droites s’y coupant, et une droite par les noms de deux de ses points. and continues for several paragraphs. It makes sense to me, but ... a link to the article scan is Nouvelles annales de mathématiques : Série 3 : Tome 4 (1885) May 19, 2021 at 12:09
  • I was objecting to 0 turned into o, not to the letter o itself. In “Cordonnées de l’axe o” you have a letter o; in the subsequent formulas there are zeros (in “oldstyle” format).
    – egreg
    May 19, 2021 at 12:12
  • @egreg Ah! math mode? will attempt an edit. Thanks very much! May 19, 2021 at 12:16

1 Answer 1

1

Add the vertical bar back in with the multicolumn, by way of \mc1{c|}.

\documentclass{article}
\let\mc\multicolumn
\begin{document}

\begin{tabular}{l|l}
 Coordonnées du point O & Coordonnées de l’axe o \\
    \mc1{c|}{$x=o,\;y=o.$} & \mc1c{$u=o,\;v=o.$}    \\
  Équation de l’axe $x$ & Équation du point $X$  \\
          \mc1{c|}{$y=o.$} & \mc1c{$v=o.$}          \\
  Équation de l’axe $y$ & Équation du point $Y$  \\
          \mc1{c|}{$x=.o$} & \mc1c{$u=o.$}
\end{tabular}

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .