<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[xiazdong]]></title><description><![CDATA[本博客已停，移至 xiazdong.me]]></description><link>https://blog.csdn.net/xiazdong</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; xiazdong]]></copyright><item><title><![CDATA[【LaTeX入门】15、在文章中添加脚注]]></title><link>https://blog.csdn.net/xiazdong/article/details/8899213</link><guid>https://blog.csdn.net/xiazdong/article/details/8899213</guid><author>xiazdong</author><pubDate>Wed, 08 May 2013 11:02:43 +0800</pubDate><description><![CDATA[引言


脚注在写论文的时候还是比较常用的，比如本文中会介绍一个很实际的例子，即在一篇论文写完后，会在论文的首页的脚注位置写上作者的一些相关信息。


脚注的应用


一般我们使用脚注时不需要额外使用宏包，只需要在该插入脚注的地方插入\footnote{脚注内容}即可，这样的脚注：


自动编号。首行缩进。

但是一般论文首页脚注位置不需要首行缩进，因此我们引入foot]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】14、如何构造一个固定长度的点线]]></title><link>https://blog.csdn.net/xiazdong/article/details/8899207</link><guid>https://blog.csdn.net/xiazdong/article/details/8899207</guid><author>xiazdong</author><pubDate>Wed, 08 May 2013 11:00:24 +0800</pubDate><description><![CDATA[我们已知 \dotfill 会产生一个填充的点线。
因此可以通过下面的方法：
\makebox[长度]{\dotfill} 
产生一个固定长度的点线。
这个命令可以应用在数学证明中，对每步证明进行说明，如下图：







上图就是使用了 \makebox[2cm]{\dotfill} 来产生固定长度的点线。]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】13、怎样在数学环境输入中文]]></title><link>https://blog.csdn.net/xiazdong/article/details/8899201</link><guid>https://blog.csdn.net/xiazdong/article/details/8899201</guid><author>xiazdong</author><pubDate>Wed, 08 May 2013 10:59:24 +0800</pubDate><description><![CDATA[问题：在数学环境下输入中文是不能显示的。
解决：\mbox{中文}即可。]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】12、参考文献（1）]]></title><link>https://blog.csdn.net/xiazdong/article/details/8899176</link><guid>https://blog.csdn.net/xiazdong/article/details/8899176</guid><author>xiazdong</author><pubDate>Wed, 08 May 2013 10:57:33 +0800</pubDate><description><![CDATA[引言


在写论文时都会在正文中引用一些参考文献，并在最后列出参考文献。
在word中书写参考文献时一定会出现如下场景：
    你在写一篇论文，论文要求“根据引用文献的顺序对参考文献进行编号”，目前你的参考文献有文章 A(当前编号为1)，文章 B（当前编号为2），文章 C（当前编号为3） 这三篇文献，文章中有50处引用了文章A，20处引用了文章B，10处引用了文章C，这时候你发现在文章]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】11、文本居中]]></title><link>https://blog.csdn.net/xiazdong/article/details/8899139</link><guid>https://blog.csdn.net/xiazdong/article/details/8899139</guid><author>xiazdong</author><pubDate>Wed, 08 May 2013 10:50:02 +0800</pubDate><description><![CDATA[\centerline


语法：\centerline{文本}
这是 TeX 的原始命令，适用于居中较短的文本。


center 环境


语法：
\begin{center}
第一行 \\
第二行 \\
\end{center}


center环境可以实现多行居中对齐。
在center环境中，如果“第一行”太长了，则会自动换行，并且换行的文本也还是居中对]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】10、特殊字符]]></title><link>https://blog.csdn.net/xiazdong/article/details/8893386</link><guid>https://blog.csdn.net/xiazdong/article/details/8893386</guid><author>xiazdong</author><pubDate>Tue, 07 May 2013 08:48:56 +0800</pubDate><description><![CDATA[特殊字符输出

$

#

{

}

_

\



特殊字符输入

\$

\#

\{

\}

\_{}

$\backslash$






-：连字符，Hyper-V。
--：数字范围，如1--10。
---：破折号，如 I--- student。]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】09、随机生成几段内容的命令]]></title><link>https://blog.csdn.net/xiazdong/article/details/8893382</link><guid>https://blog.csdn.net/xiazdong/article/details/8893382</guid><author>xiazdong</author><pubDate>Tue, 07 May 2013 08:47:58 +0800</pubDate><description><![CDATA[宏包：lipsum


其实他也不是随机生成段落，而是从公元前45年的古典拉丁文学著作中截取150个段落中挑选段落。
因为这部著作的第一段的前两个词为：Lorem ipsum，因此称为
 lipsum。


\lipsum[1]：显示那部著作的第一段。
\lipsum[1-3]：显示那部著作的第1~3段。
\lipsum[5-8]：显示那部著作的第5~8段。]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】08、将png、bmp、jpg转换成eps]]></title><link>https://blog.csdn.net/xiazdong/article/details/8893380</link><guid>https://blog.csdn.net/xiazdong/article/details/8893380</guid><author>xiazdong</author><pubDate>Tue, 07 May 2013 08:47:14 +0800</pubDate><description><![CDATA[LaTeX中提供了一个 cmd 命令：bmeps


bmeps source.png target.eps：将 source.png 转换为 target.eps ，并且 target.eps 为灰度图。
bmeps -c source.png target.eps：将 source.png 转换为 target.eps ，并且 target.eps 保持 source.png 的颜色。]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】07、水平间隔、竖直间隔等命令设置]]></title><link>https://blog.csdn.net/xiazdong/article/details/8893374</link><guid>https://blog.csdn.net/xiazdong/article/details/8893374</guid><author>xiazdong</author><pubDate>Tue, 07 May 2013 08:46:25 +0800</pubDate><description><![CDATA[水平间隔


\hspace{长度} ： 插入指定距离的水平空白间隔。
\hphantom{文本}：插入指定“文本”宽度的水平空白。
\hfill：填充空白。
\dotfill：以虚线填充空白。
\hrulefill：以直线填充空白。


举例：


1、居中文本







\mbox{}\hfill 居中的文本 \hfill\mbox{}]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】06、设置页芯、页边距、页眉、页脚]]></title><link>https://blog.csdn.net/xiazdong/article/details/8893369</link><guid>https://blog.csdn.net/xiazdong/article/details/8893369</guid><author>xiazdong</author><pubDate>Tue, 07 May 2013 08:44:31 +0800</pubDate><description><![CDATA[设置页芯


在导言区中放入：
\setlength{\textwidth}{页面宽度}
\setlength{\textheight}{页面长度}


设置页边距 、页眉、页脚



下面的例子是一个很真实的例子，设置了页眉、页脚、页边距。


设置页眉页脚必须在 document 环境中设置，不能在导言区设置。
设置页边距必须在 导言区 设置。


红色部]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】05、换行、换段、换页、首行缩进等命令]]></title><link>https://blog.csdn.net/xiazdong/article/details/8892105</link><guid>https://blog.csdn.net/xiazdong/article/details/8892105</guid><author>xiazdong</author><pubDate>Mon, 06 May 2013 19:46:00 +0800</pubDate><description><![CDATA[换行命令


\\：换行。
\\[offset]：换行，并且与下一行的行间距为原来行间距+offset。
\newline：与\\相同。
\linebreak：强制换行，与\newline的区别为\linebreak的当前行分散对齐。


分段命令


\par：分段。


分页命令


\newpage：分页命令。
\clearpage：和 \newpage]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】04、设置行间距、段间距]]></title><link>https://blog.csdn.net/xiazdong/article/details/8892092</link><guid>https://blog.csdn.net/xiazdong/article/details/8892092</guid><author>xiazdong</author><pubDate>Mon, 06 May 2013 19:43:44 +0800</pubDate><description><![CDATA[设置行间距、段间距


段落间距有关变量：


\baselineskip：行基线间距。\lineskip  ：行间距。\baselinestretch：伸展因子。\parskip：部分段间距。\lineskiplimit：当两行字之间的距离小于\lineskiplimit时，行距自动设为\lineskip。
段间距：\lineskip + \parskip

行间距：\line]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】03、设置字体相关命令]]></title><link>https://blog.csdn.net/xiazdong/article/details/8892070</link><guid>https://blog.csdn.net/xiazdong/article/details/8892070</guid><author>xiazdong</author><pubDate>Mon, 06 May 2013 19:41:21 +0800</pubDate><description><![CDATA[设置字体


\CJKfamily{song}：设置为宋体。
\CJKfamily{hei}：设置为黑体。
\CJKfamily{kai}：设置为楷体。


\CJKfamily 命令，他不带有任何参数，他对其后的整个文本起作用，如果想限制作用范围，可以用分组，如这是 {\CJKfamily{song}宋体} 字。
为了使用方便，我们一般会在“导言区”定义下面的命令。]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】02、CJK环境讲解]]></title><link>https://blog.csdn.net/xiazdong/article/details/8892040</link><guid>https://blog.csdn.net/xiazdong/article/details/8892040</guid><author>xiazdong</author><pubDate>Mon, 06 May 2013 19:35:18 +0800</pubDate><description><![CDATA[引言


LaTeX 是外国人发明的，因此默认是不支持中文的。那么怎么使用LaTeX编写出中文的文档呢？
那就使用CJK。CJK 是由 Werner Lemberg 开发的，我们只要使用了CJK这个宏包，就能够在LaTeX文件中显示中文。
关于CJK的配置都不需要我们自己做，CTeX都已经配置好了，我们只要引入宏包即可。


CJK使用简介







1
2]]></description><category></category></item><item><title><![CDATA[【LaTeX入门】01、LaTeX基础知识]]></title><link>https://blog.csdn.net/xiazdong/article/details/8891979</link><guid>https://blog.csdn.net/xiazdong/article/details/8891979</guid><author>xiazdong</author><pubDate>Mon, 06 May 2013 19:29:23 +0800</pubDate><description><![CDATA[TeX介绍


TeX是
Knuth开发的计算机排版系统，原因在于
Knuth
在编写《计算机程序设计艺术》（TAOCP）时，由于编辑部的排版令他不满意，因此他用了10
年的时间编写了 TeX。
TeX是用 π  的近似值作为版本号，并且Knuth 说，等到他死去后，TeX的版本号固定为 pi  ，并且其他人想对TeX改进，则另取名字。
TeX是希腊语，意为“科学”、“艺术”的意]]></description><category></category></item><item><title><![CDATA[在线代码编辑器：Codeanywhere介绍]]></title><link>https://blog.csdn.net/xiazdong/article/details/8564286</link><guid>https://blog.csdn.net/xiazdong/article/details/8564286</guid><author>xiazdong</author><pubDate>Fri, 01 Feb 2013 21:42:06 +0800</pubDate><description><![CDATA[本文分为几个部分：


1.Codeanywhere介绍
2.Codeanywhere使用前奏
3.Codeanywhere与Dropbox连接
4.Codeanywhere改变主题颜色




一、Codeanywhere介绍


Codeanywhere是一个在线的代码编辑器，你可以在浏览器中编写html、css、javascript、php、XML的代码，目前支持]]></description><category></category></item><item><title><![CDATA[散列表总结]]></title><link>https://blog.csdn.net/xiazdong/article/details/8559751</link><guid>https://blog.csdn.net/xiazdong/article/details/8559751</guid><author>xiazdong</author><pubDate>Thu, 31 Jan 2013 15:02:49 +0800</pubDate><description><![CDATA[如果要转载，需要注明出处： http://blog.csdn.net/xiazdong









本文整理自《算法导论》第11章，由于本章有一些概率论知识，因此理解起来比较困难，但是一般只要记住结果即可。
我在面试的时候也被问过：“请问哈希冲突的解决方法有哪些?”，这个问题的答案是：


第一种是链接技术，即用双向链表来链接哈希值相同的元素。这种方法能够有良好性]]></description><category></category></item><item><title><![CDATA[顺序统计学总结]]></title><link>https://blog.csdn.net/xiazdong/article/details/8546127</link><guid>https://blog.csdn.net/xiazdong/article/details/8546127</guid><author>xiazdong</author><pubDate>Sun, 27 Jan 2013 12:38:40 +0800</pubDate><description><![CDATA[如果要转载，需要注明出处： http://blog.csdn.net/xiazdong







先来看一个问题：“给定一个无序的序列，求序列的中位数。”
正常的答案都是“先排序，再取A[n/2]，花费O(nlgn)”，学习完本文后，发现其实能够在O(n)求出中位数。
但是要注意，有些场景下前一种方法更好，比如说：“要分别求第1个顺序统计量、第二个顺序统计量、第三个顺序统计]]></description><category></category></item><item><title><![CDATA[三门问题（蒙提霍尔问题）]]></title><link>https://blog.csdn.net/xiazdong/article/details/8515339</link><guid>https://blog.csdn.net/xiazdong/article/details/8515339</guid><author>xiazdong</author><pubDate>Thu, 17 Jan 2013 22:03:10 +0800</pubDate><description><![CDATA[如果要转载，需要注明出处： http://blog.csdn.net/xiazdong




这道题的来源是算法导论附录C中C.2-9和C.2-10，这道题是很著名的一个问题：三门问题，也称为蒙提霍尔问题




问题描述：


第一种表述：
如果你是一个游戏的参与者,这个游戏的奖品放在三个幕布的其中一个后面，如果你选择了正确的幕布，你就会赢得奖品，如果你选择了一个幕]]></description><category></category></item><item><title><![CDATA[分治法总结]]></title><link>https://blog.csdn.net/xiazdong/article/details/8495204</link><guid>https://blog.csdn.net/xiazdong/article/details/8495204</guid><author>xiazdong</author><pubDate>Fri, 11 Jan 2013 22:36:13 +0800</pubDate><description><![CDATA[如果要转载，需要注明出处： http://blog.csdn.net/xiazdong


在算法导论第三版中将算法导论第二版的“递归式”章节改为了“分治法”，而且加入了“Maximum Subarray”和“strassen矩阵计算”两个问题。
本文依然会在讲解中穿插一些习题，以更好地理解分治法。


一、递归式介绍


分治法其实在很多地方都会看到，比如归并排序、快速排序等]]></description><category></category></item></channel></rss>