Text formatting

Text formatting - Messages

#1 Posted: 7/17/2010 10:32:58 AM
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: Super Administrator

Hello all!

Next version of SMath Studio will have an ability to work with formatted text. It will support text options like bold, italic, underline and custom fonts.


Unfortunately I have no chance to implement any user interface to manage text format for now, but I can use standard keystrokes:
  1. Ctrl+B - to make text bold
  2. Ctrl+I - to make text italic
  3. Ctrl+U - to make text underlined

Problem is that Ctrl+U is a keystroke to open Insert Unit Dialog (we have it in SMath Studio 0.88 and Mathcad). Is it OK if I will change Unit Dialog hot key to Ctrl+W?

P.S.: Insert Function Dialog can be shown using Ctrl+E.

Regards.
#2 Posted: 7/19/2010 12:23:06 PM
maweilian

maweilian

5 likes in 103 posts.

Group: User

This improvement is much needed! Great work, Andrey!
Will Massie Mechanical Engineer Oregon, USA
#3 Posted: 7/30/2010 6:27:27 AM
sorlum

sorlum

0 likes in 3 posts.

Group: User

The text formatting is really great - just one question:

How do I change the font in 0.89? I see that you announce it here, but it isn't clear to me how to get arial for example.
#4 Posted: 7/30/2010 6:41:40 AM
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: Super Administrator

As I've mentioned above SMath Studio has no any user interface for changing text formatting. Unfortunately there is no any way within a program to change a font. But you can use a small trick:
1) Create a worksheet;
2) Create a text region;
3) Save created content as a *.sm file;
4) Open created file with a Notepad or any other simple text editor;
5) Find lines like:
  <region id="1" left="198" top="297" width="83" height="27" color="#000000" background-color="#ffffff" font-size="12">
    <text lang="rus">
      <p>My test text</p>
    </text>
  </region>
6) Change it to:
  <region id="1" left="198" top="297" width="83" height="27" color="#000000" background-color="#ffffff" font-size="12">
    <text lang="rus">
      <p font-name="Arial">My test text</p>
    </text>
  </region>
(see

font-name="Arial">My test text

line)
7) Save changes in text editor;
8) Open the result file with SMath Studio.

Hope it will help you.

Regards.
#5 Posted: 8/2/2010 7:32:06 AM
sorlum

sorlum

0 likes in 3 posts.

Group: User

Thank you,

I used a search replace for all the and it seems to work.

It's a bit long, but at least it is possible

Again - Thank you and great work.



#6 Posted: 1/2/2011 2:32:51 AM
John at the Waterfalls

John at the Waterfalls

1 likes in 16 posts.

Group: User

Copy and Paste Text from MathCad to SMath

I am currently using my recently purchased MathCad 15 alongside SMath to document a project I am working on. I don't need to do complex calculations, just keep track of the numerous simple calculations. So today I spent a large amount of time typing up my results.

I typed my documentation into MathCad and when I was finished, copied and pasted into SMath. Formatting does not carry through a copy and paste into SMath. SMath does not do word wrap in the text boxes yet and I had to manually insert all the carriage returns with Shift-Return. I have 4 pages of text and in some areas, the whole page unexplainedly jumped around and I lost the area I was working on. The answer may be to copy from MC into a text editor or RTF editor, insert line breaks and then copy and paste into SMath. Funny things also happen depending on whether you copy the text box from MC or highlight and copy the text.

Tomorrow I will do all my writing in SSMath, and then copy and paste into MC, letting MC do the word-wrap and touching up with the mouse and formatting buttons.

Of note; Mathcad does not even use shortcut keys for Bold Underline and Italics. You have to use your mouse! What a joke for the price they charge.

SMath format shortcut keys only highlight the whole text block. You can nott just highlight the header and Ctl-B to make the header bold. The whole block becomes bold. I don't have time to edit the formatting code. I will patiently wait until the next version of SMath comes out. My work is documented. I'm happy.

I'm sure this post will eventually become irrelevant as SMath progresses.

#7 Posted: 2/28/2011 7:47:12 PM
cneily

cneily

0 likes in 5 posts.

Group: User

Question: Will these fonts be active for mathematical expressions, or just in text regions as text. In other words, will I be able to set vector-valued quantities in boldface in my calculations?
Clark N.
#8 Posted: 3/1/2011 3:34:28 PM
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: Super Administrator

Hello.

No, there are no such formatting abilities for the math expression.
#9 Posted: 3/1/2011 4:04:37 PM
cneily

cneily

0 likes in 5 posts.

Group: User

I would respectfully offer the opinion that font choices for variables and parameters in calculations are a much more important feature than font choices in text. Calculations become much more readable and easy to follow if it is clear which items are vectors, or matrices, for example, and which scalars. This is one of the principal advantages of MathCad. I would like to post some example worksheets that illustrate this point, if possible.
#10 Posted: 3/1/2011 5:43:19 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Welcome back Andrey
Wrote

Hello.

No, there are no such formatting abilities for the math expression.


There were no posts from you for a while and we were quite woried about it. I hope everything is going well

Best Regrads,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#11 Posted: 3/6/2011 9:45:32 AM
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: Super Administrator

Привет Radovan!

Wrote

There were no posts from you for a while and we were quite woried about it. I hope everything is going well


Yeah, but I'm still very busy. Anyway I'll be back to the project in couple of months to continue SMath Studio development.

Regards.
2 users liked this post
Radovan Omorjan 3/6/2011 3:59:00 PM, maweilian 3/7/2011 12:58:00 PM
#12 Posted: 2/18/2013 5:51:11 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

A sheet containing some text area with various font-families to use in your own scripts (copy from this sheet, paste in your sheets and modify the area).


best regards,

w3b5urf3r
SMath Studio - [The quick brown fox.sm].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
ioan92 3/1/2014 4:06:00 PM
#13 Posted: 3/1/2014 11:55:30 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

A sheet containing some text area with various font-families to use in your own scripts (copy from this sheet, paste in your sheets and modify the area).



Uploaded in the Extensions Manager (Examples)


Best regards,

Davide
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#14 Posted: 3/1/2014 1:35:49 PM
natezimmer

natezimmer

1 likes in 8 posts.

Group: User

Is it possible or has anyone implemented a plugin for a text toolbar?
#15 Posted: 3/1/2014 2:07:56 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

Is it possible or has anyone implemented a plugin for a text toolbar?



Partially, yes.... not a toolbar but I'm working to another solution on the existing text region...
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
ioan92 3/1/2014 4:03:00 PM
#16 Posted: 4/16/2014 4:38:45 PM
blarg

blarg

0 likes in 6 posts.

Group: User

Any chance a donation of some size could get us a toolbar that would allow us to easily change to these fonts? =D

Wrote

Hello all!

Next version of SMath Studio will have an ability to work with formatted text. It will support text options like bold, italic, underline and custom fonts.


Unfortunately I have no chance to implement any user interface to manage text format for now, but I can use standard keystrokes:

  1. Ctrl+B - to make text bold
  2. Ctrl+I - to make text italic
  3. Ctrl+U - to make text underlined

Problem is that Ctrl+U is a keystroke to open Insert Unit Dialog (we have it in SMath Studio 0.88 and Mathcad). Is it OK if I will change Unit Dialog hot key to Ctrl+W?

P.S.: Insert Function Dialog can be shown using Ctrl+E.

Regards.

#17 Posted: 9/26/2014 1:54:17 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

Any chance a donation of some size could get us a toolbar that would allow us to easily change to these fonts?



Trust me, the toolbar is the minor of the issues

BTW working to the SectionRegions plugin, I'm making an easy-to-use WriterRegion, and I've also produced a (back-end) customizable toolstrip to drive the text settings (as for now, the toolbar is just a toy).
2014-09-26 19_52_51-SMath Studio Desktop - [texttest.sm].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
ioan92 9/26/2014 2:17:00 PM
#18 Posted: 10/8/2014 12:37:01 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

A screenshot... will be relased as WriterRegion (when will be stable and complete enough).
test.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
6 users liked this post
hitaisin 1/4/2015 4:37:00 AM, Radovan Omorjan 10/8/2014 1:54:00 PM, Вячеслав Мезенцев 10/8/2014 1:12:00 PM, ioan92 10/8/2014 3:28:00 PM, Peter 10/9/2014 12:07:00 AM, Andrey Ivashov 10/11/2014 9:11:00 AM
#19 Posted: 1/4/2015 4:36:33 AM
hitaisin

hitaisin

2 likes in 10 posts.

Group: User

Hello!

Any news about WriterRegion?

Can I change default font in application? I want to use Arial as default font.
#20 Posted: 1/4/2015 3:15:46 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

Hello!

Any news about WriterRegion?



Hello hitaisin

The plugin is still under development. I have to change an important piece of code to improve performances and to support text wrapping, and then I have to ask Andrey about History handling because the code doesn't work as expected. After this, the plugin will be published.


Wrote

Can I change default font in application? I want to use Arial as default font.



You can change the font family of text regions with another plugin (Text Region Utilities), but you can't set a default font to use everytimes.


Wishes of an happy new year to the whole SMath community

Davide
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
  • New Posts New Posts
  • No New Posts No New Posts