[Solved] Multi-line formula with arrows between

Discuss the formula editor
Post Reply
dannio
Posts: 4
Joined: Sat Sep 06, 2014 4:26 am

[Solved] Multi-line formula with arrows between

Post by dannio »

Hello! I would like to use the following:

Code: Select all

NK → MK                FRK[1] → FRK[2] 
        ↓                ↑  
	     PMP(a)          PMP         
	   ↓     ↓            ↑          
      PMP(b)   PMP(c) → PMP  

and put only a right brace alongside the bottom three lines with a label describing them which will say "PMP complex." I have no idea how to do this. I tried the lines of code earlier in this thread, and nothing worked. Please help!
Open Office 4.1.0 on Windows 8.1
User avatar
keme
Volunteer
Posts: 3738
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

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

Post by keme »

The newline breaks the formula flow, iow you can't have interconnecting elements between lines when you use newline. Use stacking for that.

Code: Select all

alignl stack{ NK rightarrow MK FRK[1] rightarrow FRK[2]#
downarrow ~ uparrow #
left none 
stack {PMP(a) ~ PMP #
downarrow ~ downarrow ~ uparrow #
PMP(b) ~ PMP(c) rightarrow PMP  }
 right rbrace ~ "PMP complex"} 
Bilde 2.png
Bilde 2.png (14.42 KiB) Viewed 5293 times
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: multi-line formula with arrows between

Post by acknak »

[Split off to its own topic]

This may be rather difficult to do with OO Math--I assume you need to align some of the items and arrows to show specific vertical connections, no?

I'm not sure that Math is really helping you here very much; it would be a lot easier to treat it as a diagram and use OO Draw, where spacing and alignment are simpler.

If you need to do it Math, I think you'll need to set up a matrix to get all the parts aligned vertically.
AOO4/LO5 • Linux • Fedora 23
User avatar
Hagar Delest
Moderator
Posts: 32853
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Multi-line formula with arrows between

Post by Hagar Delest »

NB: I've added the BBCode tags in the initial post, I think that the intended layout was hidden by php software.
LibreOffice 24.8 on Xubuntu 24.10 and 24.8 portable on Windows 10
dannio
Posts: 4
Joined: Sat Sep 06, 2014 4:26 am

Re: Multi-line formula with arrows between

Post by dannio »

I am a novice with doing things like this, so I appreciate everyone's help. Is there anywhere to add spaces to the code provided by Keme? That would enable the alignment of the items. If I use matrix, would I replace "stack" with "matrix"? I am going to try that now. I have not used OO Draw, and so I am going to try that as well.
Thank you everybody!!! I certainly could not do this without you, and my world-changing philosophy paper would never be produced. Now, if I can only find somebody to read it :)
Open Office 4.1.0 on Windows 8.1
dannio
Posts: 4
Joined: Sat Sep 06, 2014 4:26 am

Re: Multi-line formula with arrows between

Post by dannio »

I tried substituting "stack" with "matrix," and it didn't work. It made a matrix, but all is pretty off. I don't know how to use draw - I have the toolbar up, but don't know how to make objects like this. Is there a way to code spaces?
Open Office 4.1.0 on Windows 8.1
dannio
Posts: 4
Joined: Sat Sep 06, 2014 4:26 am

Re: Multi-line formula with arrows between

Post by dannio »

I got it! The right brace in the "draw" program, is exactly what I need. You guys are amazing!! Thank you so much!!!
Open Office 4.1.0 on Windows 8.1
User avatar
keme
Volunteer
Posts: 3738
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Multi-line formula with arrows between

Post by keme »

Hagar Delest wrote:NB: I've added the BBCode tags in the initial post, I think that the intended layout was hidden by php software.
Yes! That made more sense of the arrows (and revealed my lack of insight :( ).
Good catch :super:
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
Post Reply