[IDCS3] Mathtype equations eps problem

Hi all,
I'm using IDCS3 & Mathtype 6.0, we placed the eps file from mathtype to InDesign and did ps to PDF. I noticed that some of the characters in pdf are applied artificial bold in some equations.
When we check closely, I think it is not concerned with InDesign, if we place the eps file directly into PDF it shows artificial bold in some places. I placed the screenshot below.
  In the 1st image in 2nd line, 35-9/60, 0 is duplictaed twice so it appears as artificial bold in in 2nd image in the pdf.
But it is actually a single character when opening the same eps file in Math type.
Why this occouring? Anyone came across this kind of prob..
Any suggestions would be helpful..

Hello,
Your problem maybe concerned with MathType's bug.
You must have problems with generated PS from publication with MathType equations placed as EPS (lost or jumping characters).
There is a way to correct it. But in this case you must do some changes in MathType EXE-file.
1. Do a copy of MathType.exe.
2. Use HEX editor.
3. Open MathType.exe by HEX editor and find ASCII code
/ns {cf sf} bdef
4. Change "b" to white space (" ") carefully.
5. Save MathType.exe.
6. Recreate equations. EPS-files must be created by edited MathType.exe once more before problems will disappear.
7. Now all your PS and PDF will be Ok.
Please, do copies of all your files before all changes... to revert in problems case...
And this is not well method because of changing of MathType code. Sorry.
The original idea was published for the first time here http://forum.rudtp.ru/showthread.php?t=32658
Thanks

Similar Messages

  • Align MathType equations in InDesign

    Hello
    Anyone know how to align mathtype equations in InDesign CS 4 automatic? I read many discussions topics here about scripts that apply equations and align, but I want to know if there are one way to use any script just to align the equations automatic in InDesign for MAC OS, there are any script that can do just that for Mac?
    Thanks
    Jonas!

    Hello,
    If you work on PC, I think I can help you by my system of scripts (MT-Script).
    You can read more about it on my site (http://mtscript.ru) or in Scribd publication (http://www.scribd.com/doc/73272275/MT-Script-or-How-to-Work-With-MathType-Equations-in-InD esign).
    So, what you can do with my scripts? I think... all you need to prepare your publication very and very quickly.
    For example,
    you can paste equations from Word into InDesign (you can work traditionally via exporting equations to Eqn00010.eps... and placing these equations into InDesign publication instead of texts with tags like this <<Eqn00010.eps>> ... but I'm just ready to suppose you new and very simple technick ... simply paste all doc-file WITH equations (like MathType objects) into InDesign and process it by MT-UnembedEqn script ... and that's all);
    you can edit equations directly in InDesign as native objects;
    you can create new equation in InDesign without Word;
    you can format all or some equations at a moment directly in InDesign;
    you can find and change in equations;
    you can export InDesign publication to RTF with editable MathType equations. Yes! You can do it... It's very simple... one click procedure. The forward and backward conversion Word-InDesign have been perfectly created in MT-Script;
    you can test it as full functional system from the second part of Friday till the end of Monday every week;
    you can ask me about MT-Script (MathType+InDesign problems as well) just now --> [email protected]
    I'm very pleased to help you with MathType equations in InDesign.
    BUT if it's usefull for you I can create a limited version for Mac which can paste, adjust equations and exporting InDesign publication to RTF with editable equations.
    The functionality to create new equations and edit them in InDesign will be restricted because of I don't work with Mac and can't create a "bridge" program to start MathType directly from my scripts on Mac. Sorry.
    Thank you.

  • Pages 5.1:   Insert MathType equation into text box?

    How do I insert a MathType equation into a text box in Pages 5.1?  This was no problem at all in '09!

    To DandelionJoy and Mr.MathType
       As said by Mr.Mathtype we can enter and editable MathType equation with text into a Pages 5.1 text box. My procedure tried a few minutes ago is :
    Inserting a MathType equation in a text box of Pages 5.1
      1) Don’t forget to open MathType before pages 5.1.
      2) In Pages : Menu Insert > Text box > select it > Inspector > Arrange > Object Placement > Stay on Page > do other settings in the Inspector.
      3) Menu Insert > Equation MathType…
      4) In MathType : type your equation > click the red round button of the window to close it > the equation is now in the Pages window.
      5) In Pages : select the equation > Inspector > Arrange > Object Placement > Stay on page > do other settings in the Inspector ; you may change size and move the equation without using the Inspector.
      6) Type your text in the text box and move the equation as desired.
      7) Select equation and text box > Menu Arrange > Group : now equation and text box are joined together, the whole thing can be moved and use the Inspector settings.
      The equation can be edited using the same way as for an equation in the text.
    So long,
    YB24

  • Why does "Insert MathType Equation" not work in new Pages for Mac?

    Command opens MathType (6.7e).  After typing an equation, pressing Command-W closes the MathType window and returns to Pages.  (Instructions given here: http://help.apple.com/pages/mac/5.0/#/tan0e6bf8310  indicate that I should have to answer "Yes" to some question at this point, but no question appears.  The return to Pages is automatic.)  But no equation appears in the placeholder in the Pages 5.0 document (as it does in Pages 4.3).  Subsequently double-clicking the placeholder in the Pages 5.0 document opens a new (blank) MathType window.  Where is my equation?

    Right -- you shouldn't have to start MathType separately. If it's running, fine, but if it's not, it will start when you first use the Insert MathType Equation command.
    All the posts and replies have been helpful, but I'm still getting mixed results. The first document I opened in Pages 5.0 was one that I created in Pages 4.3, and it had several MathType equations in it. I could not edit the old equations, but I could insert new ones and edit them once they were inserted. I later rebooted and opened the same document (which was now saved in Pages 5.0 format), and I got a message saying some of the images had been deleted. All of the original equations had been replaced with empty placeholders (gray boxes with a large X), but the new ones were still there.
    I haven't been able to duplicate that behavior with additional "old" documents. I can open Pages 4.3 documents in Pages 5.0, and all the old equations are visible and editable. Someone mentioned re-installing MathType, and I must say that I did that (for a different reason), so I must consider the possibility that this had some bearing on the outcome, but I can't be sure.
    It does appear, as has been reported many times, and as Peter alluded to above, that you can't add equations or other objects to text boxes or tables. I believe this was intentional on Apple's part, but that doesn't mean it was a good idea.
    That said, and this is a Pages thread so I won't say much about it, I haven't seen any problems at all with Keynote 6.0 and Numbers 3.0, when it comes to how they deal with MathType.

  • Mathtype Equations Do Not Render Nicely in iBooks Author

    When you export iBooks docs to PDF, equations inserted with MathType (version 6c) appear pixelated or fuzzy (not sure of the proper term) in Preview.  Any fix for that?  Otherwise, I have to switch back to Pages to create course materials, and I'd rather not because iBooks author is pretty cool.
    Gregory

    Interesting. Especially puzzling too, since Pages '09 and iBooks Author (iBA) share what I assumed was the same composition engine. However, my MathType equations in a Pages '09 document that I export to PDF are crisp and clear, but my equations from iBA are fuzzy like yours. PLEASE report this to Apple (don't assume they'll read it here). Here's a link for that: http://www.apple.com/feedback/ibooks-author.html
    I've tried several methods of producing the PDF from iBA:
    Export > PDF > Best Quality
    Print > PDF
    Print > Save As Adobe PDF > High Quality Print (got an error on this one, saying Distiller wasn't properly installed)
    Print > Save As Postscript
    All of these methods (except the one that gave the error) produced fuzzy equations. I did find one method to produce crisp equations from iBA when exportint to PDF, and that is to not use the Insert MathType Equation command, and don't copy & paste from MathType into iBA -- use drag & drop. Problem with that method is that D&D produces an equation that in iBA is a floating equation that you'll have to place manually where you want it -- a huge pain.
    I've attached a screen shot of my sample PDF. You can see which equations were drag & drop and which were inserted via the menu, or pasted.

  • How do I imbed a MathType Equation in a sentence within a textbox?

    When I try to "insert MathType Equation" in a textbox it just randomly inserts it anywhere on the page instead of at the insertion point where I have the cursor setting when I click on "insert MathType Equation".  It works fine in Pages, but just does a random insert in Numbers.
    I am using Numbers '09 ver. 2.1  and MathType 6.7b

    Thanks a lot.
    I was a bit annoyed because, as I have no personal need for MathType, I just downloaded the demo some times ago to help an user which was annoyed because font size changes in MathType weren't reflected in his Pages documents. I built an AppleScript which did the trick.
    Alas, now my copy is running in demo mode so I wasn't fully sure that what I got was the behavior of the full version.
    Now I know that it is.
    As you saw in my messages, my responce was that I was accustomed to this kind of inconsistencies.
    Pages and Numbers are supposed to use the same tool for tables but in fact some features available in Numbers are missing in Pages tables.
    So it was difficult to guess if there is an oddity specific to Numbers or if we get the normal behavior (I failed to try to insert a formula in a box).
    It was also difficult to guess if the apps was unaware of its User Guide (which is sometimes the case) or if the User Guide was unaware of the true app design (which strike more often).
    May you have a quick look in the forums searching with the keyword MathType restricting the range to iWork during the two last months ?
    If I remember well some users encountered problem when they switched to Lion.
    I wrote "if I remember well" because I'm switching many timrs a day between 10.7 and 10.6.8 so that sometimes I'm not fully sure of what came to mind. I'm sure that some users got problems with EndNote and I have the impression that some of them had problems with MathType.
    Yvan KOENIG (VALLAURIS, France) vendredi 12 août 2011 19:10:36
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Mathtype Equation Align

    Hi All,
    I need advice from all of them reg. the alignment of MathType Equations.
    We have developed a javascript which will place all the equation in appropriate places.
    The script will search <<Eqn001.eps>> etc... and replace with appropriate image over there. Its working fine.
    Still there is manual intervention of aligning the equation. We are unable to Align the equation in place, we need to align it manually. Is there is any way to align it properly.
    I have downloaded the Demo version of "MT2InD_CS3_demo" from Adobe site. This Demo version is aligining the equation automatically and its perfect.
    We need advice how to align the equation.
    We are using Indesign CS2 in MAC OS.
    kavya

    MathMagic reads MathType equations including MathType EPS files.
    And MathMagic Pro comes with InDesign CSx plug-ins. MathMagic plug-ins have the ability to align the baseline of EPS equations automatically when inserted as inline graphics in a text box.
    There is also a dialog UI to adjust the baseline manually (up to in 1/1000 pt unit) if the automatic setting should be changed for some reasons.
    MathMagic Pro also offers other benefits such as duble-clicking to reedit the equation, and other productivity options.

  • Do MathType equations in Word import effectively into iBooks Author?

    I am looking for the best way to build MathType equations in Word to successfully import into iBooks Author.

    That seems like an extra step. Since iBooks Author (iBA) already has a "MathType Equation" command on its Insert menu, why not do it directly from iBA?
    If, however, you want to do it as you describe (or perhaps you have an existing Word document and you want to use its equations in iBA -- that makes sense), you'll need to build the equations in Word, then select the one you want (i.e., click on it once), copy it, then use the Insert > MathType Equation command in iBA. When MathType opens, paste the equation into the window. Close MathType and the equation will insert into iBA.
    Incidentally, WRT TX Aggie SE's suggestion to use the MS Word Equation Editor, I think you'll find that'll produce less than satisfactory results in iBA, no matter if you use the "old" equation editor, or the "new" one that was introduced in Word 2011.

  • I bought pages on the app store and have math type installed. However I am do not have the option to "Insert Mathtype Equations" either with right click or the drop down menus at the top of the screen.

    I bought pages on the app store and have math type installed. However I am do not have the option to "Insert > Mathtype Equations" either with right click or the drop down menus at the top of the screen. I also have OS Lion installed if this makes any difference. Please help!

    I assume but I can't check that MathType rely on the standard iWork applications location which isn't the one used by the mac App Store.
    Create a subfolder named iWork '09 in the Applications folder.
    Select the iwork applications which you own then drag them into the iWork '09 folder.
    You will be asked to type your password. Don't worry, it's normal.
    It's required because the System must store the infos describing the new location so that, if a new revision is delivered, mac App Store will be able to find the apps where they are.
    When this will be done, try to re-install MathType.
    I guess that this time it will behave flawlessly.
    Yvan KOENIG (VALLAURIS, France) mardi 13 septembre 2011 16:48:19
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • AICS3 .AI to .EPS problems

    Hi, All,
    AICS3. Simple logo: 2 lines of outline type, white fill, transparent background, saved in native .ai. Been using this in IDCS3 with no problems... until I print to Adobe PDF 8.0 to create a PDF small enough for web posting. Here, the top word in my logo disappears.
    Troubleshooting: I saved it as an .eps to see if this resolves it. Well, it appears this is where the problem lies, because when I place the .eps file in my IDCS3 doc, the top half of the logo is again missing.
    I then saved the .ai logo as a .pdf (from AI) and placed that in my IDCS3 doc, which worked, and exported OK. (Lucky PDF supports transparency...)
    But I want to resolve why the .ai file fails (the top line disappears) when the doc is printed to pdf from IDCS3, and why the same problem occurs when the .ai file is saved as .eps and placed in IDCS3.
    Help, anyone?

    Ozzwoman, YOU HAVE *SAVED* ME!! A THOUSAND THANKS!
    I never thought to go into Attributes, in fact I've never looked there. Interesting though how the .ai file overrode that.
    MY PROBLEM'S SOLVED, THANK YOU TO ALL OF YOU WHO CONTRIBUTE TO THE FORUM!
    A follow-up question:
    The line that was NOT showing up had Attributes > Overprint Fill CHECKED.
    The line that was OK had NOTHING selected in Attributes.
    So I UN-checked Overprint Fill and all's well. But doesn't "Overprint Fill" MEAN to overprint the fill of the object -- in my case white? So why wasn't it?

  • Adobe InDesign CS4 + Mathtype, ps2pdf conversion problem

    Dear All,
    We have typset the pages using the Adobe InDesign CS4 + MathType 6.0 using the Macintosh. We are facing the problem PS to PDF converion, the error message is:
    %%[ Error: typecheck; OffendingCommand: makefont ]%%
    Stack:
    [185.0 0.0 0.0 -185.0 0.0 0.0]
    -file-
    -mark-
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    The fonts were used on the Math is Euclid Symbol. Whereas, my deliverable product is application file, equations, images and PDF (which converted using their distiller setting). It would be great if any one can suggest how to overcome this problem!
    Thanks
    Gunasekaran

    I don't remember seeing this exact problem, but I've had numerous issues with Indesign CS4 / MathType. (Though it really blew up in CS5, which no longer recognizes the obliqued Symbol font used by MathType, and replaces it with a generic font). Design Science told me that their next update -- which is waiting on the next update to MS Word for Mac, originally due this fall -- would fix the problems, and I wish them much luck.
    First, I'd try Exporting to PDF rather than going through a PS file stage. It's generally more reliable.
    I'd also clean out the font caches from Indesign CS.
    If that doesn't work, examine your computer closely for different versions of the Symbol font. There's probably one in the system library from Apple, one or two in your User library (like the Truetype and Postscript versions that came with MathType), maybe one a gift from Microsoft, and probably one in the Adobe applications folders as well. Unfortunately, they're all slightly different. Conflicts between these may be causing your trouble. Delete or remove all but one, and see if your applications still run -- you probably want to open and save each equation from MathType using the "new" font, then update links in Indesign after each change, so working on a test document with one equation would be best. If one font works, stick with that one.
    I'm sincerely hoping that in the next version of MathType we'll be able to use OpenType fonts for the Greek characters -- Symbol has gotten pretty buggy over the years.

  • Extracting Images from EPS - Problem with the Output

    Hello,
    I got a big problem extracting images from an EPS, which has been made in InDesign. The image does not appear correct.
    Source code:
    %ALDImageFileName: Speicher:image.jpg
    %ALDImageDimensions: 30 30
    %ALDImageCropRect: 0 0 30 30
    %ALDImageCropFixed: 0 0 30 30
    %ALDImagePosition: 203.8677 344.8913 203.8677 359.2913 218.2677 359.2913 218.2677 344.8913
    %ALDImageType: 4 8
    %%BeginObject: image
    [14.4 0 0 14.4 203.868 344.891 ]ct
    snap_to_device
    Adobe_AGM_Image/AGMIMG_fl cf /ASCII85Decode fl /RunLengthDecode filter ddf
    <<
    /T 1
    /W 30
    /H 30
    /M[30 0 0 -30 0 30 ]
    /BC 8
    /D[0 1 0 1 0 1 0 1 ]
    /DS [
    [AGMIMG_fl 30 string /rs cvx /pop cvx] cvx
    [AGMIMG_fl 30 string /rs cvx /pop cvx] cvx
    [AGMIMG_fl 30 string /rs c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;"9oSU%0>nt$NV(q!rr<%"YC_q"7Z@"!<<+Eq@Wc/!#,C9"9&;k!!E?)
    D;u0+!!<qtS-&0["T\T'$5EXA!!33:%da5t!<<]/!!3u<!V$-o!<<*#!FZ$-!!A;d!!2ipq#CKu!<?7$
    !!WK)KEM8T"RZ6i$2so,!<<Q0li77k!!30$!<</h!!!'!!!E<'!!!&c!"8o/!!*'#"98E'!WW;h!!!'!
    !!NB'!<<*#n,N[o!<<*#!!!'!!!!&f!!E<&!!*-"!!!'!!!**%o)K!s!!*-$!<<*#!!<-"!Wi?&l2Ueb
    rVup!q#Gp~>
    %%EndBinary
    %%EndObject
    Orginal image Size 553,9 KB
    After decoding the size is only 1,8 KB
    First try.
    public class ASCII85Decode {
    private ByteBuffer buf;
    * initialize the decoder with byte buffer in ASCII85 format
    private ASCII85Decode(ByteBuffer buf) {
    this.buf = buf;
    * get the next character from the input.
    * @return the next character, or -1 if at end of stream
    private int nextChar() {
    // skip whitespace
    // returns next character, or -1 if end of stream
    while (buf.remaining() > 0) {
    char c = (char) buf.get();
    if (!isWhiteSpace(c)) {
    return c;
    // EOF reached
    return -1;
    public static boolean isWhiteSpace(int c) {
    return (c == ' ' || c == '\t' || c == '\r' || c == '\n'
    || c == 0 || c == 12);
    // 0=nul, 12=ff
    * decode the next five ASCII85 characters into up to four decoded
    * bytes.  Return false when finished, or true otherwise.
    * @param baos the ByteArrayOutputStream to write output to, set to the
    *        correct position
    * @return false when finished, or true otherwise.
    private boolean decode5(ByteArrayOutputStream baos)
    throws PDFParseException {
    // stream ends in ~>
    int[] five = new int[5];
    int i;
    for (i = 0; i < 5; i++) {
    five[i] = nextChar();
    if (five[i] == '~') {
    if (nextChar() == '>') {
    break;
    } else {
    throw new PDFParseException(
    "Bad character in ASCII85Decode: not ~>");
    } else if (five[i] >= '!' && five[i] <= 'u') {
    five[i] -= '!';
    } else if (five[i] == 'z') {
    if (i == 0) {
    five[i] = 0;
    i = 4;
    } else {
    throw new PDFParseException(
    "Inappropriate 'z' in ASCII85Decode");
    } else {
    throw new PDFParseException(
    "Bad character in ASCII85Decode: " + five[i]
    + " (" + (char) five[i] + ")");
    if (i > 0) {
    i -= 1;
    int value = five[0] * 85 * 85 * 85 * 85 + five[1] * 85 * 85
    * 85 + five[2] * 85 * 85 + five[3] * 85 + five[4];
    for (int j = 0; j < i; j++) {
    int shift = 8 * (3 - j);
    baos.write((byte) ((value >> shift) & 0xff));
    return (i == 4);
    * decode the bytes
    * @return the decoded bytes
    private ByteBuffer decode() throws PDFParseException {
    // start from the beginning of the data
    buf.rewind();
    // allocate the output buffer
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    // decode the bytes
    while (decode5(baos)) {
    return ByteBuffer.wrap(baos.toByteArray());
    * decode an array of bytes in ASCII85 format.
    * <p>
    * In ASCII85 format, every 5 characters represents 4 decoded
    * bytes in base 85.  The entire stream can contain whitespace,
    * and ends in the characters '~&gt;'.
    * @param buf the encoded ASCII85 characters in a byte buffer
    * @param params parameters to the decoder (ignored)
    * @return the decoded bytes
    public static ByteBuffer decode(ByteBuffer buf)
    throws PDFParseException {
    ASCII85Decode me = new ASCII85Decode(buf);
    return me.decode();
    2. Try
    public class Ascii85Decode {
    private final FileOutputStream fos;
    private Ascii85Decode() throws FileNotFoundException {
    File f = new File("/home/markus/1/test/bild.jpg");
    fos = new FileOutputStream(f);
    @Override
    protected void finalize() throws Throwable {
    fos.close();
    super.finalize();
    public static byte[] decode(byte[] in) throws FileNotFoundException, IOException {
    Ascii85Decode ascii85Decode = new Ascii85Decode();
    ascii85Decode.setData(in);
    ascii85Decode.decode85();
    return null;
    static long pow85[] = {85 * 85 * 85 * 85, 85 * 85 * 85, 85 * 85, 85, 1};
    private byte[] in;
    private void setData(byte[] in) {
    this.in = in;
    void wput(long tuple, int bytes) throws IOException {
    switch (bytes) {
    case 4:
    putchar((int) (tuple >> 24));
    putchar((int) (tuple >> 16));
    putchar((int) (tuple >> 8));
    putchar((int) tuple);
    break;
    case 3:
    putchar((int) (tuple >> 24));
    putchar((int) (tuple >> 16));
    putchar((int) (tuple >> 8));
    break;
    case 2:
    putchar((int) (tuple >> 24));
    putchar((int) (tuple >> 16));
    break;
    case 1:
    putchar((int) (tuple >> 24));
    break;
    void decode85() throws IOException {
    long tuple = 0;
    int c, count = 0;
    int i=0;
    for (;;) {
    switch (c = in[i]) {
    default:
    if (c < '!' || c > 'u') {
    System.err.println("%s: bad character in ascii85 region: %#o\n");
    System.exit(1);
    tuple += (c - '!') * pow85[count++];
    if (count == 5) {
    wput(tuple, 4);
    count = 0;
    tuple = 0;
    break;
    case 'z':
    if (count != 0) {
    System.err.println("%s: z inside ascii85 5-tuple\n");
    System.exit(1);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    break;
    case '~':
    if (in[i+1] == '>') {
    if (count > 0) {
    count--;
    tuple += pow85[count];
    wput(tuple, count);
    c = in[i+1];
    return;
    System.err.println("%s: ~ without > in ascii85 section\n");
    System.exit(1);
    case '\n':
    case '\r':
    case '\t':
    case ' ':
    case '\0':
    case '\f':
    case '\b':
    case 0177:
    break;
    i++;
    private void putchar(int l) throws IOException {
    //System.out.write(l);
    fos.write(l);
    Does anybody have an idea to solve the problem?

    A scan from string function can be used as per the attachment. The double \ ('\\') is in the format string in order to interpret the '\' characters in your input string as literal characters and not special formatting.
    Message Edited by Dennis Knutson on 07-10-2006 03:53 PM
    Attachments:
    Scan From String.JPG ‏5 KB

  • CS4 EPS PROBLEMS FROM ILUSTRATOR TO InDesign

    Hi,
    Original illustrator file, simple line, looks good in .ai   Also looks good as an .eps in Illustrator. When brought into CS4 InDesign we see very fine, faint
    bitmapped negative lines - - as if the .eps was not fully drawn.
    We have remedied this by stumbling upon using a TIFF. The TIFF appears complete.
    Is there some transfer problem with Illustrator .eps to InDesign, and how may we remedy?
    Tom Smid
    708-707-4173

    Sometimes I feel like a broken record. Or a parrot, umm… oh yeah I am a parrot.
    Did you try Overprint Preview in InDesign? AAWWK!!!

  • Placing Illustrator EPS Problem

    I am trying to import an 6.875 x 10.5 inch document created in Illustrator CS6, saved as an eps, into Indesign CS6. Here is the problem:
    The file is lettering for a comic book, so the lettering is randomly occuring on the page. It doesn't spread to the borders of the
    of the 6.875 x 10.5 inch page. When I go to place it into Indesign, it comes in cropped to the dimensions of where the actual
    lettering fitted on the illustrator page. (for example, if I just had once caption box with text in the middle of the page that was
    1x5 inches, the imported eps document will come in as a 1x5 inch eps file.)  The problem here is that I can't center it properly
    without having to adjust each imported eps and line it up with the page. This is rather diffucult because it has to line up precisely.
    I remember this being a problem in CS4 also, but I came to a solution and can't remember what it was.
    So my question is, How do I get Indesign to recognize the Illustrator eps as a 6.875 x 10.5 inch document that I can just center
    using the align tools? Not sure if it is something in illustrator I need to do.
    Any help is greatly appreciated.  Thanks!

    One other thing. I used to be able to drag the file from "finder" on my mac, directly onto the ID document. It would then automatically place it there. Now when I do, there is the small preview box that comes up. I then have to double click to get the file to come in. Then it just crops it to the "artwork only", not the actually entire crop area. To top it off, once I get the file in, regardless of how, I can't use the align tools to get the file centered. This is really making my workflow counter productive. To have to "cnt + d" instead of just dragging and dropping the files and then using align tools to get everything centered is going to make putting a 200 page book a very long process. I have to be missing something here. I can't believe that these simple things would be removed from ID in the latest version.  Basically my work flow is this. Create an ID document and then drag and drop the "tiff" files of the art on one layer. Then doing to the same with the lettered eps files. The reason I don't just use the illustrator file is because when I save an Illustrator file that I simply add lettering on top of the artwork, it makes a 15mb piece of tiff artwork with the illustrator lettering into a 30mb file (if not larger). So I have to remove the art and then save it as an artless file, with just the lettering. I'd be more than happy to hear if anybody has a better way to do this. Illustrator is bloating my files. Once I separate the art and the lettering only files, I am working with the 15mb art and then 350kb eps file of the artwork, instead of working with a 30 plus mb Illustrator file. That starts to seriously make the file size of a 200 page book go up. Thanks

  • MathType Square root problem

    Hello, I work with MathType on mac (indesign CS6), this is fine except that the square root sign is not quite the same on Mac as on PC. Are there any settings that can change this so that it becomes equally. top line of the character becomes higher on mac.

    Already answered in another thread: http://forums.adobe.com/message/6007079

Maybe you are looking for