Live editor - Latex equation - Vertical line separating matrix columns

51 ビュー (過去 30 日間)
Pavel Trnka
Pavel Trnka 2019 年 4 月 26 日
コメント済み: Subhadeep Koley 2020 年 2 月 16 日
How to create a vertical line separaing matrix columns in the Latex equation in the Live Editor? Like for example:
eq1.gif
The horizontal line can be created by "\hline", but the vertical line specified in the column alignment argument does not work:
\left( \begin{array}{c|cc} 1 & 2 & 3 \\ \hline 4 & 5 & 6 \\ 7 & 8 & 9 \end{array} \right)
eq2.GIF
"\vline" does not work neither:
\left( \begin{array}{cccc} 1 & \vline & 2 & 3 \\ \hline 4 & \vline & 5 & 6 \\ 7 & \vline & 8 & 9 \end{array} \right)
eq3.GIF
  2 件のコメント
Jiri Dostal
Jiri Dostal 2020 年 2 月 16 日
I'd like to know the answer as well. The description of the issue is correct.
Subhadeep Koley
Subhadeep Koley 2020 年 2 月 16 日
@ Pavel Trnka, acoording to the documentation of Live Editor only \hline is supported. \vline is not mentioned in the list of supported LaTeX commands. The below workaround generates broken vertical lines. Try it that works!
\left( \begin{array}{ccc} 1 \vert & 2 & 3 \\ \hline 4 \vert & 5 & 6 \\ 7 \vert & 8 & 9 \end{array} \right)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLaTeX についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by