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

Discuss the formula editor

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

Postby clarkw » Mon Oct 22, 2018 10:45 pm

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

Postby clarkw » Mon Oct 22, 2018 10:56 pm

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
clarkw
 
Posts: 11
Joined: Thu Mar 22, 2012 2:03 am

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

Postby FJCC » Tue Oct 23, 2018 1:15 am

There is an overstrike attribute
Code: Select all   Expand viewCollapse view
overstrike {a_0^2} over overstrike {a_0^2}

It is probably not quite what you want but that is all I could find.
AOO 3.4 or 4.1 on MS Windows XP ( before 2013-08-03) or Windows 7
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
FJCC
Moderator
 
Posts: 6814
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

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

Postby clarkw » Tue Oct 23, 2018 1:38 am

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

Postby clarkw » Tue Oct 23, 2018 1:46 am

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
clarkw
 
Posts: 11
Joined: Thu Mar 22, 2012 2:03 am

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

Postby keme » Tue Oct 23, 2018 1:54 pm

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 21 times
Pencilmarking.odt
(23.29 KiB) Downloaded 21 times
User avatar
keme
Volunteer
 
Posts: 2977
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

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

Postby MrProgrammer » Tue Oct 23, 2018 6:07 pm

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.5 Build 9789 on Mac OS 10.11.6.   The locale for any menus or Calc formulas in my posts is English (USA).
User avatar
MrProgrammer
Volunteer
 
Posts: 3503
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

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

Postby clarkw » Tue Oct 23, 2018 9:19 pm

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
clarkw
 
Posts: 11
Joined: Thu Mar 22, 2012 2:03 am


Return to Math

Who is online

Users browsing this forum: No registered users and 1 guest