Welcome Guest Search | Active Topics | Log In | Register

Text formatting
smath Offline
#1 Posted : Saturday, July 17, 2010 5:32:58 PM(UTC)
Rank: Administration

Groups: Administrators

Joined: 7/11/2008(UTC)
Posts: 476
Location: St. Petersburg
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.
maweilian Offline
#2 Posted : Monday, July 19, 2010 7:23:06 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 1/9/2010(UTC)
Posts: 67
Location: Oregon, USA
This improvement is much needed! Great work, Andrey!
Will Massie
Mechanical Engineer
Oregon, USA
sorlum Offline
#3 Posted : Friday, July 30, 2010 1:27:27 PM(UTC)
Rank: Newbie
Groups: Registered

Joined: 3/25/2010(UTC)
Posts: 3
Location: Switzerland
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.
smath Offline
#4 Posted : Friday, July 30, 2010 1:41:40 PM(UTC)
Rank: Administration

Groups: Administrators

Joined: 7/11/2008(UTC)
Posts: 476
Location: St. Petersburg
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:
Code:
  <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:
Code:
  <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 <p font-name="Arial">My test text</p> line)
7) Save changes in text editor;
8) Open the result file with SMath Studio.

Hope it will help you.

Regards.
sorlum Offline
#5 Posted : Monday, August 02, 2010 2:32:06 PM(UTC)
Rank: Newbie
Groups: Registered

Joined: 3/25/2010(UTC)
Posts: 3
Location: Switzerland
Thank you,

I used a search replace for all the <p[space] and then all the <p> and it seems to work.

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

Again - Thank you and great work.



Users browsing this topic
Guest
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.