Results 1 to 5 of 5

Thread: Greek Letters and Equations *RESOLVED*

  1. #1

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    Unhappy Greek Letters and Equations *RESOLVED*

    I'm having trouble converting the Greek letter Gamma when I
    convert my Word document to pdf format.
    It converts fine when it is in an equation, but not when
    it is in the body text.

    I tried to record a macro to find instances of Gamma in the
    main text and replace it with instances of Microsoft
    Equation Editor containing one letter.

    Unfortunately when I run the macro I am left with empty equations.
    Is it possible to programatically add Equations?
    If not, can anyone think of a better way of solving this?

    I'm converting to pdf using pdf995 (freeware).

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    can you copy & paste both the equation & a word in the main text with this character into a new doc & attach it please?

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383
    Attached is an example.
    It looks something like this:

    Converting between different formats
    Introduction
    Blah blah blah
    The method
    Ã = Greek gamma in main text
    (1)= Example in an equation
    (2)= Simpler example in equation
    . {Equation here} (1)
    . {Equation here} (2)
    This is how it looks in the pdf document
    You can see here that the Greek gamma has come out like a capital
    A with an accent in the quote, instead of a capital F without the
    lower horizontal line

    /Andrew
    Attached Files Attached Files

  4. #4

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383
    Success!
    Instead of inserting Gamma from the Times New Roman Subset
    I inserted it from the Symbol main font set.

    Now I just need to write a macro to find and replace all instances
    but that cant be too hard can it?!

  5. #5

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383
    As predicted it wasn't hard at all!

    VB Code:
    1. Sub Gamma()
    2. '
    3. ' Gamma Macro
    4. ' Gamma written 09/07/2003 by Andrew Morgan
    5. '
    6.  
    7.  
    8. Set myRange = ActiveDocument.Range(Start:=0, End:=0)
    9. With myRange.Find
    10.     .ClearFormatting
    11.     .Text = ChrW(915)
    12.     With .Replacement
    13.         .ClearFormatting
    14.         .Font.Name = "Symbol"
    15.         .Text = ChrW(-4025)
    16.     End With
    17.     .Execute Replace:=wdReplaceAll, Format:=True, MatchCase:=True, MatchWholeWord:=True
    18. End With
    19.  
    20. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width