Difference between revisions of "XeTeX - Old Content"

From Wiki
Jump to navigation Jump to search
m (Reverted edit of, changed back to last version by Mojca Miklavec)
Line 99: Line 99:
Excuse for my post but I do not have money to buy meal to my children. Forgive me please.
[http://hrentut.org/hotels/hotels-around-luzerne.html hotels around luzerne]
[http://hrentut.org/girls/girls-kissing-each-other-girls-kissing.html girls kissing each other girls kissing]
[http://hrentut.org/hotels/travelling-with-children-luxury-5-star-hotels.html travelling with children luxury 5 star hotels]
[http://hrentut.org/game/online-animal-training-game.html online animal training game]
[http://hrentut.org/jobs/graphic-design--jobs.html graphic design  jobs]
[http://hrentut.org/sex/sex-help-.html sex help ]
[http://hrentut.org/girl/camp-wompenauki-girl-scout-camp.html camp wompenauki girl scout camp]
[http://hrentut.org/car/rc-car-accessory.html rc car accessory]
[http://hrentut.org/gay/flirt-gay-psychology.html flirt gay psychology]
[http://hrentut.org/home/asda-home-delivery.html asda home delivery]
[http://hrentut.org/game/power-zero-sum-game.html power zero sum game]
[http://hrentut.org/girl/girl-on-guy-porn.html girl on guy porn]
[http://hrentut.org/girls/horny-amature-girls.html horny amature girls]
[http://hrentut.org/auto/auto-parts-search-salvage.html auto parts search salvage]
[http://hrentut.org/girls/dumb-girls-pink.html dumb girls pink]
[http://hrentut.org/music/music-in-1945.html music in 1945]
[http://hrentut.org/game/ppc-game-review.html ppc game review]
[http://hrentut.org/jobs/us-customs-jobs.html us customs jobs]
[http://hrentut.org/girl/16-year-old-cold-nipple-girl.html 16 year old cold nipple girl]
[http://hrentut.org/jobs/countryside-jobs.html countryside jobs]
[http://hrentut.org/car/car-rental-in-sydney.html car rental in sydney]
[http://hrentut.org/girl/photo-girl-duke-rape.html photo girl duke rape]
[http://hrentut.org/home/bodybuilding-home-gym-equipment.html bodybuilding home gym equipment]
[http://hrentut.org/hotels/hotels-at-half-price-entertainment-program.html hotels at half price entertainment program]
[http://hrentut.org/game/praetorian-game-auxillary-infrantry.html praetorian game auxillary infrantry]
[http://hrentut.org/games/creativity-and-the-brain-games.html creativity and the brain games]
[http://hrentut.org/game/praetorian-game-auxillary.html praetorian game auxillary]
[http://hrentut.org/sex/my-first-sex-teacher-mrs--austin.html my first sex teacher mrs  austin]
[http://hrentut.org/sex/sex-melbourne.html sex melbourne]
[http://hrentut.org/home/truck-drivers-home-pages.html truck drivers home pages]
[http://hrentut.org/jobs/us-postal-jobs-official-460-rural-carrier-associate.html us postal jobs official 460 rural carrier associate]
[http://hrentut.org/car/custom-wheels-car-rim.html custom wheels car rim]
[http://hrentut.org/music/annoying-music-at-department-stores.html annoying music at department stores]
[http://hrentut.org/sex/free-extreme-and-homo-sex.html free extreme and homo sex]
[http://hrentut.org/game/preparing-game-to-eat-australia.html preparing game to eat australia]
[http://hrentut.org/music/music-from-the-disney-channel-show-hanna-montana.html music from the disney channel show hanna montana]
[http://hrentut.org/game/preparing-to-be-a-game-designer.html preparing to be a game designer]
[http://hrentut.org/auto/auto-sales--rostraver.html auto sales  rostraver]
[http://hrentut.org/sex/girl-on-girl-lesbian-sex.html girl on girl lesbian sex]
[http://hrentut.org/game/preschool-game-ideas.html preschool game ideas]
[http://hrentut.org/game/preschool-online-game.html preschool online game]
[http://hrentut.org/music/classical-music-composers.html classical music composers]
[http://hrentut.org/air/air-and-transport-association.html air and transport association]
[http://hrentut.org/music/music-education-band.html music education band]
[http://hrentut.org/game/www-pa-game-commisson.html www pa game commisson]
[http://hrentut.org/jobs/baseball-coach-jobs.html baseball coach jobs]
[http://hrentut.org/html/http---securitylabs-mohurna-be-cciesecuritylabequipment-html.html http  securitylabs mohurna be cciesecuritylabequipment html]
[http://hrentut.org/game/free-online-pc-game-demos.html free online pc game demos]
[http://hrentut.org/dog/yellow-dog-collars--bananas.html yellow dog collars  bananas]
[http://hrentut.org/girl/ohh-girl-i-d-be-in-trouble-if-you-left-me-now--cuz-i-dunno-where-to-look-for-love-and-i-just-don-t-know-how.html ohh girl i d be in trouble if you left me now  cuz i dunno where to look for love and i just don t know how]
[http://hrentut.org/games/harry-potter-games-on-scholastic.html harry potter games on scholastic]
[http://hrentut.org/dog/best-guardian-dog-breeds.html best guardian dog breeds]
[http://hrentut.org/game/prices-of-racing-car-machine-game.html prices of racing car machine game]
[http://hrentut.org/cheats/hobbit-cheats.html hobbit cheats]
[http://hrentut.org/hotels/hotels-in-bologna-italy.html hotels in bologna italy]
[http://hrentut.org/music/yamaha-home-page---music.html yamaha home page  music]
[http://hrentut.org/music/music-by-attention-deficit-disorder.html music by attention deficit disorder]
[http://hrentut.org/home/home-owner-loan-refinance-consolidate.html home owner loan refinance consolidate]
[http://hrentut.org/music/music-internet-database.html music internet database]
[http://hrentut.org/furniture/eddie-bauer-furniture-leather.html eddie bauer furniture leather]
[http://hrentut.org/dog/dog-terrier.html dog terrier]
[http://hrentut.org/sex/pure-sex-movies.html pure sex movies]
[http://hrentut.org/game/princess-maker-3-game-download.html princess maker 3 game download]
[http://hrentut.org/gay/twink-gay-fuck.html twink gay fuck]
[http://hrentut.org/game/print-checkers-game.html print checkers game]
[http://hrentut.org/car/car-control-dale-earnhardt-radio.html car control dale earnhardt radio]
[http://hrentut.org/games/fashion-games.html fashion games]
[http://hrentut.org/games/download-music-artist-program-songs-mp3s-listen-free-games-top.html download music artist program songs mp3s listen free games top]
[http://hrentut.org/air/cheap-air-fare-ex-hkg.html cheap air fare ex hkg]
[http://hrentut.org/gay/gay-monster-cock.html gay monster cock]
[http://hrentut.org/music/music-lyrics-for-dj-ztrip.html music lyrics for dj ztrip]
[http://hrentut.org/girl/girl-a-little-bit-chubby-bakini.html girl a little bit chubby bakini]
[http://hrentut.org/game/pro-bass-fishing-game.html pro bass fishing game]
[http://hrentut.org/auto/grand-theft-auto-vice-city-codes.html grand theft auto vice city codes]
[http://hrentut.org/dogs/all-breads-of-dogs.html all breads of dogs]
[http://hrentut.org/sex/prono-sex.html prono sex]
[http://hrentut.org/home/home-nude-movies.html home nude movies]
[http://hrentut.org/music/north-melbourne-music-studio.html north melbourne music studio]
[http://hrentut.org/sex/sex-chubby-lady.html sex chubby lady]
[http://hrentut.org/games/youth-group-games.html youth group games]
[http://hrentut.org/girls/girls-sex-wall-papers.html girls sex wall papers]
[http://hrentut.org/dog/information-on-dog-colds.html information on dog colds]
[http://hrentut.org/football/cool-football-names.html cool football names]
[http://hrentut.org/estate/cambria-california-real-estate.html cambria california real estate]
[http://hrentut.org/music/lisbon-bela-vista-park-music-may.html lisbon bela vista park music may]
[http://hrentut.org/dog/dog-in-hebrew.html dog in hebrew]
[http://hrentut.org/home/home-theater-powered-subwoofers.html home theater powered subwoofers]
[http://hrentut.org/dogs/can-dogs-get-sunburned.html can dogs get sunburned]
[http://hrentut.org/job/preservation-job.html preservation job]
[http://hrentut.org/home/aurora-home-builders.html aurora home builders]
[http://hrentut.org/dog/dog-and-girl-fuck-stories.html dog and girl fuck stories]
[http://hrentut.org/furniture/furniture-deseni.html furniture deseni]
[http://hrentut.org/sex/free-hard-core-magazines-on-sex.html free hard core magazines on sex]
[http://hrentut.org/game/ps1-game-download.html ps1 game download]
[http://hrentut.org/air/air-jordan-xiii.html air jordan xiii]
[http://hrentut.org/girl/words-for-hollaback-girl.html words for hollaback girl]
[http://hrentut.org/estate/blue-ridge-real-estate-texas-womble.html blue ridge real estate texas womble]
[http://hrentut.org/jobs/heatree-jobs.html heatree jobs]
[http://hrentut.org/job/summer-job-selling-democracy.html summer job selling democracy]
[http://hrentut.org/sex/mom-and-daughter-having-sex.html mom and daughter having sex]
[http://hrentut.org/game/ps2-24-the-game-walkthrough.html ps2 24 the game walkthrough]
[http://hrentut.org/girls/reaming-girls.html reaming girls]
[http://hrentut.org/home/home-loans-uk.html home loans uk]
[http://hrentut.org/dog/dog-non-petite-siezure.html dog non petite siezure]
[http://hrentut.org/car/cdi-small-car.html cdi small car]
[http://hrentut.org/cheats/cheats-for-red-faction-on-pc.html cheats for red faction on pc]
[http://hrentut.org/game/ps2-dowloadable-game-covers.html ps2 dowloadable game covers]
[http://hrentut.org/girl/a-list-of-french-girl-names.html a list of french girl names]
[http://hrentut.org/air/mechanism-of-a-air-ratchet.html mechanism of a air ratchet]
[http://hrentut.org/game/galactic-civilizations-ii--dreadlords-pc-game-strategy-first.html galactic civilizations ii  dreadlords pc game strategy first]
[http://hrentut.org/gay/tom-cruise-gay-.html tom cruise gay ]
[http://hrentut.org/game/ps2-game-back-up.html ps2 game back up]
[http://hrentut.org/car/car-number-plates.html car number plates]
[http://hrentut.org/sex/private-sex-thumbs.html private sex thumbs]
[http://hrentut.org/sex/sex-offenders-and-statistics.html sex offenders and statistics]
[http://hrentut.org/girls/do-girls-like-sucking-dick.html do girls like sucking dick]
[http://hrentut.org/game/king-kong-xbox-game-controls.html king kong xbox game controls]
[http://hrentut.org/game/ps2-game-cheats-for-sims-2.html ps2 game cheats for sims 2]
[http://hrentut.org/college/laguardia-community-college-jobs.html laguardia community college jobs]
[http://hrentut.org/car/car-leasing.html car leasing]
[http://hrentut.org/game/ps2-game-cheats.html ps2 game cheats]
[http://hrentut.org/game/first-vidio-game-on-the-market.html first vidio game on the market]
[http://hrentut.org/girls/nude-asian-girls-porno.html nude asian girls porno]
[http://hrentut.org/cheats/computer-cheats-notgame.html computer cheats notgame]
[http://hrentut.org/games/creating-racing-games-web-3d.html creating racing games web 3d]
[http://hrentut.org/job/eye-contact-blow-job.html eye contact blow job]
[http://hrentut.org/game/ps2-game-copy.html ps2 game copy]
[http://hrentut.org/html/http---compaqdesktop-onene-be-compqadesktop-html.html http  compaqdesktop onene be compqadesktop html]
[http://hrentut.org/sex/sex-and-porn.html sex and porn]
[http://hrentut.org/game/ps2-game-covers.html ps2 game covers]
[http://hrentut.org/auto/high-risk-used-auto-loans.html high risk used auto loans]
[http://hrentut.org/dog/central-indiana-pug-dog-club.html central indiana pug dog club]
[http://hrentut.org/job/australian-online-job-search.html australian online job search]
[http://hrentut.org/furniture/nicholas-furniture.html nicholas furniture]
[http://hrentut.org/car/buying-a-second-hand-spanish-car.html buying a second hand spanish car]
[http://hrentut.org/girls/booty-girls-in-thongs.html booty girls in thongs]
[http://hrentut.org/game/pa-game-commision.html pa game commision]
[http://hrentut.org/auto/auto-hitches.html auto hitches]
[http://hrentut.org/game/ps2-game-patch.html ps2 game patch]
[http://hrentut.org/game/ps2-game-posters.html ps2 game posters]
[http://hrentut.org/home/finding-a-home-buyer.html finding a home buyer]
[http://hrentut.org/air/9th-street-open-air-market.html 9th street open air market]
[http://hrentut.org/game/ps2-game-releases.html ps2 game releases]
[http://hrentut.org/adult/indian-adult-site-passwords.html indian adult site passwords]
[http://hrentut.org/game/ps2-game-reviews-fps.html ps2 game reviews fps]
[http://hrentut.org/furniture/hillsdale-furniture.html hillsdale furniture]
[http://hrentut.org/html/http---daytonabeach-loadesc-be-condoindaytonabeach-html.html http  daytonabeach loadesc be condoindaytonabeach html]
[http://hrentut.org/game/ps2-game-two-player.html ps2 game two player]
[http://hrentut.org/gay/gay-pissing-movies.html gay pissing movies]
[http://hrentut.org/adult/blue-zebra--adult-entertainment.html blue zebra  adult entertainment]

Revision as of 06:55, 23 May 2006

< Alternative TeX Processors | Fonts in XeTeX | Encodings and Regimes in XeTeX >

XeTeX is a new TeX engine by Jonathan Kew and SIL International, which combines eTeX with pervasive Unicode support and advanced font support (multiple language, special AAT and OpenType font features, trivial font installation). It does this by leveraging Apple Advanced Typography support on MacOSX, so it gains its strength in features by sacrificing TeX's usual cross-platformness, and some backwards compatibility.

XeTeX and ConTeXt

XeTeX is a potential replacement for pdfeTeX in the ConTeXt workflow. It does not support all of the fancy PDF features found with pdfeTeX, but it supports most core features (see Features and Limitations on this page). Common consensus is that for text with non-heavy mathematics needs, XeTeX should be an interesting alternative.

(N.B.: The instructions described on this and other pages apply only to texexec versions 5.2.3 and up, and ConTeXt 2004.11.23 or later, which seems to correspond with TeXLive 2004.)

Installing XeTeX

The best and easiest way of installing XeTeX on MacOSX is by using Gerben Wierda's i-Installer. After that, there is currently (1 December 2004) one configuration file change that you are likely to need. (If you don't find the configuration line that follows, just jump to Basic Installation on this page!)

XeTeX currently doesn't accept or ignore the -translate-file option that Hans has chosen as a default for normal ConTeXt operation. I haven't figured out how to run different "profiles" or configurations within my current installation, so I just edited the following lines in /usr/local/teTeX/share/texmf.local/context/config/texexec.ini (or wherever texexec finds its configuration file) from:

for  tetex  set  TeXPassString  to -progname=context --default-translate-file=cp8bit
for  tetex  set  TeXVirginFlag  to -ini -translate-file=natural.tcx


for  tetex  set  TeXPassString  to -progname=context % and perhaps -shell-escape
for  tetex  set  TeXVirginFlag  to -ini 

(In other words, cut out the -translate-file-like options from the tetex set of parameters. Your actual settings may vary!)

I believe that's all that's necessary to change from the default or commonly recommended settings. I run ConTeXt with both pdfetex and XeTeX under this configuration, and it seems to work well enough (except for a minor warning in pdfTeX).

Basic Installation

After XeTeX being installed and ConTeXt being updated, you should make a format with texexec:

For XeTeX 0.9(and after), you need to check that syst-xtx.tex(/texmf.local/tex/context/base/) contained the following lines:

\ifx\scratchread\undefined \newread\scratchread \fi

\immediate\openin\scratchread=unicode-letters.tex \ifeof\scratchread
 \immediate\openin\scratchread=xplain.tex \ifeof\scratchread
   % no initialization file
   \input xplain.tex
 \input unicode-letters.tex

Now, make a format.

texexec --make --xtx en

This will generate cont-en.xfmt, which will be used when running XeTeX and ConTeXt.

For XeTeX 0.9(and after), it will gernerate cont-en.fmt.

(If you receive permissions errors, then you may need to precede the above command with sudo:)

sudo texexec --make --xtx en

If you have later problems, make sure that the cont-en.xfmt file was placed in the correct directory for formats, typically /usr/local/teTeX/share/texmf.local/web2c/.

For For XeTeX 0.9(and after), create a folder xetex in the folder /usr/local/teTeX/share/texmf.local/web2c/, and put the created format cont-en.fmt in it.

Don't forget to texhash!

Running XeTeX

XeTeX is invoked with the --xtx switch in texexec. This loads the XeTeX-specific specials, typescripts and other commands, and actually runs ConTeXt within XeTeX. Technically, XeTeX is an eTeX-like processor, and outputs an .xdv file. After texexec's final XeTeX run, texexec runs xdv2pdf in order to create a PDF file.

texexec --xtx myfile.tex

For the normal ConTeXt file,

texexec --pdf myfile.tex

Document Encoding

XeTeX is able to handle UTF-8 or UTF-16 documents natively, without any interference or configuration from ConTeXt. If you do want ConTeXt to process UTF-8 characters specially, then you can activate it with \enableregime[utf]. Be aware that you are then limited by the named glyphs that exist in the unicode vector files (unic-0xx). However, it is generally desirable to enter UTF documents without any regime notated, and let XeTeX work its magic.

You don't have to encode documents in UTF, though. ConTeXt allows you to use the regime of your choice because of its use of named glyphs, so documents in latin-1 or even MacRoman encoding can be supported, given the proper \enableregime command. For characters out of reach of the given regime, you can use accents (like \'e) and/or named glyphs (\eacute).

Although XeTeX would prefer that you key in documents in full Unicode, with things like and in the place of --- and , respectively. This is not always so feasible, so it provides a mechanism for inserting these "TeXish" ligatures. In a font specification, you need to insert mapping=tex-text as one of the font features. This is already done for all existing typescripts in type-xtx, but you should be aware of this concern if designing your own documents.


From there, things proceed fairly normally. Fonts in XeTeX get their own page, as they introduce some new features. Here are some new features that might be of interest:

Unicode symbol sets 
While not exclusive to XeTeX, exactly, you get easy access to named Unicode Symbols. XeTeX-specific commands switch to Apple-supplied default fonts for these symbols.
Basic Bi-directional text 
ConTeXt support for this was ushered in with XeTeX, but is fundamentally an eTeX feature. There is tentative support for direction changing with \pardir TRT and TLT, emulating Omega/Aleph's commands. These should be seen as low-level commands, to be intgrated with language switching, for example. There is a bad feature interaction between this and specials (e.g., color) support.
Alternate script number conversions 
Hans introduced some clever machinery into the conversion macros, allowing one to efficiently define a conversion vector (\defineconversionvector) for script-specific numbers. Arabic and Persian are provided.
More Unicode 
In the process of preparing XeTeX support in ConTeXt, many more Unicode glyphs were named and introduced into ConTeXt, including some Greek, Cyrillic, and Vietnamese.
There are a number of typescripts defined to get a XeTeX user started.


(as of 26 November 2004)

Font metrics 
XeTeX 0.88 is not yet able to retrieve character-specific font metrics from Apple's type API, so measurements based on character-specific units may fail or be unreliable.
Grid typesetting 
many fonts on the Mac report larger vertical metrics than their font size. Because ConTeXt sets \lineskiplimit to zero, grid dimensions are limited by these intrinsic (and seemingly arbitrary) font characteristics. As a result, grid typesetting, with some fonts, won't work below approximately 1.25 times the font size. Hoefler Text seems to work on a 12/12 grid, however.
Paper size 
XeTeX 0.88 is not yet able to support multiple paper sizes. The way texexec is arranged locks one in to the default paper size. Support will improve when XeTeX addresses the issue. If you need another paper size, you can re-run xdv2pdf with a paper size of your choice from the command line:
xdv2pdf -p a5:landscape file.xdv

(Alternatively, you can use

texexec --xtx --passon=-papersize=a5:landscape file

or something similar. Christopher Creutzig)

Object reuse 
Currently, the XeTeX specials are unable to use ConTeXt's object (or faked object) support. As a result, repeated external figures may be included into the PDF several times, resulting in an increase in file sizes. This has not been tested.
XeTeX uses dvipdfmx's specials for references, bookmarks, and the like. ConTeXt uses some of these specials "out of spec", and may result in some strangeness in certain documents.
PDF Literals 
Because XeTeX relies on Apple's APIs to create PDFs, it is unable to take advantage of certain specials and other types of features that use native (literal) PDF commands.
Occasionally Explodes 
Once in a while, XeTeX will fall into an infinite loop. I'm not entirely sure what circumstances trigger it (probably an overfull box), but it can be stopped with killall xetex in a terminal window. This has now been traced to a setting in texmf.cnf, where extra_mem_bot.context or extra_mem_bot is set to a non-zero value. If you encounter the infinite loop, then check your texmf.cfg file(s) to eradicate this value. (fixed in 0.90+)
Hoefler Italic is too fancy 
Hoefler Italic has swashes enabled by default. This is actually a product of Apple's implementation of the font. If this is unsuitable for you, add the feature: Smart Swashes=!Line Final Swashes to the HoeflerItalic font synonym in type-xtx.