Re: [XeTeX] Generating a PDF which is cropped to the bounding box?
Am Sat, 29 Jan 2011 19:57:45 +0100 schrieb Adam Twardoch (List): > Jonathan etc., > > I have a simple XeTeX script that produces one line of text. The line > (or the artwork, in general) has a certain bounding box. I'd like to > generate a PDF that is cropped exactly to the size of that artwork. Can > I do this directly in XeTeX? If not, is there any way to do it directly > using ghostscript? You could try preview: \documentclass{article} \usepackage[active,xetex,tightpage]{preview} \begin{document} \begin{preview} blub \end{preview} \end{document} -- Ulrike Fischer -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] How can I use IEEEtran class with XeLaTeX?
On 2011-01-31 13:52, Shrisha Rao wrote: > El ene 31, 2011, a las 4:02 a.m., Ross Moore escribió: > >> The IEEE class file is not aware of the existence of XeTeX. > > The class file is inanimate, it could be changed, but more to the point, I > don't think the editorial staff who prepare IEEE Transactions with > post-acceptance papers are aware/accepting of it. Not to badmouth the IEEE, > which is a fine professional society, but my experience with mainstream > journals in general is that their staffs are generally not very receptive to > XeTeX and other new-fangled tools. One could get away with using XeTeX with > IEEE or other *conference* papers where only a final properly formatted PDF > is required for the proceedings, but anytime a source file has to be > supplied, using its features will only slow down the production process and > delay the appearance of your paper. Nevertheless, keeping up promoting XeTeX at IEEE Transactions might in the long term turn out to be fruitful. > Regards, > > Shrisha Rao > > > > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] How can I use IEEEtran class with XeLaTeX?
El ene 31, 2011, a las 4:02 a.m., Ross Moore escribió: > The IEEE class file is not aware of the existence of XeTeX. The class file is inanimate, it could be changed, but more to the point, I don't think the editorial staff who prepare IEEE Transactions with post-acceptance papers are aware/accepting of it. Not to badmouth the IEEE, which is a fine professional society, but my experience with mainstream journals in general is that their staffs are generally not very receptive to XeTeX and other new-fangled tools. One could get away with using XeTeX with IEEE or other *conference* papers where only a final properly formatted PDF is required for the proceedings, but anytime a source file has to be supplied, using its features will only slow down the production process and delay the appearance of your paper. Regards, Shrisha Rao -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] xdv2pdf vs xdvipdfmx
Hello Will, On Sat, 29 Jan 2011 20:30:16 +1030 Will Robertson wrote: ... > > (Starting with 10.5, Mac OS X provides a font-from-file function. > > A test code does work under my 10.6.) > > How does this work? Can you show an example? Yes, see below. Disclamer: it is my first experience in Mac OS X programming, and I did not care to release resources. Use: 1) $ ./PdfHelloWorldEffects File "hello.pdf" contains "hello", font Times-roman, blue color. 2) $ ./PdfHelloWorldEffects punknova-regular.otf Font "punknova-regular.otf", blue color 3) $ ./PdfHelloWorldEffects punknova-regular.otf /System/Library/Filters/Black \ \&\ White.qfilter Font "punknova-regular.otf", black color due to application of Quartz Filter "Black & White". / --- cut here --- #include #include #include #import extern bool CGFontGetGlyphsForUnichars(CGFontRef, UniChar[], CGGlyph[], size_t); int main (int argc, const char * argv[]) { CFURLRef url = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, CFSTR("hello.pdf"), kCFURLPOSIXPathStyle, FALSE); const CGRect mediaRect = CGRectMake(0, 0, 100, 100); CGContextRef pdfContext = CGPDFContextCreateWithURL(url, &mediaRect, NULL); CGContextBeginPage (pdfContext, &mediaRect); // // Set color // CGColorRef color = CGColorCreateGenericRGB(0., 0., 1., 1.); CGContextSetFillColorWithColor(pdfContext, color); CGContextSetStrokeColorWithColor(pdfContext, color); // // Select and set font // CGFontRef font; if (argc < 2) { font = CGFontCreateWithFontName(CFSTR("Times-Roman")); } else { CGDataProviderRef fontDataProvider = CGDataProviderCreateWithFilename (argv[1]); font = CGFontCreateWithDataProvider(fontDataProvider); CGDataProviderRelease(fontDataProvider); } CGContextSetFont(pdfContext, font); CGContextSetFontSize(pdfContext, 24); // // Apply a quartz filter // if (argc > 2) { NSString *qfilter = [[NSString alloc] initWithUTF8String:argv[2]]; NSURL *url = [NSURL fileURLWithPath:qfilter]; QuartzFilter *qf = [QuartzFilter quartzFilterWithURL:url]; [qf applyToContext:pdfContext]; } // // Print "hello" // CGGlyph glyphs[5]; UniChar hello[] = {'H', 'e', 'l', 'l', 'o'}; CGFontGetGlyphsForUnichars(font, hello, glyphs, 5); CGContextShowGlyphsAtPoint(pdfContext, 10, 50, glyphs, 5); CGContextEndPage(pdfContext); CGContextRelease(pdfContext); CFRelease(url); return 0; } / --- cut here --- > > Best wishes, > Will > > > > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > -- Oleg Parashchenko olpa@ http://uucode.com/ http://uucode.com/blog/ XML, TeX, Python, Mac, Chess -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex