Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-24-2014, 02:28 AM
Mc128k Mc128k is offline Convert math formulas into images (Word for Mac) Mac OS X Convert math formulas into images (Word for Mac) Office for Mac 2011
Novice
Convert math formulas into images (Word for Mac)
 
Join Date: Feb 2014
Posts: 3
Mc128k is on a distinguished road
Default Convert math formulas into images (Word for Mac)

Hi all


I have some documents where I edit math stuff and I would like to make them compatible with my iPad. Unfortunately the math formulas don't show up.

Is there a way/script to convert them to images? Or HTML if possible (if it works)
I have dozens of docs, it's not easy to do it by hand.

Thanks
Reply With Quote
  #2  
Old 02-24-2014, 04:08 AM
macropod's Avatar
macropod macropod is offline Convert math formulas into images (Word for Mac) Windows 7 32bit Convert math formulas into images (Word for Mac) Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could use a macro like the following to convert them to images. I doubt they can be converted to HTML.
Code:
Sub Demo()
Dim sWdth As Single, Shp As Shape, Rng As Range, i As Long
With ActiveDocument
  For i = .OMaths.Count To 1 Step -1
    Set Rng = .OMaths(i).Range
    With Rng
      .Collapse wdCollapseEnd
      sWdth = .Information(wdHorizontalPositionRelativeToTextBoundary)
    End With
    Set Rng = .OMaths(i).Range
    With Rng
      sWdth = sWdth - .Information(wdHorizontalPositionRelativeToTextBoundary)
      .CopyAsPicture
      .Text = vbNullString
      .PasteSpecial DataType:=wdPasteEnhancedMetafile
      Set Shp = .ShapeRange(1)
      With Shp
        sWdth = (.Width - sWdth) / 2
        .PictureFormat.CropLeft = sWdth
        .PictureFormat.CropRight = sWdth
        .WrapFormat.Type = wdWrapTopBottom
        .LockAnchor = True
      End With
    End With
  Next
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-24-2014, 02:44 PM
Mc128k Mc128k is offline Convert math formulas into images (Word for Mac) Mac OS X Convert math formulas into images (Word for Mac) Office for Mac 2011
Novice
Convert math formulas into images (Word for Mac)
 
Join Date: Feb 2014
Posts: 3
Mc128k is on a distinguished road
Default VB

Hi
Thanks for the quick answer, however I am using a Mac, is VB available at all?

You think it would be possible with AppleScript? I can figure out that way maybe.

Thank you again
Reply With Quote
  #4  
Old 02-24-2014, 02:46 PM
Mc128k Mc128k is offline Convert math formulas into images (Word for Mac) Mac OS X Convert math formulas into images (Word for Mac) Office for Mac 2011
Novice
Convert math formulas into images (Word for Mac)
 
Join Date: Feb 2014
Posts: 3
Mc128k is on a distinguished road
Default

Found the macro editor, so I guess it's only a matter of studying how it works.

Thanks
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert math formulas into images (Word for Mac) how to transfer multiple excel cells into specific place in word document by formulas anton Excel 1 12-20-2011 03:56 AM
Convert math formulas into images (Word for Mac) word 2010 not display math symbols correctly sharks Word 1 09-08-2011 04:24 AM
How do I embed a Math formula? DMD Word 0 11-17-2009 12:37 PM
Creating Formulas in a Word Form pittz2002 Word 0 08-25-2009 08:36 AM
Convert math formulas into images (Word for Mac) How to transfer multiple cells from excel to word by formulas justziggy Word 5 05-23-2009 02:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft