WebSite X5Help Center

6 ANTWORTEN - 1 KORREKT
Aleksej H.
Aleksej H.
Moderator

Hello. MathML is a special markup language. Perhaps the syntax of the language has the necessary constructions. Ask Google: "MathML resizing".

Mehr lesen
Gepostet am von Aleksej H.
Rients P.
Rients P.
User
Autor

Dear Aleksej,

Thanks for the quick answer! I hoped Incormedia had some secret tricks for me here.

Looking at Google it becomes a lot of programming. First I need to make several font sizes available in css for a to define MathML object. Next a JavaScript needs to detect the width of the screen and choose the appropriate font. On top of this, it seems that Safari ideas of the font size than Opera, Chrome or Firefox.

I'm going to think about it.

Mehr lesen
Gepostet am von Rients P.
Wayne B.
Wayne B.
User

Incomedia don't help with custom code usually but there may be other users that can. Good luck with this, as I have no skills in this area!

Mehr lesen
Gepostet am von Wayne B.
Aleksej H.
Aleksej H.
Moderator

"Thanks for the quick answer!" - not at all.

"Incomedia don't help with custom code usually" - you're right.

Mehr lesen
Gepostet am von Aleksej H.
John S.
John S.
User

Hello Rients

How about just make it as an image. Then it will be resized without being trunbcated.

Mehr lesen
Gepostet am von John S.
Rients P.
Rients P.
User
Autor

Dear John, 

Just what I have done this weekend. For the ones unfamiliar with MathML the workaround here.

  1. Make your formula in Open Office Formula.
  2. Save it as mml file.
  3. Load this file in Notepad++ or something.
  4. Copy the entire code on the clipboard. (ctrl+C)
  5. Past the clipboard (ctrl+V) inside the text window of the X5-MathML object. (because it has no file load)
  6. Get a preview of the page
  7. Make a screendump
  8. Cut your formula from the picture
  9. Save it as png (lossless compression, sharp edges)
  10. Replace the MathML object with the picture.

Extra bonus: The page will load faster because it has less external fetches to do.

Thanks John, Wayne and Aleksej.

Mehr lesen
Gepostet am von Rients P.