LyXmultiline equation in lyx

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
mkbh10
Posts: 17
Joined: Thu Jun 12, 2014 1:14 pm

multiline equation in lyx

Post by mkbh10 »

I am unable to write an equation like shown in the second image from top in Lyx.

I am able to get the style in image 1 but that is through the use of matrix environment. How do I remove the end bracket and increase the spacing between two rows.
Attachments
eqn2.JPG
eqn2.JPG (15.92 KiB) Viewed 2933 times
equation example
equation example
eqn.JPG (12.68 KiB) Viewed 2933 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

mkbh10
Posts: 17
Joined: Thu Jun 12, 2014 1:14 pm

Re: multiline equation in lyx

Post by mkbh10 »

I read the manual and I got the space between the rows but the bracket part is left. I will keep trying.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

multiline equation in lyx

Post by Johannes_B »

Hi, this looks like a simple cases environment.

One example from my test files containing cases:

Code: Select all

\documentclass{article}
\usepackage{mathtools}
\usepackage{empheq}
\usepackage{siunitx}

\begin{document}

	{\itshape f \(V\) f \(A\)}

\mathtoolsset{mathic=true}
	{\itshape f \(V\) f \(A\)}

		\emph{		test \SI{7}{\meter} ma}\par
		\textsc{		test \SI{7}{\meter} ma}\par
		\textsl{		test \SI{7}{\meter} ma}\par
		\textsf{		test \SI{7}{\meter} ma}\par
	\begin{gather}
		\begin{cases} 
			c & d \\
			d & \SI{7}{\meter}
		\end{cases}\\
		\begin{cases*} 
			c & d \\
			d & \SI{7}{\meter}
		\end{cases*}\\
		a \ordinarycolon\vcentcolon=b
	\end{gather}

	$\displaystyle\sum_{\mathclap{1\le i \le o\le a }}$\par
	$\displaystyle\sum_{\mathllap{1\le i \le o\le a }}$\par
	$\displaystyle\sum_{\mathrlap{1\le i \le o\le a }}$\par

\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply