[Solved] Make a new line in long Math formula

Discuss the formula editor
Post Reply
Paul_TC
Posts: 4
Joined: Mon Mar 28, 2011 3:03 pm
Location: Russia

[Solved] Make a new line in long Math formula

Post by Paul_TC »

625b3114.gif
625b3114.gif (4.76 KiB) Viewed 65357 times

Code: Select all

n = {Y_пор} over {Y} ~approx~ {i overline b C_{y~макс}} over {13} ~ (1+e) over {e} left lbrace left[ {{4 -left (1 - {b_R} over {b_o} right ) [3 - {overline r}_o (1+ {overline r}_0)]} over {12 (1- {{overline r}_o}^2)}} right] ~ Z^2 + newline + left[ {1 - {{1} over {2}} left (1 - {b_R} over {b_o} right )} over {(1 - {{overline r}_o}^2)} right ] ~ left ( {Ak^2-2} over {Ak^2-1} right )^2 k^2 right rbrace
/newline or {}newline{} not working/
Attachments
test_long_line.odt
file with sample
(13.86 KiB) Downloaded 737 times
Last edited by Paul_TC on Tue Mar 29, 2011 9:38 am, edited 1 time in total.
LibreOffice 3.3.2 @ Windows 7 Starter
gerard24
Volunteer
Posts: 958
Joined: Sat Oct 30, 2010 5:12 pm
Location: France

Re: How to make a New line in a long formula?

Post by gerard24 »

Paul_TC wrote: ... Z^2 + newline +...etc
/newline or {}newline{} not working/
remove the + sign before (or after) newline instruction.
LibreOffice 6.4.5 on Windows 10
Paul_TC
Posts: 4
Joined: Mon Mar 28, 2011 3:03 pm
Location: Russia

Re: How to make a New line in a long formula?

Post by Paul_TC »

remove the + sign before (or after) newline instruction.
I have not worked.
At the end of the first row and the beginning of the next should be a plus .
If no trouble, give an example of working code.
LibreOffice 3.3.2 @ Windows 7 Starter
User avatar
MrProgrammer
Moderator
Posts: 5349
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: How to make a New line in a long formula?

Post by MrProgrammer »

Hi, and welcome to the forum.

It's not clear what you're trying to accomplish. You want to start a new line within the braces? And you really want two "+" signs in sequence, one at the end of the upper expression and another at the beginning of the lower expression? That's rather unusual, but if so:
n = {Y_пор} over {Y} ~approx~ {i overline b C_{y~макс}} over {13} ~ (1+e) over {e}
   left lbrace stack { left[ {{4 -left (1 - {b_R} over {b_o} right ) [3 - {overline r}_o (1+ {overline r}_0)]}
   over {12 (1- {{overline r}_o}^2)}} right] ~ Z^2 "+"
   # "+" left[ {1 - {{1} over {2}} left (1 - {b_R} over {b_o} right )} over {(1 - {{overline r}_o}^2)} right ] ~
   left ( {Ak^2-2} over {Ak^2-1} right )^2 k^2} right rbrace

If not, explain in detail why that is not what you want and how it should be changed.
Screen shot 2011-03-28 at 10.43.39 .png
If this answered your question please go to your first post use the Edit button and add [Solved] to the start of the title. You can select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.6, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
Paul_TC
Posts: 4
Joined: Mon Mar 28, 2011 3:03 pm
Location: Russia

Re: How to make a New line in a long formula?

Post by Paul_TC »

MrProgrammer wrote:Hi, and welcome to the forum.
Thank you!

Interesting variant ))

Originally intended to do so (photoshop :) )
b062ef0b.gif
b062ef0b.gif (4.39 KiB) Viewed 65357 times
In a pinch, we can use the stack {<?> # <?>}, but it will not sport, as formula would be more than one.
LibreOffice 3.3.2 @ Windows 7 Starter
User avatar
RGB
Posts: 1456
Joined: Mon Oct 08, 2007 1:34 am

Re: How to make a New line in a long formula?

Post by RGB »

Try this:

Code: Select all

left lbrace {math stuff} right none
newline
left none {more math stuff} right rbrace
Brackets must be closed on the same line, that's why you need the "none" command.
There are two types of people: those who believe that there are two types of people and those who do not.

openSUSE Leap with KDE Plasma / LibreOffice
gerard24
Volunteer
Posts: 958
Joined: Sat Oct 30, 2010 5:12 pm
Location: France

Re: How to make a New line in a long formula?

Post by gerard24 »

RGB wrote:Brackets must be closed on the same line, that's why you need the "none" command.
Well done :super:

Code: Select all

(1st part of the formula) "+"  right none newline alignl + left none (2nd part of the formula)
works fine.

"+" to avoid 2 operators in a row
alignl to align left (centered by default)
LibreOffice 6.4.5 on Windows 10
Paul_TC
Posts: 4
Joined: Mon Mar 28, 2011 3:03 pm
Location: Russia

Re: How to make a New line in a long formula?

Post by Paul_TC »

gerard24 wrote:
RGB wrote:Brackets must be closed on the same line, that's why you need the "none" command.

Code: Select all

(1st part of the formula) "+"  right none newline alignl + left none (2nd part of the formula)
works fine.
"+" to avoid 2 operators in a row
alignl to align left (centered by default)
wonderful :bravo:
Thanks to all!
LibreOffice 3.3.2 @ Windows 7 Starter
swashplate
Posts: 1
Joined: Wed May 09, 2012 9:40 pm

Re: [Solved] How to make a New line in a long formula?

Post by swashplate »

Just FYI, I have just used this on the Linux versio9n and it works OK! Thanks a lot!! :-)
LibreOffice 3.4.5 OOO340m1 (Build:502)
Installed on Linux Fedora 16(Verne) kernel 3.3.4-3.fc16.i686.PAE, Gnome 3.2.1
Post Reply