[Solved] Vertical line in a formula

Discuss the formula editor
Post Reply
ywguo
Posts: 18
Joined: Fri Nov 14, 2008 6:13 am

[Solved] Vertical line in a formula

Post by ywguo »

How do I input a formula like the following.

y=f(x)|x=1.2

I cannot input that virtical line. :( That line need to scale with the expression of f(x) because f(x) is complicated sometimes. f(x) may occupy more than one line.
Last edited by ywguo on Thu Nov 20, 2008 4:18 am, edited 1 time in total.
OOo 2.4.X on Ms Windows XP + Leopard
User avatar
RGB
Posts: 1456
Joined: Mon Oct 08, 2007 1:34 am

Re: virtical line in a formula

Post by RGB »

Code: Select all

left none y=f(x) mline x=1.2 right none
This will scale with your expression. You need to use the "left none" and "right none", otherwise you will see a red question mark instead of a vertical line...
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
User avatar
TheGurkha
Volunteer
Posts: 6482
Joined: Thu Mar 13, 2008 12:13 pm
Location: North Wales, UK.

Re: Vertical line in a formula

Post by TheGurkha »

If this has answered your question, please go to your first post and add [Solved] to the start of the title. You can also use the green tick icon.
Ubuntu 14.10 Utopic Unicorn, LibreOffice Version: 4.3.3.2
Gurkha Welfare Trust
firsttimelinux
Posts: 3
Joined: Thu Nov 20, 2008 8:51 pm

Subscript with "|"

Post by firsttimelinux »

I was just about to post a related question, but during the typing of this post I managed to crack it (eventually): assuming this vertical line is for "evaluated at", then I wanted the value to be lower down, like in the lower limit of an integral. This is what I was trying to get:

left none {partial y} over {partial x} mline right none_{x_0}

After seeing left ( and left [ I assumed that left | and right | would work, but sadly not.
Last edited by firsttimelinux on Fri Nov 21, 2008 12:31 am, edited 1 time in total.
OOo 2.4.X on Mandriva
Jintram
Posts: 3
Joined: Mon Mar 21, 2011 10:49 am

Re: [Solved] Vertical line in a formula

Post by Jintram »

Doesn't quite cut it, I used:

Code: Select all

left none {partial hat S(s mline r_0)} over {partial r_0} mline stack{{} # {}_{r_0=a}}  right none =hat R(S mline a) {hat f(r_0)}over{hat f(a)}
Any other ideas?
OpenOffice 3.1 on Ubuntu 10
ehawk
Posts: 1
Joined: Fri Jun 10, 2011 9:50 am

Re: [Solved] Vertical line in a formula

Post by ehawk »

This seems to work fairly well

for a single term:
left( mline {}_lower^upper right)

for expressions of the form a over b:
left( mline {binom{}{}}_lower^upper right)

for multiple stacked terms use
left( mline {stack{{} # {} #{}}}_lower^upper right)

I don't know why the left( and right) seem to be required, but they are.
OpenOffice 3.3.0 on Acer Aspire One running Windows 7 Starter Edition
User avatar
RGB
Posts: 1456
Joined: Mon Oct 08, 2007 1:34 am

Re: [Solved] Vertical line in a formula

Post by RGB »

ehawk wrote:for multiple stacked terms use
left( mline {stack{{} # {} #{}}}_lower^upper right)

I don't know why the left( and right) seem to be required, but they are.
The m in mline means "mid" :) so it goes in the middle of two brackets. You can use

Code: Select all

left none <?> mline <?> right none
if you don't need the ( ... )
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
Post Reply