<?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>Imagination &#187; latex</title>
	<atom:link href="http://danyifeng.com/category/informatics/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://danyifeng.com</link>
	<description>Logic will get you from A to B. Imagination will take you everywhere.</description>
	<lastBuildDate>Sun, 01 Jan 2012 05:27:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>css&#124;概要与标准简介</title>
		<link>http://danyifeng.com/2009/03/17/css%e6%a6%82%e8%a6%81%e4%b8%8e%e6%a0%87%e5%87%86%e7%ae%80%e4%bb%8b/</link>
		<comments>http://danyifeng.com/2009/03/17/css%e6%a6%82%e8%a6%81%e4%b8%8e%e6%a0%87%e5%87%86%e7%ae%80%e4%bb%8b/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 15:15:34 +0000</pubDate>
		<dc:creator>小单</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://danyifeng.com/?p=10520</guid>
		<description><![CDATA[CSS 指层叠样式表 (Cascading Style Sheets)， 实现了内容与表现分， 极大的提高了实现效率， 并支持多层重叠。 重叠的优先级（由高到低）是 内联样式（在 HTML 元素内部），内部样式表（位于 &#60;head&#62; 标签内部），外部样式表， 浏览器缺省设置。 Index 索引 索引是更好的帮助我们或者他人来了解网站 还有你css的内容。 基本格式如下 Anchors 锚点 锚点就像css种的书签， 因为css种没有锚点系统。 所以我们可以用下面的方式来定义锚点 Classitis 重定义 重定义用于从新定义某个class里面的元素的style Naming Convention 命名规则 尽量给出准确清晰的名字， 避免混淆， 为了更好的理解 css的内容。 Shorthand 速写 尽量保持代码简洁短小 Sprites 把所有的背景图（不同的action时候的变化， 比如hover）放在一个图片中，在点击的时候只是位置的变化， 这样就可以减少对http的请求次数。 Specificity 明确性 Resets 重置 全局属性重置确保一个网站在所有浏览器中显示几乎一样。在每一个案例中，不同的浏览器给所有网站使用它们自己的默认样式设置集，这将使我们的网站在不同的浏览器中显示不一样。全局属性重置将改正这种情况并让你从绝对一致的基础开始建立网站。 总是要重置某些分类。无论你是使用 Eric Meyer Reset、YUI Reset 或者你自己编写的重置代码，只要使用就对了。 它能很简单的移除所有元素的填充（padding）和边距（margin）： html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, ]]></description>
			<content:encoded><![CDATA[<p>CSS 指层叠样式表 (<em>C</em>ascading <em>S</em>tyle <em>S</em>heets)， 实现了内容与表现分， 极大的提高了实现效率， 并支持多层重叠。 重叠的优先级（由高到低）是 内联样式（在 HTML 元素内部），内部样式表（位于 &lt;head&gt; 标签内部），外部样式表， 浏览器缺省设置。</p>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;">Index 索引</span></span></p>
<p><span style="color: #888888;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 20px;">索引是更好的帮助我们或者他人来了解网站 还有你css的内容。 基本格式如下</span></span></span></p>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></p>
<div class="wp-caption aligncenter" style="width: 526px"><img title="Index" src="http://www.dezinerfolio.com/system/files/articles/index.gif" alt="Index of css" width="516" height="363" /><p class="wp-caption-text">Index of css</p></div>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;">Anchors 锚点</span></span></p>
<p><span style="color: #888888;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 20px;">锚点就像css种的书签， 因为css种没有锚点系统。 所以我们可以用下面的方式来定义锚点</span></span></span></p>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></p>
<div class="wp-caption aligncenter" style="width: 526px"><img title="anchors" src="http://www.dezinerfolio.com/system/files/articles/anchor.gif" alt="anchors definition" width="516" height="469" /><p class="wp-caption-text">anchors definition</p></div>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;">Classitis 重定义</span></span></p>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;"><span style="color: #888888;">重定义用于从新定义某个class里面的元素的style</span><br />
</span></span></p>
<div class="wp-caption aligncenter" style="width: 525px"><img title="classitis" src="http://www.dezinerfolio.com/system/files/articles/classitis.gif" alt="classitis" width="515" height="421" /><p class="wp-caption-text">classitis</p></div>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;">Naming Convention 命名规则</span></span></p>
<p><span style="color: #888888;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 20px;">尽量给出准确清晰的名字， 避免混淆， 为了更好的理解 css的内容。</span></span></span></p>
<p style="text-align: center;"><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></p>
<div class="wp-caption aligncenter" style="width: 536px"><img title="命名规则" src="http://www.dezinerfolio.com/system/files/articles/name.gif" alt="命名规则" width="526" height="93" /><p class="wp-caption-text">命名规则</p></div>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;">Shorthand 速写</span></span></p>
<p><span style="color: #888888;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 20px;">尽量保持代码简洁短小</span></span></span></p>
<p style="text-align: center;"><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></p>
<div class="wp-caption aligncenter" style="width: 536px"><img title="保持简洁" src="http://www.dezinerfolio.com/system/files/articles/shorthand.gif" alt="保持简洁短小" width="526" height="333" /><p class="wp-caption-text">保持简洁短小</p></div>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;">Sprites</span></span></p>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;"><span style="color: #000000;"><span style="color: #888888;">把所有的背景图（不同的action时候的变化， 比如hover）放在一个图片中，在点击的时候只是位置的变化， 这样就可以减少对http的请求次数。</span> </span></span></span></p>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></p>
<div class="wp-caption aligncenter" style="width: 560px"><img title="sprites , apple menu" src="http://www.dezinerfolio.com/system/files/articles/sprite-1.gif" alt="sprites , apple menu" width="550" height="85" /><p class="wp-caption-text">sprites , apple menu</p></div>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;">Specificity 明确性</span></span></p>
<p><span style="color: #000000;"></span></p>
<div class="wp-caption aligncenter" style="width: 560px"><img title="specificity" src="http://www.dezinerfolio.com/system/files/articles/specificity.gif" alt="specificity" width="550" height="129" /><p class="wp-caption-text">specificity</p></div>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;"><br />
</span></span></p>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;">Resets 重置<br />
</span></span><span style="color: #888888;"><span class="Apple-style-span" style="border-collapse: separate; font-family: arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 13px;">全局属性重置确保一个网站在所有浏览器中显示几乎一样。在每一个案例中，不同的浏览器给所有网站使用它们自己的默认样式设置集，这将使我们的网站在不同的浏览器中显示不一样。<strong>全局属性重置</strong>将改正这种情况并让你从绝对一致的基础开始建立网站。 </span></span><strong>总是要重置某些分类</strong>。无论你是使用 <a href="http://meyerweb.com/eric/tools/css/reset/index.html">Eric Meyer Reset</a>、<a href="http://developer.yahoo.com/yui/reset/">YUI Reset</a></span></p>
<p><span style="color: #888888;">或者你自己编写的重置代码，只要使用就对了。</span></p>
<p><span style="color: #888888;">它能很简单的移除所有元素的填充（padding）和边距（margin）：</span></p>
<ol>
<li><span style="color: #888888;">html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote,</span></li>
<li><span style="color: #888888;"><span class="string">pre</span>, form, fieldset, table, th, td { <span class="keyword">margin</span>: 0; <span class="keyword">padding</span>: 0; }</span></li>
</ol>
<div class="wp-caption aligncenter" style="width: 533px"><img title="resets" src="http://www.dezinerfolio.com/system/files/articles/reset.gif" alt="resets" width="523" height="204" /><p class="wp-caption-text">resets</p></div>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;">Hacks </span></span></p>
<p><span style="color: #888888;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 20px;">浏览器兼容性而引发的。。为了保证不同的浏览器看起来是差不多 我们或许会用的css hacks</span></span></span></p>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span></p>
<div class="wp-caption aligncenter" style="width: 526px"><img title="hacks" src="http://www.dezinerfolio.com/system/files/articles/hacks.gif" alt="hacks" width="516" height="95" /><p class="wp-caption-text">hacks</p></div>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;">Validation 验证</span></span></p>
<p><span style="color: #888888;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 13px; line-height: 20px;">The W3C Validator has been a very popular online tool that validates CSS.</span></span></span></p>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #ff3300; font-family: 'Lucida Grande'; font-size: 20px;">Css 属性的书写顺序</span></span></p>
<p><span style="color: #888888;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 20px;">为了快速的找到我们需要的熟悉， 如果有一个很好的属性排序，就可以很快速的找到。</span></span></span></p>
<p><span style="color: #888888;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 20px;">之前看到有人写按字母排序， lifesinger 在他的blog里面也提过这个问题。 这个并没有一个固定的标准 不同的人 有不同的书写习惯。lifesinger给出了他的分类方式， 个人觉得还是很容易理解跟记住的 先记下来 试试看。<br />
</span></span></span></p>
<ol>
<li><span style="color: #888888;">影响文档流的属性（比如：display, position, float, clear, visibility, table-layout等）</span></li>
<li><span style="color: #888888;">自身盒模型的属性（比如：width, height, margin, padding, border等）</span></li>
<li><span style="color: #888888;">排版相关属性（比如：font, line-height, text-align, text-indent, vertical-align等等）</span></li>
<li><span style="color: #888888;">装饰性属性（比如：color, background, opacity, cursor等）</span></li>
<li><span style="color: #888888;">生成内容的属性（比如：content, list-style, quotes等）</span></li>
</ol>
<p><span style="color: #888888;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 13px; line-height: 20px;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span></span></span></p>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #444444; font-family: 'Lucida Grande'; font-size: 13px; line-height: 20px;"><span style="color: #888888;">学习完毕 继续代码</span><br />
</span></span></p>
<p>reference：</p>
<p><span style="color: #888888;">1. <a href="http://www.dezinerfolio.com/2009/02/20/css-standards-best-practices"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Segoe UI'; font-size: 12px; white-space: pre;">http://www.dezinerfolio.com/2009/02/20/css-standards-best-practices</span></span></a></span></p>
<p><span style="color: #888888;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Segoe UI'; font-size: 12px; white-space: pre;">2. <a href="http://lifesinger.org/blog/?p=1360">http://lifesinger.org/blog/?p=1360</a></span></span></span></p>
n178]]></content:encoded>
			<wfw:commentRss>http://danyifeng.com/2009/03/17/css%e6%a6%82%e8%a6%81%e4%b8%8e%e6%a0%87%e5%87%86%e7%ae%80%e4%bb%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>页面设置，table</title>
		<link>http://danyifeng.com/2009/03/05/latex/</link>
		<comments>http://danyifeng.com/2009/03/05/latex/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 12:03:25 +0000</pubDate>
		<dc:creator>小单</dc:creator>
				<category><![CDATA[latex]]></category>
		<category><![CDATA[fontsize]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://danyifeng.com/?p=10495</guid>
		<description><![CDATA[今天作一个martix 结果页面过宽 想看看怎么设置layout， 让页面横着 Page Orientation \usepackage[a4paper,landscape]{geometry} 然后是页面margin的设置 同样是用这个包  \usepackage[a4paper,landscape,top=80px, bottom=80px, left=80px, right=80px]{geometry} latex基本上的页面设置都是应该是用这个包完成的 geometry Table 的问题 基本结构是这样 \begin{table} \large{ \begin{tabular}{&#124;l&#124;&#124;l&#124;l&#124;} \hline a&#38;a&#38;a\\ \hline \end{tabular} } \caption{} \end{table} 字体问题： 设置全局 最大就是12pt了。 局部改： Command Nominal Point Size Exact Point Size \tiny 5 5 \scriptsize 7 7 \footnotesize 8 8 \small 9 9 \normalsize 10 10 \large ]]></description>
			<content:encoded><![CDATA[<p>今天作一个martix 结果页面过宽 想看看怎么设置layout， 让页面横着</p>
<h3>Page Orientation</h3>
<pre>\usepackage[a4paper,landscape]{geometry}

然后是页面margin的设置 同样是用这个包
 \usepackage[a4paper,landscape,top=80px, bottom=80px, left=80px, right=80px]{geometry}

latex基本上的页面设置都是应该是用这个包完成的 <strong>geometry

Table</strong> 的问题 基本结构是这样
\begin{table}
\large{
\begin{tabular}{|l||l|l|}
\hline
a&amp;a&amp;a\\
\hline
\end{tabular}
}
\caption{}
\end{table}
<strong>
</strong>字体问题： 设置全局 最大就是12pt了。
局部改：</pre>
<table style="height: 224px;" border="0" width="398" bgcolor="#ffffcc">
<tbody>
<tr>
<th>Command</th>
<th>Nominal Point Size</th>
<th>Exact Point Size</th>
</tr>
<tr>
<td><strong>\tiny</strong></td>
<td>5</td>
<td>5</td>
</tr>
<tr>
<td><strong>\scriptsize</strong></td>
<td>7</td>
<td>7</td>
</tr>
<tr>
<td><strong>\footnotesize</strong></td>
<td>8</td>
<td>8</td>
</tr>
<tr>
<td><strong>\small</strong></td>
<td>9</td>
<td>9</td>
</tr>
<tr>
<td><strong>\normalsize</strong></td>
<td>10</td>
<td>10</td>
</tr>
<tr>
<td><strong>\large</strong></td>
<td>12</td>
<td>12</td>
</tr>
<tr>
<td><strong>\Large</strong></td>
<td>14</td>
<td>14.40</td>
</tr>
<tr>
<td><strong>\LARGE</strong></td>
<td>18</td>
<td>17.28</td>
</tr>
<tr>
<td><strong>\huge</strong></td>
<td>20</td>
<td>20.74</td>
</tr>
<tr>
<td><strong>\Huge</strong></td>
<td>24</td>
<td>24.88</td>
</tr>
</tbody>
</table>
n181]]></content:encoded>
			<wfw:commentRss>http://danyifeng.com/2009/03/05/latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 下 中文latex配置（cjk）</title>
		<link>http://danyifeng.com/2009/02/11/ubuntu-%e4%b8%8b-%e4%b8%ad%e6%96%87latex%e9%85%8d%e7%bd%ae%ef%bc%88cjk%ef%bc%89/</link>
		<comments>http://danyifeng.com/2009/02/11/ubuntu-%e4%b8%8b-%e4%b8%ad%e6%96%87latex%e9%85%8d%e7%bd%ae%ef%bc%88cjk%ef%bc%89/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 01:50:41 +0000</pubDate>
		<dc:creator>小单</dc:creator>
				<category><![CDATA[Informatics]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[cjk]]></category>
		<category><![CDATA[latex，cjk，ubuntu]]></category>
		<category><![CDATA[texlive]]></category>

		<guid isPermaLink="false">http://danyifeng.com/?p=10472</guid>
		<description><![CDATA[然然发了梦先生1990年出的散文集《盛世边缘》， txt的格式看的非常痛苦。 就当休闲， 边看边改成pdf的格式。 才发现一直没有配置中文环境 又问了谷哥 ， 谷哥是个好老师。。恩 备份一下 免得以后忘记 资料来源 1) 安装texlive sudo apt-get install texlive-full latex-beamer dvipdfmx 2) 安装cjk sudo apt-get install latex-cjk-all 3) 安装字体 下载字体： ftp://cle.linux.org.tw/pub2/tex/cjk/fonts/nsungt1/nsungt1-1.4.2.tar.gz (宋体) ftp://cle.linux.org.tw/pub2/tex/cjk/fonts/nkait1/nkait1-1.4.2.tar.gz (楷体) 下载解压后，进入目录执行install.sh脚本 ./install.sh 4) 测试 打开你的编辑器。。 输入以下内容： \documentclass{article} \usepackage{CJK} \begin{document} \begin{CJK}{UTF8}{nsung} 你好！这里是Ubuntu下的TexLive+CJK环境！ \end{CJK} \begin{CJK}{UTF8}{nkai} 你好！这里是Ubuntu下的TexLive+CJK环境！ \end{CJK} \end{document} 保存退出，再输入以下命令： pdflatex test.tex 即可生成test.pdf n]]></description>
			<content:encoded><![CDATA[<p>然然发了梦先生1990年出的散文集《盛世边缘》， txt的格式看的非常痛苦。 就当休闲， 边看边改成pdf的格式。 才发现一直没有配置中文环境</p>
<p>又问了谷哥 ， 谷哥是个好老师。。恩 备份一下 免得以后忘记 <a href="http://www.linuxidc.com/Linux/2008-08/14715.htm">资料来源</a></p>
<p>1) 安装texlive<br />
sudo apt-get install texlive-full latex-beamer dvipdfmx</p>
<p>2) 安装cjk<br />
sudo apt-get install latex-cjk-all</p>
<p>3) 安装字体<br />
下载字体：<br />
ftp://cle.linux.org.tw/pub2/tex/cjk/fonts/nsungt1/nsungt1-1.4.2.tar.gz (宋体)<br />
ftp://cle.linux.org.tw/pub2/tex/cjk/fonts/nkait1/nkait1-1.4.2.tar.gz (楷体)<br />
下载解压后，进入目录执行install.sh脚本<br />
./install.sh</p>
<p>4) 测试<br />
打开你的编辑器。。<br />
输入以下内容：<br />
\documentclass{article}<br />
\usepackage{CJK}<br />
\begin{document}<br />
\begin{CJK}{UTF8}{nsung}<br />
你好！这里是<a title="Ubuntu" href="http://www.linuxidc.com/topicnews.aspx?tid=2">Ubuntu</a>下的TexLive+CJK环境！</p>
<p>\end{CJK}<br />
\begin{CJK}{UTF8}{nkai}<br />
你好！这里是<a title="Ubuntu" href="http://www.linuxidc.com/topicnews.aspx?tid=2">Ubuntu</a>下的TexLive+CJK环境！<br />
\end{CJK}<br />
\end{document}<br />
保存退出，再输入以下命令：<br />
pdflatex test.tex<br />
即可生成test.pdf</p>
<p><!--IWMS_AD_BEGIN--></p>
n270]]></content:encoded>
			<wfw:commentRss>http://danyifeng.com/2009/02/11/ubuntu-%e4%b8%8b-%e4%b8%ad%e6%96%87latex%e9%85%8d%e7%bd%ae%ef%bc%88cjk%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

