<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>∃xistential Type &#187; xetex</title>
	<atom:link href="http://existentialtype.net/tag/xetex/feed/" rel="self" type="application/rss+xml" />
	<link>http://existentialtype.net</link>
	<description>For People Who Like Type and Types</description>
	<lastBuildDate>Fri, 29 Oct 2010 15:00:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Fonts in LaTeX, an intermission</title>
		<link>http://existentialtype.net/2008/07/13/fonts-in-latex-an-intermission/</link>
		<comments>http://existentialtype.net/2008/07/13/fonts-in-latex-an-intermission/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 15:58:01 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[meta]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[fontinst]]></category>
		<category><![CDATA[lua]]></category>
		<category><![CDATA[luatex]]></category>
		<category><![CDATA[opentype]]></category>
		<category><![CDATA[pdftex]]></category>
		<category><![CDATA[reddit]]></category>
		<category><![CDATA[truetype]]></category>
		<category><![CDATA[xetex]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=258</guid>
		<description><![CDATA[Part one of my tutorial attracted a considerable number of visitors, far more than any single entry in the past, partly because it was posted to reddit. Looking at the comments on reddit, I figured that I would say that luatex does resolve pdfTeX's internal limitation of 256 glyphs that I mentioned in part two, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://existentialtype.net/2008/07/12/fonts-in-latex-part-one-xelatex/">Part one</a> of my tutorial attracted a considerable number of visitors, far more than any single entry in the past, partly because it was posted to <a href="http://www.reddit.com/r/programming/info/6rg7f/comments/">reddit</a>.</p>
<p>Looking at the comments on reddit, I figured that I would say that <a href="http://www.luatex.org/">luatex</a> does resolve pdfTeX's internal limitation of 256 glyphs that I mentioned in <a href="http://existentialtype.net/2008/07/12/fonts-in-latex-part-two-pdftex-and-opentype/">part two</a>, and it should directly support OpenType fonts with PostScript outlines.</p>
<p>However, my understanding is that the authors of luatex do not intend to make using TrueType and OpenType fonts as simple as XeTeX directly.  Instead, luatex merely makes the machinery available for someone else to build upon.  So someone will need to write a LaTeX package for luatex to put it all together, and as far as I know, no one has done this yet (let me know if I'm wrong!).  Also, while the plan is for luatex to eventually be merged back into pdfTeX, I think it is an overstatement to say that it will happen "soon".  The current luatex roadmap says that a "production" ready version will be available in <a href="http://www.luatex.org/roadmap.html">August 2009</a>.  I doubt that the merge back to pdfTeX will happen any sooner than 2010 given that.  But yes, in the long term I think luatex will be a great thing.</p>
<p>It also sounds like I should probably write a fourth part to my tutorial on using <a href="http://www.tug.org/applications/fontinst/">fontinst</a>.  I've never personally used it myself, and when I first started working with OpenType fonts and LaTeX I wasn't aware of its existence.  Therefore, I wrote <a href="http://free-the-mallocs.com/otftofd">otftofd</a>.  So it might take a bit longer to write as I will have to learn it at the same time.</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2008/07/13/fonts-in-latex-an-intermission/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fonts in LaTeX, Part One: XeLaTeX</title>
		<link>http://existentialtype.net/2008/07/12/fonts-in-latex-part-one-xelatex/</link>
		<comments>http://existentialtype.net/2008/07/12/fonts-in-latex-part-one-xelatex/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 11:02:58 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[typography]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[fontspec]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[opentype]]></category>
		<category><![CDATA[pagella]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[tex gyre]]></category>
		<category><![CDATA[tex live]]></category>
		<category><![CDATA[truetype]]></category>
		<category><![CDATA[xelatex]]></category>
		<category><![CDATA[xetex]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=251</guid>
		<description><![CDATA[Now and then I get asked about how to use some TrueType or OpenType font with LaTeX, so I figured I would take the time to write up some simple tutorials on how to do so. The first part will focus on the easiest route to making use of TrueType and OpenType fonts in LaTeX: [...]]]></description>
			<content:encoded><![CDATA[<p>Now and then I get asked about how to use some <a href="http://en.wikipedia.org/wiki/TrueType">TrueType</a> or <a href="http://en.wikipedia.org/wiki/OpenType">OpenType</a> font with LaTeX, so I figured I would take the time to write up some simple tutorials on how to do so. The first part will focus on the easiest route to making use of TrueType and OpenType fonts in LaTeX: <a href="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=xetex">XeTeX and XeLaTeX</a>.</p>
<p>XeLaTeX also has the advantage of not only giving easy access to modern fonts, but also accepting Unicode input files.</p>
<p>The first thing you need to do is find out if you have XeLaTeX installed, and if it is a sufficiently up to date version.  This is easiest to do from the command-line:<br />
<code><br />
% xelatex<br />
This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6)<br />
%&amp;-line parsing enabled.<br />
**^C<br />
</code><br />
This is the version that I am using for the tutorial, and is what comes with <a href="http://www.tug.org/texlive/">TeX Live 2007</a>.  I highly recommend just installing and using the entire TeX Live CD/DVD, even if you're using a Linux system that offers TeX Live packages, because, in particular for <a href="http://www.debian.org/">Debian</a>/<a href="http://www.ubuntu.com/">Ubuntu</a>, I've found that the default installation often doesn't install some important packages, and it can be a pain sort through all the available packages using Synaptics or whatnot to find what it didn't install.</p>
<p>I am also assuming that you are using a (modern) Unix or MacOS X system.  I assume that most of this material should also apply when using Windows, but if someone can comment, let me know.</p>
<p>Now, as an example, say you want to use the <a href="http://www.gust.org.pl/projects/e-foundry/tex-gyre/pagella">Pagella</a> font from the <a href="http://www.gust.org.pl/projects/e-foundry/tex-gyre">TeX Gyre</a> project.  First download them and install the fonts (the <code>otf</code> files) as you normally would on your computer.  Under MacOS X, this means using Font Book.  If you double-click on an <code>otf</code> file it will load Font Book for you and there will be dialog with a button to install the font.  If you load Font Book yourself, you can use the "Add Fonts..." menu item under the File menu to select the files.  Under a modern Unix, I would recommend just placing the <code>otf</code> files in your <code>~/.fonts</code> folder, though I think file managers like Nautilus also understand how to install fonts.</p>
<p>And that was all the installation work necessary; as I said, XeLaTeX is the easiest solution unless you have specialized needs.  Now just create a small LaTeX document:</p>
<pre class="latex">&nbsp;
<span style="color: #800000; font-weight: normal;">\documentclass</span>{<span style="color: #2222D0; font-weight: normal;">article</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}
<span style="color: #800000; font-weight: normal;">\setromanfont</span>{<span style="color: #2222D0; font-weight: normal;">TeX Gyre Pagella</span>}
<span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}
Testing XeLaTeX!
&nbsp;
Greek: τεχ.
<span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</pre>
<p>The <code>fontspec</code> package isn't necessary, but it makes dealing with fonts in XeLaTeX much easier, for example it defines the convenient <code>\setromanfont</code> command.  You can learn more about all of its great features from its beautifully formatted <a href="http://www.ctan.org/get/macros/xetex/latex/fontspec/fontspec.pdf">manual</a>.</p>
<p>The other thing you might need to know is what XeLaTeX thinks your font is called.  If you're using TeX Live, like I suggest, you will have the program <code>otfinfo</code> at your disposal that can do that for you:<br />
<code><br />
% otfinfo --family texgyrepagella-regular.otf<br />
TeX Gyre Pagella<br />
</code><br />
Note that despite its name, <code>otfinfo</code> will also work on <code>ttf</code> files, assuming that they include OpenType data in them.  The other option is to use Font Book on MacOS X or <code>fc-list</code> from the command-line in Unix.</p>
<p>Now you just run <code>xelatex</code>:<br />
<code><br />
% xelatex test.tex<br />
This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6)<br />
%&amp;-line parsing enabled.<br />
entering extended mode<br />
(./test.tex<br />
...<br />
...<br />
Output written on test.pdf (1 page).<br />
Transcript written on test.log.<br />
</code><br />
And you have your document:</p>
<p><a href="http://existentialtype.net/wp-content/uploads/2008/07/test.png"><img class="aligncenter size-full wp-image-252" title="test" src="http://existentialtype.net/wp-content/uploads/2008/07/test.png" alt="XeLaTeX test" width="356" height="121" /></a></p>
<p>I think that is about everything you need to know, but if you try this tutorial out and find that something doesn't work, let me know.  If you have more specialized or demanding typographical needs, you may want to use pdfTeX and pdfLaTeX, and part two of the tutorial will explain how to do the necessary configuration to use TrueType and OpenType fonts with them.</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2008/07/12/fonts-in-latex-part-one-xelatex/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>

