Rank: Newbie
Groups: Registered
Joined: 03/02/2017(UTC) Posts: 7
|
Hi, thanks for the feedback, especially to Overlord and Razonar. It works as suggested. Unfortunately, creating the vector arrows is very tedious. Maybe there will be an easy way to create them soon, maybe an addon. Many greetings Octahedron (german -Deepl-english) Ps.: regrettable that private disputes are carried out here. I thought it was about smath and mathematics
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 11/01/2018(UTC) Posts: 134 Location: Wisconsin Was thanked: 62 time(s) in 39 post(s)
|
Code:This conversation is a continuation of https://en.smath.com/forum/yaf_postst23318_Arrows-bei-Vectors.aspx
Originally Posted by: overlord Originally Posted by: Oktaeder Asked a long time ago. Unfortunately no possibility found so far to set vector arrows over letters.Only over printed documents by hand. Later changes are so hardly possible. How can I integrate the arrows into the worksheet and connect them with the letters ? Thanks for the answers What you have requested is not possible by fonts itself. The ligature you asked for is called "Combining Right Arrow Above". Courier New or Liberation Mono doesn't have this. So SMath (or any program including Libreoffice, MS Word, etc) can't interpret that arrow. Only Segoe UI Symbol has that but SMath doesn't use it for functions. Yet a dirty time consuming trick may applied. Here is an example. Regards arrow above.sm (4kb) downloaded 18 time(s). Originally Posted by: Razonar Hi Oktaeder. Try copying and pasting variables from this. OverVector.sm (3kb) downloaded 19 time(s).Best regards. Alvaro.
Greetings Oktaeder, Agreed, the methods Overlord and Razonar proposed (refer to the spoiler above) are very tedious, but we should be grateful that such solutions are supported in SMAth. However, there are ways to make Razonar's approach 'less tedious' and the are as follows:
- Create a Plugin/addon: This would the the most ideal solution. Such a feature can easily be accomplished by being assigned a shortcut key and/or accessible from a toobar. To that effect, I did write code in vb.net that serves this purpose for variables with macron/underline attributes: (https://en.smath.com/for...Shortcuts.aspx#post79990) Although daunting, you have the ability to deploy/create your own addins; do not feel the need to 'wait' until someone else develops/deploys tools that best serve your purposes.
- Copy and Paste: Although your browser may not acknowledge theses characters, copying and pasting the special characters into SMath will deliver the result you are after:
For ⃑ (OverArpoon); Copy and Paste into SMath: For ⃗ (OverVector); Copy and Paste into SMath:
- Enter Special Characters via hexadecimal code: This technique saves you the hassle of having to copy/paste the special characters into your document, but it is none the less tedious. REQUIRES EnableHexNumpad TO BE ENABLED WITHIN CPU REGISTRY
- EnableHexNumpad within your cpu registry (NOTE: If you do not understand/feel comfortable with editing your cpu registry, do not attempt this method as you can really mess up your computer)
- Once enabled, you can insert those characters while defining your variables:
Pres and Hold down 「Alt」 as you hit/type the following keypresses, one character at a time:
For ⃑ (OverArpoon): For ⃗ (OverVector):
- Reference those items associated with keyword hex in the following document: [v0.99] SMath Keyboard Shortcuts.pdf (593kb) downloaded 377 time(s). Dated: 2022-12-09
- Create a Snippet: Saving these characters/variables with a SNIPPET might be the solution you are after. You can say that you will still need to copy and paste, but the special characters will at least be saved within the SMath application (can be easily retrieved in a new worksheet).
Just a few notes with regards to Razonar's method:
- really only 'effective' with single character variables (leaves something to be desired when using longer variable names).
- After you define a variable with the arrow above it, you can easily retrieve it via the dynamic assistant (without the need to copy/paste it). That is: once you define 「y⃑」, you just need to type in 「y」 and select your variable from the dynamic assistant dropdown without the need to copy/paste the variable:
Finally, I want to inform you of a method that you should not use: Redefining the Special Function 「vectorize()」. Since vectorize is a function, you technically can overwrite it. I will admit, this "looks" like the perfect solution; it is easy to type, looks nice, and is easy to manipulate! However, you will notice two things: - You loose the ability to use the Special Function vectorize() as it is designed for, &
- This work-around only redefines the 'arrow,' the text below the arrow is effectively just a place holder (this just leads to needless confusion, as shown below):
Hope this helps!
-Kenny Lemens, P.E. ᵂᴵ
|
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
I'm adept of exhausting native Smath code before inventing Plugin(s) Otherwise than 45 ° rotation, 1. Mathcad Improc is freak 2. Tracer 1.7 is freak 3. Smath rotation else 45° is exceptional That one, you ca plug wherever you want in the document
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.