<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>LaTeX and Miscellaneous</title>
	<atom:link href="http://chenfuture.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chenfuture.wordpress.com</link>
	<description>Someone's trash, my treasure?</description>
	<lastBuildDate>Wed, 21 Oct 2009 23:32:13 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='chenfuture.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/99548bc1472b70caedc6cf238eb3de23?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>LaTeX and Miscellaneous</title>
		<link>http://chenfuture.wordpress.com</link>
	</image>
			<item>
		<title>LaTeX Handwritten Symbol Recognition</title>
		<link>http://chenfuture.wordpress.com/2009/10/21/latex-handwritten-symbol-recognition/</link>
		<comments>http://chenfuture.wordpress.com/2009/10/21/latex-handwritten-symbol-recognition/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 23:32:13 +0000</pubDate>
		<dc:creator>Jie</dc:creator>
				<category><![CDATA[web link & blog]]></category>

		<guid isPermaLink="false">http://chenfuture.wordpress.com/?p=105</guid>
		<description><![CDATA[http://detexify.kirelabs.org/classify.html
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=105&subd=chenfuture&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://detexify.kirelabs.org/classify.html">http://detexify.kirelabs.org/classify.html</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chenfuture.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chenfuture.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chenfuture.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chenfuture.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chenfuture.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chenfuture.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chenfuture.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chenfuture.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chenfuture.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chenfuture.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=105&subd=chenfuture&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chenfuture.wordpress.com/2009/10/21/latex-handwritten-symbol-recognition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e344ab59b489c2fc1bad4c1c2a47484?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jie</media:title>
		</media:content>
	</item>
		<item>
		<title>A few old LaTeX posts</title>
		<link>http://chenfuture.wordpress.com/2009/02/07/a-few-old-latex-posts/</link>
		<comments>http://chenfuture.wordpress.com/2009/02/07/a-few-old-latex-posts/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 22:53:02 +0000</pubDate>
		<dc:creator>Jie</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chenfuture.wordpress.com/?p=91</guid>
		<description><![CDATA[I decided it would be beneficial to post some articles that I had written and posted elsewhere quite long ago.  This idea came from someone asking me today &#8220;How to change the font of an article from computer modern to sans serif?&#8221; My brain went short for a while, until I realized that I indeed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=91&subd=chenfuture&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I decided it would be beneficial to post some articles that I had written and posted elsewhere quite long ago.  This idea came from someone asking me today &#8220;How to change the font of an article from computer modern to sans serif?&#8221; My brain went short for a while, until I realized that I indeed had written something about tex fonts previously and maybe the answer was there. It&#8217;s the first time I had recognized how useful these shits were to me.. (Honestly I have to admit that after finishing those posts I regretted wasting time on writing nothing useful at all.) So, anyways, I put some of these posts back in this blog.</p>
<p>PS: The answer to the above question of changing to sans serif fonts is a simply line of code:</p>
<blockquote><p><code>\renewcommand{\rmdefault}{cmss}</code></p></blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chenfuture.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chenfuture.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chenfuture.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chenfuture.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chenfuture.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chenfuture.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chenfuture.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chenfuture.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chenfuture.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chenfuture.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=91&subd=chenfuture&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chenfuture.wordpress.com/2009/02/07/a-few-old-latex-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e344ab59b489c2fc1bad4c1c2a47484?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jie</media:title>
		</media:content>
	</item>
		<item>
		<title>TeX Fonts (III): postscript</title>
		<link>http://chenfuture.wordpress.com/2009/02/07/tex-fonts-iii-postscript/</link>
		<comments>http://chenfuture.wordpress.com/2009/02/07/tex-fonts-iii-postscript/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 22:52:44 +0000</pubDate>
		<dc:creator>Jie</dc:creator>
				<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://chenfuture.wordpress.com/?p=85</guid>
		<description><![CDATA[In TeX, a font requires two definition/description files: a metric definition file (.tfm) as introduced             in the previous post, and a glyph shape description file (.gf from METAFONT, .pfa/.pfb for printer             [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=85&subd=chenfuture&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In TeX, a font requires two definition/description files: a <span style="color:#0000ff;"><span class="emph">metric definition file (.tfm)</span></span> as introduced             in the previous post, and a <span style="color:#0000ff;"><span class="emph">glyph shape description file</span> (.gf from METAFONT, .pfa/.pfb for printer             fonts, etc)</span>. The TeX font metric file *.tfm only specifies the dimensions of each character in the             font, as well as a list of kerning and ligature pairs. It does not tell how actually a character             looks like. The shapes of the characters are only described in the glyph file. The output of a TeX             file, *.dvi, merely contains information about a large number of bounding boxes and their relative             positions. Hence, in order to print the document to paper or to screen, a dvi file has to be             interpreted using a dvi driver with glyph definition in mind. dvips is one such             driver. It converts a dvi file to a PostScript file. Yap, or xdvi, or other dvi previewers,             are essentially dvi drivers. They assume glyph information, otherwise they have no way of rendering             the fonts stored in *.dvi.</p>
<p>Indeed, a large part of fonts talked about in this post are no longer TeX fonts. TeX only recognizes             fonts from .tfm files&#8212;bounding boxes and kerning informations. METAFONT can produce glyph files             (.gf), but fonts we commonly used today are Adobe fonts (.afm), TrueType fonts (.ttf), etc. Corresponding             tools are designed to convert these fonts into TeX font metrics, such as afm2tfm, ttf2tfm, recognized             by the latex program, as well as into glyph files (ttf2pk, etc) used by the dvi drivers (dvips, Yap, xdvi, etc). The             relationships are illustrated in the following figure. (I slightly cheat in the figure in that the             Adobe font metric .afm will only be converted to TeX font metric .tfm, but no information is deduced             for glyph file.)</p>
<p style="text-align:center;"><img class="alignnone size-full wp-image-86" title="texfonts" src="http://chenfuture.files.wordpress.com/2009/02/texfonts.jpg?w=452&#038;h=226" alt="texfonts" width="452" height="226" /></p>
<p>[To be finished..]</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chenfuture.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chenfuture.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chenfuture.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chenfuture.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chenfuture.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chenfuture.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chenfuture.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chenfuture.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chenfuture.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chenfuture.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=85&subd=chenfuture&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chenfuture.wordpress.com/2009/02/07/tex-fonts-iii-postscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e344ab59b489c2fc1bad4c1c2a47484?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jie</media:title>
		</media:content>

		<media:content url="http://chenfuture.files.wordpress.com/2009/02/texfonts.jpg" medium="image">
			<media:title type="html">texfonts</media:title>
		</media:content>
	</item>
		<item>
		<title>TeX Fonts (II): fd, def, and tfm</title>
		<link>http://chenfuture.wordpress.com/2009/02/07/tex-fonts-ii-fd-def-and-tfm/</link>
		<comments>http://chenfuture.wordpress.com/2009/02/07/tex-fonts-ii-fd-def-and-tfm/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 22:52:29 +0000</pubDate>
		<dc:creator>Jie</dc:creator>
				<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://chenfuture.wordpress.com/?p=81</guid>
		<description><![CDATA[When we compile a TeX source, such as using &#8220;latex helloworld.tex&#8221;, the latex program searches for the font definition file ‹enc›‹family›.fd according to the font encoding and family specification inside the LaTeX source, loads the encoding definition ‹enc›enc.def, and typesets each individual character by consulting the TeX font metric file ‹family›[‹size›].tfm. These three files are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=81&subd=chenfuture&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When we compile a TeX source, such as using &#8220;<code>latex helloworld.tex</code>&#8221;, the latex program searches for the font definition file <span style="color:#0000ff;">‹enc›‹family›.fd</span> according to the font encoding and family specification inside the LaTeX source, loads the encoding definition <span style="color:#0000ff;">‹enc›enc.def</span>, and typesets each individual character by consulting the TeX font metric file <span style="color:#0000ff;">‹family›[‹size›].tfm</span>. These three files are key to generating the output dvi file.</p>
<p>The font definition file <span style="color:#0000ff;">‹enc›‹family›.fd</span> simply declares the existence of some font, and provides a pointer to the metric file that the latex program should consult when typesetting the document. For example, in the txfont package, which provides characters in the Adobe Times font for both texts and formulas, there is one file t1txr.fd defining the txr font family using T1 encoding. The second and third commands read:</p>
<blockquote><p><code> \DeclareFontFamily{T1}{txr}{}<br />
\DeclareFontShape{T1}{txr}{m}{n}{t1xr}{}</code></p></blockquote>
<p>It essentially says that a txr font with T1 encoding is defined. Whenever a T1 txr medium normal font is requested, LaTeX should use the t1xr.tfm metric file for all font sizes ( means &#8220;for all sizes&#8221;).</p>
<p>The corresponding encoding definition file <span style="color:#0000ff;">‹enc›enc.def</span> defines the encoding. Let us see an example first to have an idea about what &#8220;encoding&#8221; means. In t1enc.def, there are four lines saying:</p>
<blockquote><p><code> \DeclareFontEncoding{T1}{}{}<br />
\DeclareTextAccent{\'}{T1}{1}<br />
\DeclareTextSymbol{\ae}{T1}{230}<br />
\DeclareTextComposite{\"}{T1}{a}{228}</code></p></blockquote>
<p>The first line declares the existence of T1 encoding. The following lines mean that when this encoding is in effect the <code>\'{x}</code> command should superimpose character 1 (accent acute) over the character x, that <code>\ae</code> should produce character 230 (the æ ligature), and that <code>\"a</code> should produce character 228 (the umlaut ä). It would be much clearer to compare the above three commands with the corresponding ones in OT1 encoding (ot1enc.def):</p>
<blockquote><p><code> \DeclareTextAccent{\'}{OT1}{19}<br />
\DeclareTextSymbol{\ae}{OT1}{26}<br />
(no composite command \"a defined)</code></p></blockquote>
<p>One can see that, under different encodings, the same character has different indices in the character table. The same command can be issued to reference the same character, while it&#8217;s also possible that some characters exist in one encoding but not in the other. The encoding defined in LY1enc.def used by Y&amp;Y TeX systems allows access to all the characters in a standard Adobe roman font.</p>
<p>Finally, the TeX font metric file <span style="color:#0000ff;">‹family›[‹size›].tfm</span> is a binary file that defines width, depth, and height of each character, as well as the kerning pairs and ligature substitutions to be used with the font. LaTeX consults the tfm file to decide where to put characters when typesetting. The tfm file name has an optional [‹size›] field. For example, the cmr family has metric files cmr5.tfm, cmr6.tfm, cmr7.tfm, cmr8.tfm, cmr8.tfm, cmr10.tfm, cmr12.tfm, and cmr17.tfm. Each file fine tunes the size of each character and is used when different font sizes are correspondingly declared.</p>
<p>To summarize, when typesetting the document, latex requires three important files to get the correct encoding and character size information. Latex computes the locations of each character and outputs the dvi file.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chenfuture.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chenfuture.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chenfuture.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chenfuture.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chenfuture.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chenfuture.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chenfuture.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chenfuture.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chenfuture.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chenfuture.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=81&subd=chenfuture&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chenfuture.wordpress.com/2009/02/07/tex-fonts-ii-fd-def-and-tfm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e344ab59b489c2fc1bad4c1c2a47484?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jie</media:title>
		</media:content>
	</item>
		<item>
		<title>TeX Fonts (I): font attributes</title>
		<link>http://chenfuture.wordpress.com/2009/02/07/tex-fonts-i-font-attributes/</link>
		<comments>http://chenfuture.wordpress.com/2009/02/07/tex-fonts-i-font-attributes/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 22:52:18 +0000</pubDate>
		<dc:creator>Jie</dc:creator>
				<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://chenfuture.wordpress.com/?p=76</guid>
		<description><![CDATA[Maybe You never worry about fonts. Right, since for most people Computer Modern or Times are perfect enough to make a pdf document look good. And what&#8217;s more, seldom would there have been LaTeX tutorials covering topics on fonts. Fonts are considered for TeXhackers, not for TeX users.
On the other hand, people who are interested [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=76&subd=chenfuture&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Maybe You never worry about fonts. Right, since for most people Computer Modern or Times are perfect enough to make a pdf document look good. And what&#8217;s more, seldom would there have been LaTeX tutorials covering topics on fonts. Fonts are considered for TeXhackers, not for TeX users.</p>
<p>On the other hand, people who are interested in typography care too much about font looks. Even a person who has just installed a brand new Windows system will proceed to his first configuration task: use ClearType to antialiase screen fonts rendering (Well, this post was written at the time of Windows XP. Things have changed dramatically since then). Let alone Unix/Linux fans and TeX/LaTeX zealots.</p>
<p>This series of articles does not instruct one how to install fonts, neither does it teach specifically how to use different fonts in a LaTeX document. Instead, it gives a big picture about how fonts are dealt with behind the scene. Understanding the principals helps one on knowing, such as, &#8220;what affects the document&#8217;s texts&#8221;, rather than &#8220;what steps to take to improve the layout&#8221;. It is even conjectured that this article will soon be obsolete due to the new font schemes in LaTeX3.</p>
<p>Under the New Font Selection Scheme (NFSS) for LaTeX2e, a font has five attributes: <span style="color:#0000ff;">encoding</span>, <span style="color:#0000ff;">family</span>, <span style="color:#0000ff;">series</span>, <span style="color:#0000ff;">shape</span>, and <span style="color:#0000ff;">size.</span> For example, OT1/cmr/m/n/10 means that the document is using a font in OT1 encoding scheme, computer modern roman (cmr) family, medium weight (m) series, normal upright (n) shape, and 10pt size. These five parameters will be displayed whenever LaTeX gives an overfull box warning.</p>
<p>To change the current font layout, one can use a series of <code>\font...</code> commands, followed by a <code>\selectfont</code> activation. Example:</p>
<blockquote><p><code> \fontencoding{T1}<br />
\fontfamily{ptm}<br />
\fontseries{b}<br />
\fontshape{it}<br />
\fontsize{12}{15}<br />
\selectfont<br />
</code></p></blockquote>
<p>It instructs LaTeX to use bold italic 12pt ptm font with 15pt baselineskip in the T1 encoding scheme for the texts. ptm is the widely used Adobe Times font, as oppose to cm.. (computer modern) families which might be hardly popular outside the TeX world.</p>
<p>Just to give a sense of what values are possible for each attribute in a font:</p>
<blockquote><p><span style="color:#0000ff;">Encoding</span>: OT1, T1&#8230;<br />
<span style="color:#0000ff;">Family</span>: cmr, cmss, cmtt (computer modern); ptm, phv, pcr (Adobe)&#8230;<br />
<span style="color:#0000ff;">Series</span>: m (medium), b (bold), bx (bold extended), sb (semi-bold), c (condensed)<br />
<span style="color:#0000ff;">Shape</span>: n (normal/upright), it (italic), sl (slanted), sc (small caps)<br />
<span style="color:#0000ff;">Size</span>: 5pt, 9pt, 10pt, 12pt, 14.4pt, 24.88pt&#8230;</p></blockquote>
<p>Note that not all combinations of the attributes are valid.</p>
<p>Besides the above lower-level commands, LaTeX provides default settings for each document class. One can use different fonts by <code>renewcommand</code>&#8216;ing the defaults. For example, <code>\familydefault</code> is originally set as <code>\rmdefault</code>, which in turn is set as cmr. One can issue a command like:</p>
<blockquote><p><code> \renewcommand{\rmdefault}{phv}</code></p></blockquote>
<p>to use Adobe Helvetica (phv) as the default font face. Changing <code>\seriesdefault</code> and <code>\shapedefault</code> are similar. However, font size has to be changed in a different way, e.g.:</p>
<blockquote><p><code> \renewcommand{\normalsize}{\fontsize{12}{14.4}\selectfont}</code></p></blockquote>
<p>This sets a 12pt font size. Font encoding is usually changed by using a different package, such as:</p>
<blockquote><p><code> \usepackage[T1]{fontenc}</code></p></blockquote>
<p>This forces a T1 encoding.</p>
<p>To summarize, a font in LaTeX is specified by five attributes. Except for the encoding, the other four should be intuitive to gentle users. There are specific commands to select a different font. The encoding scheme shall be discussed in the next article. A last note is that all the above values mentioned in this article are for text fonts. Math uses different fonts and values, and needs to be dealt with additionally. But the principals are the same. There are also some tailored packages designed to set a specific font for everything (including text and math), such as mathptmx, courier, avant. Readers are encouraged to explore these packages.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chenfuture.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chenfuture.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chenfuture.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chenfuture.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chenfuture.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chenfuture.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chenfuture.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chenfuture.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chenfuture.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chenfuture.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=76&subd=chenfuture&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chenfuture.wordpress.com/2009/02/07/tex-fonts-i-font-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e344ab59b489c2fc1bad4c1c2a47484?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jie</media:title>
		</media:content>
	</item>
		<item>
		<title>DO&#8217;s and DON&#8217;Ts when typesetting a document</title>
		<link>http://chenfuture.wordpress.com/2009/02/07/dos-and-donts-when-typesetting-a-document/</link>
		<comments>http://chenfuture.wordpress.com/2009/02/07/dos-and-donts-when-typesetting-a-document/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 22:52:02 +0000</pubDate>
		<dc:creator>Jie</dc:creator>
				<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://chenfuture.wordpress.com/?p=68</guid>
		<description><![CDATA[The following rules apply when using LaTeX2e&#8230;

In display math mode, use \[ ... \] instead of $$ ... $$.

$$... $$ is simply obsolete.

Use \textbf, \textit instead of \bf, \it.

\bf, \it are obsolete font selection commands. Under New Font Selection Scheme (NFSS), they should be replaced with \textbf, \textit. One immediate difference is that {\it\bf blabla} [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=68&subd=chenfuture&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The following rules apply when using LaTeX2e&#8230;</p>
<ul>
<li><span style="color:#0000ff;">In display math mode, use <code>\[ ... \]</code> instead of <code>$$ ... $$</code>.</span></li>
</ul>
<p><code>$$... $$</code> is simply obsolete.</p>
<ul>
<li><span style="color:#0000ff;">Use <code>\textbf</code>, <code>\textit</code> instead of <code>\bf</code>, <code>\it</code>.</span></li>
</ul>
<p><code>\bf</code>, <code>\it</code> are obsolete font selection commands. Under New Font Selection Scheme (NFSS), they should be replaced with <code>\textbf</code>, <code>\textit</code>. One immediate difference is that <code>{\it\bf blabla}</code> will not generate the composite effect of italic shape and bold series, while <code>\textit{\textbf{blabla}}</code> indeed produces bold italic fonts.</p>
<ul>
<li><span style="color:#0000ff;">Put a tilde before references or citations, e.g., <code>Jie~\cite{habit06}</code>.</span></li>
</ul>
<p>This prevents LaTeX from putting a line break between the word and the citation. Similar cases are: <code>length~$l$</code>, <code>function~$f(x)$</code>, etc.</p>
<ul>
<li><span style="color:#0000ff;">Be cautious when changing the page margin and page layout.</span></li>
</ul>
<p>Studies show that articles with approximately 66 characters per line are the most readable. Reading would become difficult if putting more and more texts into each line. That&#8217;s why you see articles are typeset in multiple columns in a newspaper.</p>
<ul>
<li><span style="color:#0000ff;">Differentiate between text comma and math comma, e.g., type &#8220;<code>for $x=a$, $b$, or~$c$</code>&#8221; instead of &#8220;<code>for $x=a,b$, or $c$</code>&#8221;.</span></li>
</ul>
<p>A line will not break at math comma. That is why sometimes you see an ugly math expression exceeding the right margin of your texts. Also there will not be a white space after the math comma. Hence, in <code>$x=a,b$</code>, the &#8220;b&#8221; character is so close to the comma, which is unpleasant.</p>
<ul>
<li><span style="color:#0000ff;">Use <code>\emph</code> more often than <code>\textit</code> when you mean to emphasize a term or a phase.</span></li>
</ul>
<p>You can easily change the layout of the emphasized content (such as to bold fonts instead of italic fonts) by redefining the <code>\emph</code> command. However, if you use <code>\textit</code>, you will meet a lot of hassles when you want to change the layout.</p>
<ul>
<li><span style="color:#0000ff;">Put a backslash after a dot if the dot does not mean full stop.</span></li>
</ul>
<p><span style="text-decoration:line-through;">Example: &#8220;<code>Please see p.\ 381 for an illustration.</code>&#8221; The backslash after &#8220;<code>p.</code>&#8221; reminds LaTeX that the dot does not mean the end of a sentence, so LaTeX will put a correct white space between the dot and the number 381. Usually the width of the white space is shorter than that between a full stop and the beginning character of the next sentence. More examples are &#8220;<code>Mr.\ Xing</code>&#8221;, &#8220;<code>e.g.\</code>&#8221;, and &#8220;<code>i.e.\</code>&#8221;.</span></p>
<p>(Corrected: Well, none of the above examples are correct&#8230; They should be: &#8220;<code>p.~381</code>&#8221;, &#8220;<code>Mr.~Xing</code>&#8221;, &#8220;<code>e.g.,</code>&#8221;, &#8220;<code>i.e.,</code>&#8221;. But I am sure that the principle itself is ok. Anyone has a good example?)</p>
<ul>
<li><span style="color:#0000ff;">Note the difference between hyphen, en dash, em dash, and a minus sign.</span></li>
</ul>
<p>Hyphen (<code>-</code>) connects the two parts of a compound word, such as in &#8220;<code>anti-virus</code>&#8221;. En dash (<code>--</code>) connects two numbers that define a range, such as in &#8220;<code>pages 1--10</code>&#8221;. Em dash (<code>---</code>) is a punctuation dash. And remember that when you write a negative number, embrace it by the dollar signs, e.g., <code>$-40$</code>.</p>
<ul>
<li><span style="color:#0000ff;">Write ellipsis using <code>\ldots</code> instead of three dots.</span></li>
</ul>
<p>The <code>\ldots</code> commands correctly typeset the spaces between two consecutive dots.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chenfuture.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chenfuture.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chenfuture.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chenfuture.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chenfuture.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chenfuture.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chenfuture.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chenfuture.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chenfuture.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chenfuture.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=68&subd=chenfuture&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chenfuture.wordpress.com/2009/02/07/dos-and-donts-when-typesetting-a-document/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e344ab59b489c2fc1bad4c1c2a47484?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jie</media:title>
		</media:content>
	</item>
		<item>
		<title>Using PSTricks to draw the Olympics Rings</title>
		<link>http://chenfuture.wordpress.com/2008/08/09/using-pstricks-to-draw-the-olympics-rings/</link>
		<comments>http://chenfuture.wordpress.com/2008/08/09/using-pstricks-to-draw-the-olympics-rings/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 05:12:44 +0000</pubDate>
		<dc:creator>Jie</dc:creator>
				<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://chenfuture.wordpress.com/?p=53</guid>
		<description><![CDATA[The other day I ran into a person who&#8217;s asking people to draw the five Olympics rings by writing latex source codes only. I said, well, I could do that, using pstricks, which was my favorite drawing tool in latex.
After inspecting the Olympics logo for a while, I had a rough idea how to draw [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=53&subd=chenfuture&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The other day I ran into a person who&#8217;s asking people to draw the five Olympics rings by writing latex source codes only. I said, well, I could do that, using pstricks, which was my favorite drawing tool in latex.</p>
<p>After inspecting the <a href="http://en.wikipedia.org/wiki/Image:Olympic_flag.svg">Olympics logo</a> for a while, I had a rough idea how to draw it. The key was to draw the five rings in the order: blue, yellow, black, green, and red. For each ring, draw a circle at that color with a certain line width, and then surround the circle with two white slim circles. This gave the salient pattern of the five rings and at the intersection of two rings some whites. The rest of the job was to make the interleaving effect of the five rings instead of seeing the yellow ring placed above the blue ring and so on. The trick was, after drawing the blue and the yellow rings, draw a blue arc at the place where the blue should be on top of the yellow at one of the intersection of the two rings. For the rest of the rings, do the same trick. Drawing the arcs was almost the same as drawing the rings (a colored circle squeezed by two slim white circles), except that an arc was part of a circle from some degree to some degree.</p>
<p>Okay, enough explanation. Here are the pstricks codes.</p>
<blockquote><p><code>% This file draws the Olympic rings using PSTricks.<br />
% File name: rings.tex<br />
% Compile:<br />
%  $ latex rings<br />
%  $ dvips rings -E -o rings.eps<br />
%  $ eps2png -width 600 rings.eps<br />
</code><code><br />
\documentclass{article}<br />
\usepackage[dvipsnames]{pstricks}<br />
\pagestyle{empty}<br />
</code><code><br />
\definecolor{myblue}{rgb}{0,.52,.78}<br />
\definecolor{myyellow}{rgb}{.96,.76,0}<br />
\definecolor{mygreen}{rgb}{0,.62,.24}<br />
\definecolor{myred}{rgb}{.87,0,.14}<br />
</code><code><br />
\newcommand{\drawring}[1]{%<br />
\pscircle[linewidth=.25,linecolor=#1](0,0){1.375}%<br />
\pscircle[linewidth=.05,linecolor=white](0,0){1.425}%<br />
\pscircle[linewidth=.05,linecolor=white](0,0){1.125}%<br />
}<br />
</code><code><br />
\newcommand{\drawarc}[3]{%<br />
\psarc[linewidth=.25,linecolor=#1](0,0){1.25}{#2}{#3}%<br />
\psarc[linewidth=.05,linecolor=white](0,0){1.4}{#2}{#3}%<br />
\psarc[linewidth=.05,linecolor=white](0,0){1.1}{#2}{#3}%<br />
}<br />
</code><code><br />
\begin{document}<br />
</code><code><br />
\color{white}<br />
\fboxsep=0pt<br />
\fbox{<br />
</code><code><br />
\begin{pspicture}(-4.5,-3)(4.5,1.5)<br />
%\psgrid<br />
\rput(-3,0){\drawring{myblue}}<br />
\rput(-1.5,-1.375){\drawring{myyellow}}<br />
\rput(-3,0){\drawarc{myblue}{330}{30}}<br />
\rput(0,0){\drawring{black}}<br />
\rput(-1.5,-1.375){\drawarc{myyellow}{30}{90}}<br />
\rput(1.5,-1.375){\drawring{mygreen}}<br />
\rput(0,0){\drawarc{black}{330}{30}}<br />
\rput(3,0){\drawring{myred}}<br />
\rput(1.5,-1.375){\drawarc{mygreen}{30}{90}}<br />
</code><code><br />
\end{pspicture}<br />
</code><code><br />
}<br />
\end{document}<br />
</code></p></blockquote>
<p>And this is the result:</p>
<p><a href="http://chenfuture.files.wordpress.com/2008/08/rings.png"><img class="aligncenter size-medium wp-image-55" src="http://chenfuture.files.wordpress.com/2008/08/rings.png?w=300&#038;h=147" alt="" width="300" height="147" /></a></p>
<p>Oh, by the way, remember the day this post was initialized, Aug 8, 2008. It&#8217;s the day for which we Chinese have been dreaming for years.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chenfuture.wordpress.com/53/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chenfuture.wordpress.com/53/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chenfuture.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chenfuture.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chenfuture.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chenfuture.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chenfuture.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chenfuture.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chenfuture.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chenfuture.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chenfuture.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chenfuture.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=53&subd=chenfuture&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chenfuture.wordpress.com/2008/08/09/using-pstricks-to-draw-the-olympics-rings/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e344ab59b489c2fc1bad4c1c2a47484?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jie</media:title>
		</media:content>

		<media:content url="http://chenfuture.files.wordpress.com/2008/08/rings.png?w=300" medium="image" />
	</item>
		<item>
		<title>I got a badly conditioned matrix</title>
		<link>http://chenfuture.wordpress.com/2008/04/10/i-got-a-badly-conditioned-matrix/</link>
		<comments>http://chenfuture.wordpress.com/2008/04/10/i-got-a-badly-conditioned-matrix/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 04:11:19 +0000</pubDate>
		<dc:creator>Jie</dc:creator>
				<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://chenfuture.wordpress.com/?p=52</guid>
		<description><![CDATA[A = [0.0031  1         0         0         0         0         0      [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=52&subd=chenfuture&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A = [0.0031  1         0         0         0         0         0         0<br />
       0         0.0031  1         0         0         0         0         0<br />
       0         0         0.0031  1         0         0         0         0<br />
       0         0         0         0.0031  1         0         0         0<br />
       0         0         0         0         0.0031  1         0         0<br />
       0         0         0         0         0         0.0031  1         0<br />
       0         0         0         0         0         0         0.0031  1<br />
       0         0         0         0         0         0         0         0.0031];</p>
<p>Matlab says that its numeric rank is 7.</p>
<p>The interesting thing is that A is a Jordan block!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chenfuture.wordpress.com/52/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chenfuture.wordpress.com/52/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chenfuture.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chenfuture.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chenfuture.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chenfuture.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chenfuture.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chenfuture.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chenfuture.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chenfuture.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chenfuture.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chenfuture.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=52&subd=chenfuture&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chenfuture.wordpress.com/2008/04/10/i-got-a-badly-conditioned-matrix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e344ab59b489c2fc1bad4c1c2a47484?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jie</media:title>
		</media:content>
	</item>
		<item>
		<title>Find all the empty cells?</title>
		<link>http://chenfuture.wordpress.com/2008/03/26/find-all-the-empty-cells/</link>
		<comments>http://chenfuture.wordpress.com/2008/03/26/find-all-the-empty-cells/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 06:45:22 +0000</pubDate>
		<dc:creator>Jie</dc:creator>
				<category><![CDATA[matlab]]></category>

		<guid isPermaLink="false">http://chenfuture.wordpress.com/?p=51</guid>
		<description><![CDATA[Suppose I have a cell array which looks like this:

C =
[]     []              []
[]     []    [3x3 double]
[]     []           [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=51&subd=chenfuture&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Suppose I have a cell array which looks like this:</p>
<blockquote><p><code><br />
C =<br />
[]     []              []<br />
[]     []    [3x3 double]<br />
[]     []              []</code></p></blockquote>
<p>How can I get all the empty cells using as few commands as possible? Well, the answer is &#8230;</p>
<blockquote><p><code>cellfun(@isempty, C)</code></p></blockquote>
<p>So, <code>cellfun</code> is a function that applies a function (<code>isempty</code> here)  to each cell of a cell array (<code>C</code> here). If you enjoy general Matlab functions that implicitly apply to each element of an array (say, <code>sqrt(M)</code> does the square roots to all the elements of <code>M</code>), then you must also enjoy this <code>cellfun</code> function that applies an arbitrary function to each element of a cell array. Check it out!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chenfuture.wordpress.com/51/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chenfuture.wordpress.com/51/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chenfuture.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chenfuture.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chenfuture.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chenfuture.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chenfuture.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chenfuture.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chenfuture.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chenfuture.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chenfuture.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chenfuture.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=51&subd=chenfuture&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chenfuture.wordpress.com/2008/03/26/find-all-the-empty-cells/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e344ab59b489c2fc1bad4c1c2a47484?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jie</media:title>
		</media:content>
	</item>
		<item>
		<title>Math Spacing and Length Units</title>
		<link>http://chenfuture.wordpress.com/2008/03/22/math-spacing-and-length-units/</link>
		<comments>http://chenfuture.wordpress.com/2008/03/22/math-spacing-and-length-units/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 20:36:52 +0000</pubDate>
		<dc:creator>Jie</dc:creator>
				<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://chenfuture.wordpress.com/?p=50</guid>
		<description><![CDATA[整理了一下。忘记了也有地方可以查
Math spacing:


\quad
width of M


\!
-3/18 quad


\,
3/18 quad


\:
4/18 quad


\;
5/18 quad


\
6/18 quad


\qquad
2 quad


Lengths defined relative to characters:


em
width of M



ex
width of x



mu

1 mu = 1/18 em


Physical lengths (commonly used):


mm
millimeter



cm
centimeter



in
inch
1 in = 25.4 mm


pt
point
1 pt = 1/72.27 in


Physical lengths (not so commonly used):


bp
big point
1 bp = 1/72 in


pc
pica
1 pc = 12 pt


sp
scaled point
1 sp = 1/65536 pt


dd
didot point
1 dd = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=50&subd=chenfuture&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>整理了一下。忘记了也有地方可以查</p>
<p><strong>Math spacing:</strong></p>
<table width="200">
<tr>
<td><font color="#0000ff">\quad</font></td>
<td>width of M</td>
</tr>
<tr>
<td><font color="#0000ff">\!</font></td>
<td>-3/18 quad</td>
</tr>
<tr>
<td><font color="#0000ff">\,</font></td>
<td>3/18 quad</td>
</tr>
<tr>
<td><font color="#0000ff">\:</font></td>
<td>4/18 quad</td>
</tr>
<tr>
<td><font color="#0000ff">\;</font></td>
<td>5/18 quad</td>
</tr>
<tr>
<td><font color="#0000ff">\</font></td>
<td>6/18 quad</td>
</tr>
<tr>
<td><font color="#0000ff">\qquad</font></td>
<td>2 quad</td>
</tr>
</table>
<p><strong>Lengths defined relative to characters:</strong></p>
<table>
<tr>
<td width="40"><font color="#0000ff">em</font></td>
<td width="100">width of M</td>
<td width="140"></td>
</tr>
<tr>
<td width="40"><font color="#0000ff">ex</font></td>
<td width="100">width of x</td>
<td width="140"></td>
</tr>
<tr>
<td width="40"><font color="#0000ff">mu</font></td>
<td width="100"></td>
<td width="140">1 mu = 1/18 em</td>
</tr>
</table>
<p><strong>Physical lengths (commonly used):</strong></p>
<table>
<tr>
<td width="40"><font color="#0000ff">mm</font></td>
<td width="100">millimeter</td>
<td width="140"></td>
</tr>
<tr>
<td width="40"><font color="#0000ff">cm</font></td>
<td width="100">centimeter</td>
<td width="140"></td>
</tr>
<tr>
<td width="40"><font color="#0000ff">in</font></td>
<td width="100">inch</td>
<td width="140">1 in = 25.4 mm</td>
</tr>
<tr>
<td width="40"><font color="#0000ff">pt</font></td>
<td width="100">point</td>
<td width="140">1 pt = 1/72.27 in</td>
</tr>
</table>
<p><strong>Physical lengths (not so commonly used):</strong></p>
<table>
<tr>
<td width="40"><font color="#0000ff">bp</font></td>
<td width="100">big point</td>
<td width="140">1 bp = 1/72 in</td>
</tr>
<tr>
<td width="40"><font color="#0000ff">pc</font></td>
<td width="100">pica</td>
<td width="140">1 pc = 12 pt</td>
</tr>
<tr>
<td width="40"><font color="#0000ff">sp</font></td>
<td width="100">scaled point</td>
<td width="140">1 sp = 1/65536 pt</td>
</tr>
<tr>
<td width="40"><font color="#0000ff">dd</font></td>
<td width="100">didot point</td>
<td width="140">1 dd = 1238/1157 pt</td>
</tr>
<tr>
<td width="40"><font color="#0000ff">cc</font></td>
<td width="100">cicero</td>
<td width="140">1 cc = 12 dd</td>
</tr>
</table>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chenfuture.wordpress.com/50/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chenfuture.wordpress.com/50/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chenfuture.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chenfuture.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chenfuture.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chenfuture.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chenfuture.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chenfuture.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chenfuture.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chenfuture.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chenfuture.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chenfuture.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chenfuture.wordpress.com&blog=1061854&post=50&subd=chenfuture&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chenfuture.wordpress.com/2008/03/22/math-spacing-and-length-units/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e344ab59b489c2fc1bad4c1c2a47484?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jie</media:title>
		</media:content>
	</item>
	</channel>
</rss>