[Tex/LaTex] How to add two vertical lines in LyX

lyx

I need to do two vertical lines in LyX like this:

Two vertical lines

How to do that?

Best Answer

To have an equivalent of the LaTeX \left\| \begin{array}{l} \mbox{For } a \\ f(a') \\ \end{array} \right.

First, you go I̲nsert>Math̲>Delimiter̲s

You uncheck the box "Keep matched" and you chose the correct left and right: Delimiters

Then, inside these delimiters, you will be in maths mode and have access to the maths toolbar. Add a matrix 2x1: enter image description here

Finally, you may want to use a \mbox for your "For ", Lyx should auto-complete.

Fill the matrix with the wanted elements, and you get:

Result

You could also use \textit instead of the \mbox and have:

Result2