[Solved] a over a cancels -- overstrike of a reverse virgule

Discuss the formula editor
Post Reply
clarkw
Posts: 11
Joined: Thu Mar 22, 2012 2:03 am

[Solved] a over a cancels -- overstrike of a reverse virgule

Post by clarkw »

When showing a derivation of a formula I want to know if there is a way to show that "this" cancels "that". For instance:
{ {a_0^2} over {a_0^2} } times r^2

but with a scaled reverse virgule (backward slash) through the two a_0^2 values.

It would be wonderful if it is something simple like:
{ cancels {a_0^2} over cancels {a_0^2} } times r^2

Any information appreciated
TIA
ClarkW
Last edited by Hagar Delest on Thu Nov 01, 2018 5:52 pm, edited 1 time in total.
Reason: tagged solved
OpenOffice 4.4.1 on macOS High Siera
clarkw
Posts: 11
Joined: Thu Mar 22, 2012 2:03 am

Re: a over a cancels -- an overstrike of a reverse virgule

Post by clarkw »

Quick correction or feature request it should be a virgule not a reverse virgule but really it should be any character so maybe:
cancels( <char> '#' <formula>)

ClarkW
OpenOffice 4.4.1 on macOS High Siera
FJCC
Moderator
Posts: 9248
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: a over a cancels -- an overstrike of a reverse virgule

Post by FJCC »

There is an overstrike attribute

Code: Select all

overstrike {a_0^2} over overstrike {a_0^2}
It is probably not quite what you want but that is all I could find.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
clarkw
Posts: 11
Joined: Thu Mar 22, 2012 2:03 am

Re: a over a cancels -- an overstrike of a reverse virgule

Post by clarkw »

Not quite what I wanted but I might make it work. I appreciate the response though.

Thank you FJCC
ClarkW
OpenOffice 4.4.1 on macOS High Siera
clarkw
Posts: 11
Joined: Thu Mar 22, 2012 2:03 am

Re: a over a cancels -- an overstrike of a reverse virgule

Post by clarkw »

Yeah! I tried to make it work. It really needs to be a / over the top of the factor. I guess I'll try using an image of a line with a transparent background over the factor and see what I can do to scale that. Appreciate the knowledge though I actually used overstrike in another place.
ClarkW
OpenOffice 4.4.1 on macOS High Siera
User avatar
keme
Volunteer
Posts: 3699
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: a over a cancels -- an overstrike of a reverse virgule

Post by keme »

Workaround: insert the formula in a Draw window and draw the overstrike lines on top. Copy the group of objects and paste them as one object into Writer (or where you need it).

Paste special as a Draw object makes the formula editable, but it may be harder to position it nicely in line with other text.
Attachments
Pencilmarking.odg
(13 KiB) Downloaded 362 times
Pencilmarking.odt
(23.29 KiB) Downloaded 360 times
User avatar
MrProgrammer
Moderator
Posts: 4895
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: a over a cancels -- an overstrike of a reverse virgule

Post by MrProgrammer »

clarkw wrote:It would be wonderful if it is something simple like … but with a scaled reverse virgule (backward slash) through the two a_0^2 values.
The documentation doesn't show a feature which could display the formula in the way you want.
clarkw wrote:When showing a derivation of a formula I want to know if there is a way to show that "this" cancels "that". For instance:
{ {a_0^2} over {a_0^2} } times r^2
Perhaps this?
{color cyan {a_0^2} overbrace  size 5 color red "cancel"} over
{color cyan {a_0^2} underbrace size 5 color red "cancel"} times r^2
Screen Shot 2018-10-23 at 11.05.23 .png
clarkw wrote:Quick correction or feature request it should be a virgule not a reverse virgule but really it should be any character so maybe:
cancels( <char> '#' <formula>)
This is a user-to-user forum. Developers don't look at these discussions, and users here can't fix OpenOffice. See Reporting bugs or suggestions. All of the source code for the project is freely available. If you are a programmer you can register as an AOO developer and add the feature youself.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
clarkw
Posts: 11
Joined: Thu Mar 22, 2012 2:03 am

Re: a over a cancels -- an overstrike of a reverse virgule

Post by clarkw »

All of these responses have been GREAT!
Thank you all for taking the time to respond.
Keme's solution may be the best workaround. I'll try that out later today.
The altered color "Cancel" is also good (although locale specific, where a slash is fairly universal).
I'll post what I finally came up with/use.

ClarkW
OpenOffice 4.4.1 on macOS High Siera
Post Reply