TransWikia.com

Using bmatrix command

TeX - LaTeX Asked by LearningInProgress on December 9, 2020

I have a rather strange question. when i am using begin{bmatrix} it does not automatically come up with end{bmatrix} as i have to type this manually. I am completely aware of how to use this command. Its just that it would save some time if end{bmatrix} generates automatically when i open begin{bmatrix}. Thanks for any help. I am using overleaf by the way.

usepackage{amsmath,amssymb,amstext}

begin{align*}
    A^* = A-BK &= begin{bmatrix} -a_2 - b_2k_1 &1 - b_2k_2 &-b_2k_3 - a_1 - b_1k_1 &-b_1k_2 &1 - b_1k_3  - a_0 - k_1 &-k_2 &-k_3 end{bmatrix} &= begin{bmatrix} 0 &0 &1 &1 &0 -1 &-3 &-3 end{bmatrix}
end{align*}

One Answer

Command completion is purely a question about the editor not about latex.

As far as I can see Overleaf's editor does not "know" about bmatrix but it will pick up environments used earlier in the document, this screenshot shows a "later" bmatrix being added. As soon as you type begin the begin{bmatrix} is offered which you can tab-complete at which point the closing end{bmatrix} is added.

enter image description here

Note begin{bmatrix}...env in the menu.

Answered by David Carlisle on December 9, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP