=================================================================== RCS file: /home/cvs/OpenXM/src/cfep/MyDocument.m,v retrieving revision 1.5 retrieving revision 1.7 diff -u -p -r1.5 -r1.7 --- OpenXM/src/cfep/MyDocument.m 2006/03/10 11:48:01 1.5 +++ OpenXM/src/cfep/MyDocument.m 2007/09/29 05:49:23 1.7 @@ -276,7 +276,6 @@ static NSMenuItem *menuItemPrettyPrint = nil; // pret cmd0 = [self getContentsOfInputCell]; [self prepareOutputCell]; }else if (onlySelectedArea) { - [self outputBorderLine: [NSColor yellowColor]]; r = [textViewIn selectedRange]; // NSLog(@"r=(%d,%d)\n",r.location,r.length); cmd0 = [textViewIn string]; @@ -293,7 +292,13 @@ static NSMenuItem *menuItemPrettyPrint = nil; // pret [textViewIn replaceCharactersInRange: NSMakeRange(pos,0) withString: @"\n"]; } cmd0 = [cmd0 substringWithRange:r ]; - } + } + [self outputBorderLine: [NSColor magentaColor]]; + [self outputString: cmd0]; + if ([cmd0 length] > 0) { + if ([cmd0 characterAtIndex: ([cmd0 length]-1)] != 0xa) [self outputString: @"\n"]; + } + [self outputBorderLine: [NSColor yellowColor]]; }else{ cmd0 = [textViewIn string]; MyOutputWindowController *mc; @@ -1118,7 +1123,7 @@ int debugInbound = 0; // NSLog(@"%@",a); if ([[a objectAtIndex: 0] hasPrefix: @"notAvailable"]) { [self messageDialog: - NSLocalizedString(@"Typeset the output by TeX is not available. latex, dvips, and pstoimg must be installed.",nil) with: 0]; + NSLocalizedString(@"Typeset the output by TeX is not available. latex and dvipng must be installed.",nil) with: 0]; prettyPrint = 1; [self setPrettyPrint: nil]; return; } else if ([[a objectAtIndex: 0] compare: @"showFile"] == NSOrderedSame) {