Thursday, January 27, 2022

For the TeX world: An old story

We live in a time when it is difficult to send TeX source through email except as an attachment. That poses a dilemma for writing to a list that does not accept attachments. Fortunately, for the discussion I have in mind, the list does accept URLs. The blog here offers an opportunity for me to post TeX source using HTML's pre.

This example relates to a discussion about the handling of accented characters with xetex. It should run through xetex on any platform equipped with the Latin Modern Roman opentype font that in recent years has been distributed with TeXLive. It is UTF-8 encoded text. One thing that will be noticed on close observation is that, in the paragraph added to DEK's story.tex, the first appearance of the character é is U+00E9 while the second appearance is entered by following an e with U+0301, the combining acute accent.

\font\lmr="Latin Modern Roman"
\lmr
\hrule
\vskip 1in
\centerline{\bf A SHORT STORY}
\vskip 6pt
\centerline{\sl    by A. U. Thor}
\vskip .5cm
Once upon a time, in a distant
  galaxy called Ööç,
there lived a computer
named R.~J. Drofnats.

Mr.~Drofnats---or ``R. J.,'' as
he preferred to be called---
was happiest when he was at work
typesetting beautiful documents.

He was only able to do this while drawing an annual
salary of €100,000 because of the generosity
of his employer, the Université de Léland.

\vskip 1in
\hrule
\vfill
\bye

No comments:

Post a Comment