Dario Taraborelli : latex

home about

Revision [2136]

Most recent edit made on 2008-04-21 04:26:09 by DarTar

Additions:
Readability results not only from a good selection of typefaces, but also from a correct distribution of characters and whitespace per line. To attain this goal, most WYSIWYG word processors use relatively dumb justification/hyphenation procedures (i.e. algorithms that establish the position for line breaks by processing text line by line). LaTeX uses an advanced algorithm, based on seminal work by Donald Knuth and Michael F. Plass and enhanced by Frank Liang in 1983 for his PhD dissertation and, which considers paragraphs as `wholes´ in order to decide where to add line breaks [Thanks to Olaf 'Rhialto' Seibert for the correct attribution]. The algorithm uses language-specific patterns in order to decide the preferred position for hyphenation. The engine then selects line breaks so as to make paragraphs look as good as possible. Information that is taken into account for calculating optimal line breaks includes the number of consecutive lines ending with hyphens, word tightness on each line, the change of tightness between consecutive lines. Further development has enabled the LaTeX engine to allow certain characters to stick into the margin, thus generating an optically straight margin - i.e., a margin that looks straight without being geometrically so. LaTeX's hyphenation settings can be fine-tuned by expert users.


Deletions:
Legibility results not only from a good selection of typefaces, but also from a correct distribution of characters and whitespace per line. To attain this goal, most WYSIWYG word processors use relatively dumb justification/hyphenation procedures (i.e. algorithms that establish the position for line breaks by processing text line by line). LaTeX uses an advanced algorithm, based on seminal work by Donald Knuth and Michael F. Plass and enhanced by Frank Liang in 1983 for his PhD dissertation and, which considers paragraphs as `wholes´ in order to decide where to add line breaks [Thanks to Olaf 'Rhialto' Seibert for the correct attribution]. The algorithm uses language-specific patterns in order to decide the preferred position for hyphenation. The engine then selects line breaks so as to make paragraphs look as good as possible. Information that is taken into account for calculating optimal line breaks includes the number of consecutive lines ending with hyphens, word tightness on each line, the change of tightness between consecutive lines. Further development has enabled the LaTeX engine to allow certain characters to stick into the margin, thus generating an optically straight margin - i.e., a margin that looks straight without being geometrically so. LaTeX's hyphenation settings can be fine-tuned by expert users.




Revision [2133]

Edited on 2008-04-18 08:15:29 by DarTar

Additions:
XƎTeX gives the best results with expert fonts such as those based on OpenType technology but works with standard TrueType fonts as well. Zillions of expert fonts can be purchased online from digital foundries, but Mac OS comes bundled with a number of excellent fonts with expert features (e.g. Hoefler Text, Optima, Skia, Apple Chancery, Zapfino). More free OpenType fonts are available on the net. Check out for example the Gentium, Charis SIL and Doulos SIL fonts from SIL, Cardo by David J. Perry, the free fonts designed by Jos Buivenga (the creator of Fontin), or this amazing collection of professional quality fonts selected by Vitaly Friedman.


Deletions:
XƎTeX gives the best results with expert fonts such as those based on OpenType technology. Most of them can be purchased from digital foundries, but Mac OS comes bundled with a number of excellent fonts with expert features (e.g. Hoefler Text, Optima, Skia, Apple Chancery, Zapfino). More free OpenType fonts are available on the net. Check out for example the Gentium, Charis SIL and Doulos SIL fonts from SIL, Cardo by David J. Perry, the free fonts designed by Jos Buivenga (the creator of Fontin), or this amazing collection of professional quality fonts selected by Vitaly Friedman.




Revision [2127]

Edited on 2008-04-17 04:14:48 by DarTar

Additions:
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XƎTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and TeX sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution. The TeX, LaTeX and XƎTeX logos on this page are rendered via a nifty XHTML and CSS hack by Edward O'Connor.


Deletions:
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XƎTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and TeX sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution. The TeX, LaTeX and XƎTeX logos on this page are rendered via a nifty XHTML and CSS hack by Edward O'Connor.




Revision [2121]

Edited on 2008-04-17 03:44:54 by DarTar

Additions:



Deletions:





Revision [2120]

Edited on 2008-04-17 03:44:25 by DarTar

Additions:





Revision [2119]

Edited on 2008-04-17 03:18:31 by DarTar

Additions:
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XƎTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and TeX sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution. The TeX, LaTeX and XƎTeX logos on this page are rendered via a nifty XHTML and CSS hack by Edward O'Connor.


Deletions:
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XƎTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and TeX sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution. The TeX, LaTeX and XƎTeX logos on this page are rendered via a clever XHTML and CSS hack by Edward O'Connor.




Revision [2118]

Edited on 2008-04-17 03:18:09 by DarTar

Additions:
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XƎTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and TeX sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution. The TeX, LaTeX and XƎTeX logos on this page are rendered via a clever XHTML and CSS hack by Edward O'Connor.


Deletions:
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XƎTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and {{tex}} sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution. The TeX, LaTeX and XƎTeX logos on this page are rendered via a clever XHTML and CSS hack by Edward O'Connor.




Revision [2117]

Edited on 2008-04-17 03:17:29 by DarTar

Additions:
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XƎTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and {{tex}} sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution. The TeX, LaTeX and XƎTeX logos on this page are rendered via a clever XHTML and CSS hack by Edward O'Connor.


Deletions:
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XƎTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and {{tex}} sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution.




Revision [2116]

Edited on 2008-04-17 03:14:35 by DarTar

Additions:
[latex fonts screenshot]There are several reasons why one should prefer LaTeX to a WYSIWYG word processor like Microsoft Word: portability, lightness, security are just a few of them (not to mention that LaTeX is free). There is still a further reason that definitely convinced me to abandon MS Word: you will never be able to produce professionally typeset and well-structured documents using most WYSIWYG word processors.


Deletions:
[latex fonts screenshot]There are several reasons why one should prefer LaTeX to a WYSIWYG word processor like Microsoft Word: portability, lightness, security are just a few of them (not to mention that LaTeX is free). There is still a further reason that definitely convinced me to abandon MS Word: you will never be able to produce professionally typeset and well-structured documents using most WYSIWYG word processors.




Revision [2115]

Edited on 2008-04-17 03:12:32 by DarTar

Additions:



Deletions:





Revision [2114]

Edited on 2008-04-17 03:10:43 by DarTar

Additions:
XƎTeX in conjunction with professional fonts gives the possibility to exploit the whole set of rare ligatures and decorations, that are automatically added to the text.
Expert fonts often include variants or alternate shapes for alphabetic characters and numbers. XƎTeX with the fonstpec package offers the possibility to access and select variants on single characters or for a whole text block.
XƎTeX gives the best results with expert fonts such as those based on OpenType technology. Most of them can be purchased from digital foundries, but Mac OS comes bundled with a number of excellent fonts with expert features (e.g. Hoefler Text, Optima, Skia, Apple Chancery, Zapfino). More free OpenType fonts are available on the net. Check out for example the Gentium, Charis SIL and Doulos SIL fonts from SIL, Cardo by David J. Perry, the free fonts designed by Jos Buivenga (the creator of Fontin), or this amazing collection of professional quality fonts selected by Vitaly Friedman.
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XƎTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and {{tex}} sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution.


Deletions:
LaTeX in conjunction with professional fonts gives the possibility to exploit the whole set of rare ligatures and decorations, that are automatically added to the text.
Expert fonts often include variants or alternate shapes for alphabetic characters and numbers. XeTeX with the fonstpec package offers the possibility to access and select variants on single characters or for a whole text block.
XeTeX gives the best results with expert fonts such as those based on OpenType technology. Most of them can be purchased from digital foundries, but Mac OS comes bundled with a number of excellent fonts with expert features (e.g. Hoefler Text, Optima, Skia, Apple Chancery, Zapfino). More free OpenType fonts are available on the net. Check out for example the Gentium, Charis SIL and Doulos SIL fonts from SIL, Cardo by David J. Perry, the free fonts designed by Jos Buivenga (the creator of Fontin), or this amazing collection of professional quality fonts selected by Vitaly Friedman.
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XeTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and {{tex}} sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution.




Revision [2108]

Edited on 2008-04-17 02:28:21 by DarTar [css tex logo]

Additions:

The Beauty of LaTeX

[latex fonts screenshot]There are several reasons why one should prefer LaTeX to a WYSIWYG word processor like Microsoft Word: portability, lightness, security are just a few of them (not to mention that LaTeX is free). There is still a further reason that definitely convinced me to abandon MS Word: you will never be able to produce professionally typeset and well-structured documents using most WYSIWYG word processors.
LaTeX is a free typesetting system that allows you to concentrate on content and forget about the layout: the software takes care of the actual typesetting, structuring and page formatting, producing documents of astonishing elegance.
The software I use to write in LaTeX on a Mac compiles documents in PDF format (but exporting to other formats such as RTF or HTML is also possible). It supports unicode and all the advanced typographic features of OpenType and AAT fonts, like Adobe Garamond Pro and Hoefler Text. It allows fine-tuned control on a number of typesetting options, although just using the default configuration results in documents with high typographic quality. In what follows I review some examples, comparing how fonts are rendered in MS Word and in LaTeX.
LaTeX (correct kerning for the "Ta" letter pair):
LaTeX (real small caps):
LaTeX (correct use of ligatures):
LaTeX in conjunction with professional fonts gives the possibility to exploit the whole set of rare ligatures and decorations, that are automatically added to the text.
LaTeX (text with rare and old-style ligatures):
LaTeX (example of font variants):
Legibility results not only from a good selection of typefaces, but also from a correct distribution of characters and whitespace per line. To attain this goal, most WYSIWYG word processors use relatively dumb justification/hyphenation procedures (i.e. algorithms that establish the position for line breaks by processing text line by line). LaTeX uses an advanced algorithm, based on seminal work by Donald Knuth and Michael F. Plass and enhanced by Frank Liang in 1983 for his PhD dissertation and, which considers paragraphs as `wholes´ in order to decide where to add line breaks [Thanks to Olaf 'Rhialto' Seibert for the correct attribution]. The algorithm uses language-specific patterns in order to decide the preferred position for hyphenation. The engine then selects line breaks so as to make paragraphs look as good as possible. Information that is taken into account for calculating optimal line breaks includes the number of consecutive lines ending with hyphens, word tightness on each line, the change of tightness between consecutive lines. Further development has enabled the LaTeX engine to allow certain characters to stick into the margin, thus generating an optically straight margin - i.e., a margin that looks straight without being geometrically so. LaTeX's hyphenation settings can be fine-tuned by expert users.
Advanced hyphenation/justification in LaTeX:

8. Typesetting with LaTeX: selected links

These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XeTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and {{tex}} sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution.


Deletions:

The Beauty of LaTeX

[latex fonts screenshot]There are several reasons why one should prefer LaTeX to a WYSIWYG word processor like Microsoft Word: portability, lightness, security are just a few of them (not to mention that LaTeX is free). There is still a further reason that definitely convinced me to abandon MS Word: you will never be able to produce professionally typeset and well-structured documents using most WYSIWYG word processors.
LaTeX is a free typesetting system that allows you to concentrate on content and forget about the layout: the software takes care of the actual typesetting, structuring and page formatting, producing documents of astonishing elegance.
The software I use to write in LaTeX on a Mac compiles documents in PDF format (but exporting to other formats such as RTF or HTML is also possible). It supports unicode and all the advanced typographic features of OpenType and AAT fonts, like Adobe Garamond Pro and Hoefler Text. It allows fine-tuned control on a number of typesetting options, although just using the default configuration results in documents with high typographic quality. In what follows I review some examples, comparing how fonts are rendered in MS Word and in LaTeX.
LaTeX (correct kerning for the "Ta" letter pair):
LaTeX (real small caps):
LaTeX (correct use of ligatures):
LaTeX in conjunction with professional fonts gives the possibility to exploit the whole set of rare ligatures and decorations, that are automatically added to the text.
LaTeX (text with rare and old-style ligatures):
LaTeX (example of font variants):
Legibility results not only from a good selection of typefaces, but also from a correct distribution of characters and whitespace per line. To attain this goal, most WYSIWYG word processors use relatively dumb justification/hyphenation procedures (i.e. algorithms that establish the position for line breaks by processing text line by line). LaTeX uses an advanced algorithm, based on seminal work by Donald Knuth and Michael F. Plass and enhanced by Frank Liang in 1983 for his PhD dissertation and, which considers paragraphs as `wholes´ in order to decide where to add line breaks [Thanks to Olaf 'Rhialto' Seibert for the correct attribution]. The algorithm uses language-specific patterns in order to decide the preferred position for hyphenation. The engine then selects line breaks so as to make paragraphs look as good as possible. Information that is taken into account for calculating optimal line breaks includes the number of consecutive lines ending with hyphens, word tightness on each line, the change of tightness between consecutive lines. Further development has enabled the LaTeX engine to allow certain characters to stick into the margin, thus generating an optically straight margin - i.e., a margin that looks straight without being geometrically so. LaTeX's hyphenation settings can be fine-tuned by expert users.
Advanced hyphenation/justification in LaTeX:

8. Typesetting with LaTeX: selected links

These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XeTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and TeX sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution.




Revision [2106]

Edited on 2008-04-17 01:42:04 by DarTar

Additions:
Apr 16, 2008 Added notes and acknowledgments


Deletions:
Dec 18, 2007 Added notes and acknowledgments




Revision [2100]

Edited on 2008-04-16 04:01:32 by DarTar

Additions:
Kerning is the process of selectively adjusting the spacing between letters pairs to improve the overall appearance of text. Examples of letter pairs that need kerning treatment are AV, AY, PA, and AT. These letter pairs often look awkward together, and need to either be moved closer together, or further apart manually. Professional typesetting systems and fonts allow fine-grained adjustments for such letter pairs. Popular word processors either lack support for kerning tables or disable kerning by default (this is the case with both Microsoft Word for Mac OS v.X and 2008) [Thanks to Mark Dancer and Nicholas Shera for pointing this out].


Deletions:
Kerning is the process of selectively adjusting the spacing between letters pairs to improve the overall appearance of text. Examples of letter pairs that need kerning treatment are AV, AY, PA, and AT. These letter pairs often look awkward together, and need to either be moved closer together, or further apart manually. Professional typesetting systems and fonts allow fine-grained adjustments for such letter pairs. Popular word processors either lack support for kerning tables or disable kerning by default (this is the case with both Microsoft Word for Mac OS v.X or 2008) [Thanks to Mark Dancer and Nicholas Shera for pointing this out].




Revision [2099]

Edited on 2008-04-16 04:01:08 by DarTar

Additions:
Kerning is the process of selectively adjusting the spacing between letters pairs to improve the overall appearance of text. Examples of letter pairs that need kerning treatment are AV, AY, PA, and AT. These letter pairs often look awkward together, and need to either be moved closer together, or further apart manually. Professional typesetting systems and fonts allow fine-grained adjustments for such letter pairs. Popular word processors either lack support for kerning tables or disable kerning by default (this is the case with both Microsoft Word for Mac OS v.X or 2008) [Thanks to Mark Dancer and Nicholas Shera for pointing this out].


Deletions:
Kerning is the process of selectively adjusting the spacing between letters pairs to improve the overall appearance of text. Examples of letter pairs that need kerning treatment are AV, AY, PA, and AT. These letter pairs often look awkward together, and need to either be moved closer together, or further apart manually. Professional typesetting systems and fonts allow fine-grained adjustments for such letter pairs. Popular word processors either lack support for kerning tables or disable kerning by default (this is the case with both Microsoft Word v.X or 2008) [Thanks to Mark Dancer and Nicholas Shera for pointing this out].




Revision [2098]

Edited on 2008-04-16 04:00:14 by DarTar

Additions:
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XeTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and TeX sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution.


Deletions:
These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XeTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and TeX sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution.




Revision [2097]

Edited on 2008-04-16 03:59:04 by DarTar [ack]

Additions:
Dec 18, 2007 Added notes and acknowledgments
  1. Acknowledgments
Kerning is the process of selectively adjusting the spacing between letters pairs to improve the overall appearance of text. Examples of letter pairs that need kerning treatment are AV, AY, PA, and AT. These letter pairs often look awkward together, and need to either be moved closer together, or further apart manually. Professional typesetting systems and fonts allow fine-grained adjustments for such letter pairs. Popular word processors either lack support for kerning tables or disable kerning by default (this is the case with both Microsoft Word v.X or 2008) [Thanks to Mark Dancer and Nicholas Shera for pointing this out].
MS Word (wrong default kerning for the "Ta" letter pair):
LaTeX (correct kerning for the "Ta" letter pair):
Legibility results not only from a good selection of typefaces, but also from a correct distribution of characters and whitespace per line. To attain this goal, most WYSIWYG word processors use relatively dumb justification/hyphenation procedures (i.e. algorithms that establish the position for line breaks by processing text line by line). LaTeX uses an advanced algorithm, based on seminal work by Donald Knuth and Michael F. Plass and enhanced by Frank Liang in 1983 for his PhD dissertation and, which considers paragraphs as `wholes´ in order to decide where to add line breaks [Thanks to Olaf 'Rhialto' Seibert for the correct attribution]. The algorithm uses language-specific patterns in order to decide the preferred position for hyphenation. The engine then selects line breaks so as to make paragraphs look as good as possible. Information that is taken into account for calculating optimal line breaks includes the number of consecutive lines ending with hyphens, word tightness on each line, the change of tightness between consecutive lines. Further development has enabled the LaTeX engine to allow certain characters to stick into the margin, thus generating an optically straight margin - i.e., a margin that looks straight without being geometrically so. LaTeX's hyphenation settings can be fine-tuned by expert users.

9. Acknowledgments

Thanks to all those who helped improve this article with valuable feedback: Will Robertson (fontspec author), Bastien Guerry, Nicholas Shera, Mark Dancer, Olaf 'Rhialto' Seibert.

10. Technical notes



Deletions:
Dec 18, 2007 Added resources on expert fonts
Kerning is the process of selectively adjusting the spacing between letters pairs to improve the overall appearance of text. Examples of letter pairs that need kerning treatment are AV, AY, PA, and AT. These letter pairs often look awkward together, and need to either be moved closer together, or further apart manually. Professional typesetting systems and fonts allow fine-grained adjustments for such letter pairs.
MS Word (incorrect kerning for the "Ta" letter pair):
LaTeX (adjusted kerning for the "Ta" letter pair):
Legibility results not only from a good selection of typefaces, but also from a correct distribution of characters and whitespace per line. To attain this goal, most WYSIWYG word processors use relatively dumb justification/hyphenation procedures (i.e. algorithms that establish the position for line breaks by processing text line by line). LaTeX uses an advanced algorithm, originally developed by Frank Liang in 1983 for his PhD dissertation, which considers paragraphs as `wholes´ in order to decide where to add line breaks. The algorithm uses language-specific patterns in order to decide the preferred position for hyphenation. The engine then selects line breaks so as to make paragraphs look as good as possible. Information that is taken into account for calculating optimal line breaks includes the number of consecutive lines ending with hyphens, word tightness on each line, the change of tightness between consecutive lines. Further development has enabled the LaTeX engine to allow certain characters to stick into the margin, thus generating an optically straight margin - i.e., a margin that looks straight without being geometrically so. LaTeX's hyphenation settings can be fine-tuned by expert users.

9. Technical notes





Revision [2088]

Edited on 2008-03-30 15:30:24 by DarTar

Additions:

The Beauty of LaTeX



Deletions:

The beauty of LaTeX





Revision [2028]

Edited on 2008-03-06 03:33:54 by DarTar

Additions:


Deletions:
research | papers & communications | teaching | erp | links | tools | cv | contact




Revision [1893]

The oldest known version of this page was edited on 2008-02-15 03:03:14 by DarTar
hometools › latex

The beauty of LaTeX

Latest update
Dec 18, 2007 Added resources on expert fonts
 

[latex fonts screenshot]There are several reasons why one should prefer LaTeX to a WYSIWYG word processor like Microsoft Word: portability, lightness, security are just a few of them (not to mention that LaTeX is free). There is still a further reason that definitely convinced me to abandon MS Word: you will never be able to produce professionally typeset and well-structured documents using most WYSIWYG word processors.
LaTeX is a free typesetting system that allows you to concentrate on content and forget about the layout: the software takes care of the actual typesetting, structuring and page formatting, producing documents of astonishing elegance.
The software I use to write in LaTeX on a Mac compiles documents in PDF format (but exporting to other formats such as RTF or HTML is also possible). It supports unicode and all the advanced typographic features of OpenType and AAT fonts, like Adobe Garamond Pro and Hoefler Text. It allows fine-tuned control on a number of typesetting options, although just using the default configuration results in documents with high typographic quality. In what follows I review some examples, comparing how fonts are rendered in MS Word and in LaTeX.

Contents
  1. Kerning
  2. Real Small Caps
  3. Common ligatures
  4. Rare and ancient ligatures
  5. Glyph variants
  6. Line breaks, justification and hyphenation
  7. Getting expert fonts
  8. Links
  9. Technical notes

 

1. Kerning


Kerning is the process of selectively adjusting the spacing between letters pairs to improve the overall appearance of text. Examples of letter pairs that need kerning treatment are AV, AY, PA, and AT. These letter pairs often look awkward together, and need to either be moved closer together, or further apart manually. Professional typesetting systems and fonts allow fine-grained adjustments for such letter pairs.

MS Word (incorrect kerning for the "Ta" letter pair):
[example of inappropriate kerning in MS Word]
[Adobe Garamond Pro, 48pt] pdf doc


LaTeX (adjusted kerning for the "Ta" letter pair):
[example of correct kerning in LaTeX]
[Adobe Garamond Pro, 48pt] pdf tex


 

2. Real small caps


Most word processors create fake small capitals by adjusting the size of capitals. Professional fonts contain different sets of glyphs for small capitals and full-size capitals that any serious typesetting system should be able to use in the appropriate context. In particular, real small capitals are more than resized versions of uppercase capitals: they have a relatively heavier stroke and are designed to be visually compatible with lowercase characters of the same typeface.

MS Word (fake small caps):
[example of fake small caps in MS Word]
[Adobe Garamond Pro, 48pt] pdf doc


LaTeX (real small caps):
[example of correct use of real small caps in LaTeX]
[Adobe Garamond Pro, 48pt] pdf tex


 

3. Common ligatures


A good typesetting programme should always use contextual intelligence and substitution tables to determine whether ligatures are needed. Common ligatures are essential to professionally typeset text.

MS Word (common ligature errors):
[example of common ligatures in MS Word]
[Hoefler Text, 48pt] pdf doc


LaTeX (correct use of ligatures):
[example of common ligatures in LaTeX]
[Hoefler Text, 48pt] pdf tex


 

4. Rare and ancient ligatures


LaTeX in conjunction with professional fonts gives the possibility to exploit the whole set of rare ligatures and decorations, that are automatically added to the text.

MS Word (text with no ligature):
[text without rare ligatures in MS Word]
[Adobe Minion Pro, 24pt] pdf doc


LaTeX (text with rare and old-style ligatures):
[example of rare ligatures in LaTeX]
[Adobe Minion Pro, 24pt] pdf tex


[example of rare ligatures in LaTeX]
[Hoefler Text, 24pt] pdf tex


 

5. Glyph variants


Expert fonts often include variants or alternate shapes for alphabetic characters and numbers. XeTeX with the fonstpec package offers the possibility to access and select variants on single characters or for a whole text block.

LaTeX (example of font variants):
[example of font variants in LaTeX]
[Zapfino, 25pt] pdf tex


 

6. Line breaks, justification and hyphenation


Legibility results not only from a good selection of typefaces, but also from a correct distribution of characters and whitespace per line. To attain this goal, most WYSIWYG word processors use relatively dumb justification/hyphenation procedures (i.e. algorithms that establish the position for line breaks by processing text line by line). LaTeX uses an advanced algorithm, originally developed by Frank Liang in 1983 for his PhD dissertation, which considers paragraphs as `wholes´ in order to decide where to add line breaks. The algorithm uses language-specific patterns in order to decide the preferred position for hyphenation. The engine then selects line breaks so as to make paragraphs look as good as possible. Information that is taken into account for calculating optimal line breaks includes the number of consecutive lines ending with hyphens, word tightness on each line, the change of tightness between consecutive lines. Further development has enabled the LaTeX engine to allow certain characters to stick into the margin, thus generating an optically straight margin - i.e., a margin that looks straight without being geometrically so. LaTeX's hyphenation settings can be fine-tuned by expert users.

Advanced hyphenation/justification in LaTeX:
[example of advanced hyphenation/justification in LaTeX]
[Hoefler Text, 10pt, magnified] pdf tex

For visual examples of the differences between paragraph and line-by-line based algorithms, see Maarten Sneep's document: Justification & Hyphenation in various text engines


 

7. Getting expert fonts


XeTeX gives the best results with expert fonts such as those based on OpenType technology. Most of them can be purchased from digital foundries, but Mac OS comes bundled with a number of excellent fonts with expert features (e.g. Hoefler Text, Optima, Skia, Apple Chancery, Zapfino). More free OpenType fonts are available on the net. Check out for example the Gentium, Charis SIL and Doulos SIL fonts from SIL, Cardo by David J. Perry, the free fonts designed by Jos Buivenga (the creator of Fontin), or this amazing collection of professional quality fonts selected by Vitaly Friedman.
 


 

8. Typesetting with LaTeX: selected links


9. Technical notes

These examples were produced on a Powerbook G4 running Mac OS 10.3.9, with Microsoft Word v.X and TeXShop 1.35, the XeTeX engine with fontspec package, and using the following fonts: Adobe Garamond Pro (commercial font), Adobe Minion Pro (commercial font), Hoefler Text (font bundled with Mac OS X), Zapfino (font bundled with Mac OS X). This article, the PDF samples and TeX sources are licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. A backlink is sufficient for attribution.




research | papers & communications | teaching | erp | links | tools | cv | contact
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.4
Page was generated in 1.8518 seconds