﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-I believe-随笔分类-Latex</title><link>http://www.cppblog.com/luyulaile/category/19842.html</link><description>I  can</description><language>zh-cn</language><lastBuildDate>Fri, 23 Nov 2012 16:13:35 GMT</lastBuildDate><pubDate>Fri, 23 Nov 2012 16:13:35 GMT</pubDate><ttl>60</ttl><item><title>Latex 表格</title><link>http://www.cppblog.com/luyulaile/archive/2012/11/22/195518.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Wed, 21 Nov 2012 17:07:00 GMT</pubDate><guid>http://www.cppblog.com/luyulaile/archive/2012/11/22/195518.html</guid><wfw:comment>http://www.cppblog.com/luyulaile/comments/195518.html</wfw:comment><comments>http://www.cppblog.com/luyulaile/archive/2012/11/22/195518.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyulaile/comments/commentRss/195518.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyulaile/services/trackbacks/195518.html</trackback:ping><description><![CDATA[<div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; "><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->\begin{tabular}{|c|c|c|c|c|c|}<br />\hline&nbsp;<br />Accuracy&nbsp;&amp;&nbsp;General&nbsp;&amp;&nbsp;test&nbsp;1&nbsp;&amp;&nbsp;test&nbsp;2&nbsp;&amp;&nbsp;test&nbsp;3&nbsp;&amp;&nbsp;test&nbsp;4\tabularnewline<br />\hline&nbsp;<br /><br />Linear&nbsp;&nbsp;&amp;&nbsp;0.8950695&nbsp;&nbsp;&amp;&nbsp;0.8817864&nbsp;&amp;&nbsp;0.8884132&nbsp;&nbsp;&amp;&nbsp;0.8884036&nbsp;&nbsp;&amp;&nbsp;0.9217801<br />\tabularnewline<br />\hline&nbsp;<br /><br />Polynomial&nbsp;Degree=2&nbsp;&amp;&nbsp;0.927821&nbsp;&nbsp;&amp;&nbsp;0.9118337&nbsp;&amp;&nbsp;0.934325&nbsp;&amp;&nbsp;0.913003&nbsp;&amp;<br />0.9335226\tabularnewline<br />\hline&nbsp;<br />Polynomial&nbsp;Degree=2&nbsp;&amp;&nbsp;0.8350725&nbsp;&nbsp;&amp;&nbsp;0.8317865&nbsp;&amp;&nbsp;0.8285052&nbsp;&nbsp;&amp;&nbsp;0.8278306&nbsp;&nbsp;&amp;<br />0.852091<br />\tabularnewline<br />\hline&nbsp;<br />Polynomial&nbsp;Degree=3&nbsp;&amp;&nbsp;0.770894&nbsp;&amp;&nbsp;0.7539803&nbsp;&nbsp;&amp;&nbsp;0.7510282&nbsp;&amp;&nbsp;&nbsp;0.7762011&nbsp;&amp;<br />0.7821553\tabularnewline<br />\hline&nbsp;<br />Polynomial&nbsp;Degree=4&nbsp;&amp;&nbsp;0.7172013&nbsp;&amp;&nbsp;0.685079&nbsp;&amp;&nbsp;0.6988003&nbsp;&amp;&nbsp;0.7329987&nbsp;&amp;<br />0.7520278\tabularnewline<br /><br />\hline&nbsp;<br />\end{tabular}<br /><br /><br />=========================<br /><br /><br /><div style="margin: 0px; word-wrap: break-word; color: #333333; font-family: Tahoma, Helvetica, SimSun, sans-serif, Hei; font-size: 14px; line-height: 25px; background-color: #ffffff; "><ul style="margin: 1em 2em; padding: 0px; word-wrap: break-word; "><li style="margin: 0px; padding: 0px; word-wrap: break-word; list-style: disc; "><div style="margin: 0px; word-wrap: break-word; ">Type one:</div></li></ul><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">%%%%%%%%%%简单表格%%%%%%%%%%</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\begin{tabular}{|c|c|}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">a &amp; b \\\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">c &amp; d\\</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\end{tabular}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; "></p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">&nbsp;</p><ul style="margin: 1em 2em; padding: 0px; word-wrap: break-word; "><li style="margin: 0px; padding: 0px; word-wrap: break-word; list-style: disc; "><div style="margin: 0px; word-wrap: break-word; ">Type two:</div></li></ul><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">%%%%%%%%%%简单表格,居中(一)%%%%%%%%%%</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\begin{center}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\begin{tabular}{|c|c|}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">a &amp; b \\\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">c &amp; d\\</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\end{tabular}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\end{center}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; "></p><p style="margin: 0px; padding: 0px; word-wrap: break-word; "></p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">&nbsp;</p><ul style="margin: 1em 2em; padding: 0px; word-wrap: break-word; "><li style="margin: 0px; padding: 0px; word-wrap: break-word; list-style: disc; "><div style="margin: 0px; word-wrap: break-word; ">Type three:</div></li></ul><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">%%%%%%%%%%简单表格,居中（二）%%%%%%%%%%</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\centering</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\begin{tabular}{|c|c|}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">a &amp; b \\\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">c &amp; d\\</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\end{tabular}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; "></p><p style="margin: 0px; padding: 0px; word-wrap: break-word; "></p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">This a Table~<span id="MathJax-Element-1-Frame" role="textbox" aria-readonly="true" style="margin: 0px; padding: 0px; word-wrap: normal; display: inline; line-height: normal; word-spacing: normal; white-space: nowrap; float: none; direction: ltr; border: 0px; "><nobr style="margin: 0px; padding: 0px; word-wrap: break-word; border: 0px; max-width: none; max-height: none; vertical-align: 0px; "><span id="MathJax-Span-1" style="margin: 0px; padding: 0px; word-wrap: break-word; display: inline; position: static; border: 0px; vertical-align: 0px; float: none; "><span style="margin: 0px; padding: 0px; word-wrap: break-word; display: inline-block; position: relative; border: 0px; vertical-align: 0px; width: 16px; height: 0px; font-size: 18px; "><span style="margin: 0px; padding: 0px; word-wrap: break-word; position: absolute; border: 0px; vertical-align: 0px; clip: rect(23px 18480px 42px -9px); top: -39px; left: 0px; "><span id="MathJax-Span-2" style="margin: 0px; padding: 0px; word-wrap: break-word; display: inline; position: static; border: 0px; vertical-align: 0px; float: none; "><a href="http://blog.sciencenet.cn/#mjx-eqn-tabtable" style="margin: 0px; padding: 0px; word-wrap: break-word; color: #3c384f; text-decoration: none; border: 0px; max-width: none; max-height: none; vertical-align: 0px; "><span mathjax_ref"="" id="MathJax-Span-3" style="margin: 0px; padding: 0px; word-wrap: break-word; display: inline; position: static; border: 0px; vertical-align: 0px; float: none; "><span id="MathJax-Span-4" style="margin: 0px; padding: 0px; word-wrap: break-word; display: inline; position: static; border: 0px; vertical-align: 0px; float: none; font-family: MathJax_Main; ">??</span></span></a></span></span></span></span></nobr></span></p><p style="margin: 0px; padding: 0px; word-wrap: break-word; "></p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">&nbsp;</p><ul style="margin: 1em 2em; padding: 0px; word-wrap: break-word; "><li style="margin: 0px; padding: 0px; word-wrap: break-word; list-style: disc; "><div style="margin: 0px; word-wrap: break-word; ">Type four:</div></li></ul><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">%%%%%%%%%%简单表格,居中,标题，编号,固定位置%%%%%%%%%%</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\begin{table}[h]</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\centering</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\caption{table}\label{tab:table}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\begin{tabular}{|c|c|}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">a &amp; b \\\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">c &amp; d\\</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\hline</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\end{tabular}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\end{table}</p><ul style="margin: 1em 2em; padding: 0px; word-wrap: break-word; "><li style="margin: 0px; padding: 0px; word-wrap: break-word; list-style: disc; "><div style="margin: 0px; word-wrap: break-word; ">Type five:</div></li></ul><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">%%%%%%%%%%一个完整的例子%%%%%%%%%%</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">%%%%%%%%%%%%%%%%%%%%Beginning of Table example%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\begin{table}[ht]</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\caption{Review paper} % title of Table</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\centering % used for centering table</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\begin{tabular}{|c|c|} % centered columns (2 columns)</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\hline\hline %inserts double horizontal lines</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">Item 1 &amp; Item 2 \\ [0.5ex] % inserts table heading</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\hline % inserts single horizontal line</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">a &amp; b \\ % inserting body of the table</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">c &amp; d \\</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">e &amp; f \\[1.5ex] % [1.5ex] adds vertical space</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\hline %inserts single line</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\end{tabular}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\label{table:nonlin} % is used to refer this table in the text</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">\end{table}</p><p style="margin: 0px; padding: 0px; word-wrap: break-word; ">%%%%%%%%%%%%%%%%%% end of the example%%%%%%%%%%%%%%%%%%%%%%%%%</p></div></div><img src ="http://www.cppblog.com/luyulaile/aggbug/195518.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyulaile/" target="_blank">luis</a> 2012-11-22 01:07 <a href="http://www.cppblog.com/luyulaile/archive/2012/11/22/195518.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Latex 多个图片</title><link>http://www.cppblog.com/luyulaile/archive/2012/11/16/195250.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Thu, 15 Nov 2012 19:43:00 GMT</pubDate><guid>http://www.cppblog.com/luyulaile/archive/2012/11/16/195250.html</guid><wfw:comment>http://www.cppblog.com/luyulaile/comments/195250.html</wfw:comment><comments>http://www.cppblog.com/luyulaile/archive/2012/11/16/195250.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyulaile/comments/commentRss/195250.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyulaile/services/trackbacks/195250.html</trackback:ping><description><![CDATA[<div><div>\usepackage{subfigure}</div>注意不用用 {subfig}<br />\begin{figure}[ht]</div><div>\centering</div><div>\subfigure[$\alpha$=0.5,$\gamma$=0.9,$\epsilon$=0.01]{</div><div>&nbsp; &nbsp;\includegraphics[width=4.4in] {2.png}</div><div>&nbsp;}</div><div>&nbsp;\subfigure[$\alpha$=0.7,$\gamma$=0.9,$\epsilon$=0.01]{</div><div>&nbsp; &nbsp;\includegraphics[width=4.4in] {3.png}</div><div>&nbsp;}</div><div>&nbsp;\subfigure[$\alpha$=0.9,$\gamma$=0.9,$\epsilon$=0.01]{</div><div>&nbsp; &nbsp;\includegraphics[width=4.4in] {4.png}</div><div>&nbsp;}</div><div>&nbsp;\subfigure[$\alpha$=0.7,$\gamma$=0.9,$\epsilon$=0.1]{</div><div>&nbsp; &nbsp;\includegraphics[width=4.4in] {5.png}</div><div>&nbsp;}</div><div>&nbsp;\subfigure[$\alpha$=0.7,$\gamma$=0.9,$\epsilon$=0.2]{</div><div>&nbsp; &nbsp;\includegraphics[width=4.4in] {6.png}</div><div>&nbsp;}</div><div>&nbsp;\subfigure[$\alpha$=0.7,$\gamma$=0.6,$\epsilon$=0.01]{</div><div>&nbsp; &nbsp;\includegraphics[width=4.4in] {1.png}</div><div>&nbsp;}</div><div>\end{figure}</div><div></div><img src ="http://www.cppblog.com/luyulaile/aggbug/195250.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyulaile/" target="_blank">luis</a> 2012-11-16 03:43 <a href="http://www.cppblog.com/luyulaile/archive/2012/11/16/195250.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Latex 多行公式</title><link>http://www.cppblog.com/luyulaile/archive/2012/11/06/194700.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Mon, 05 Nov 2012 22:29:00 GMT</pubDate><guid>http://www.cppblog.com/luyulaile/archive/2012/11/06/194700.html</guid><wfw:comment>http://www.cppblog.com/luyulaile/comments/194700.html</wfw:comment><comments>http://www.cppblog.com/luyulaile/archive/2012/11/06/194700.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyulaile/comments/commentRss/194700.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyulaile/services/trackbacks/194700.html</trackback:ping><description><![CDATA[<div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; "><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->\newcommand{\parenthnewln}[1]{\right.\\<span style="color: #008000; ">#</span><span style="color: #008000; ">1&amp;\left.{}}</span><span style="color: #008000; "><br /></span>\begin{equation}<br />\begin{split}<br />f(x)=1+&amp;g(x)\\<br />=1+&amp;\left(x+x^2+\dots<br />\parenthnewln{+}x^n+\ldots\right)<br />\end{split}<br />\end{equation}</div><br />得到：<br /><img src="http://www.cppblog.com/images/cppblog_com/luyulaile/未命名.jpg" border="0" alt="" width="226" height="89" /><br /><div> <img src="file:///C:\Users\yilu\AppData\Roaming\Tencent\Users\349826924\QQ\WinTemp\RichOle\P72YO9@${ZVI[T@@GCFXONX.jpg"  alt="" /></div><img src ="http://www.cppblog.com/luyulaile/aggbug/194700.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyulaile/" target="_blank">luis</a> 2012-11-06 06:29 <a href="http://www.cppblog.com/luyulaile/archive/2012/11/06/194700.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Latex 中插入代码</title><link>http://www.cppblog.com/luyulaile/archive/2012/10/31/194135.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Wed, 31 Oct 2012 13:30:00 GMT</pubDate><guid>http://www.cppblog.com/luyulaile/archive/2012/10/31/194135.html</guid><wfw:comment>http://www.cppblog.com/luyulaile/comments/194135.html</wfw:comment><comments>http://www.cppblog.com/luyulaile/archive/2012/10/31/194135.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyulaile/comments/commentRss/194135.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyulaile/services/trackbacks/194135.html</trackback:ping><description><![CDATA[<h2><span id="Typesetting_using_the_algorithm2e_package"><a href="http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode">http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode</a>&nbsp;<br />Typesetting using the&nbsp;<tt style="font-family: monospace, Courier; ">algorithm2e</tt>&nbsp;package</span></h2><p style="margin: 0.4em 0px 0.5em; line-height: 19.200000762939453px; font-family: sans-serif; font-size: 13px; background-color: #ffffff; ">The&nbsp;<tt style="font-family: monospace, Courier; ">algorithm2e</tt>&nbsp;package (first released 1995, latest updated December 2009 according to the&nbsp;<a rel="nofollow"  text"="" href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/algorithm2e/algorithm2e.pdf" target="_blank" style="text-decoration: none; color: #663366; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAATklEQVR4XmXKQQqAMAwF0X/7XsSz9CSKiyIIFRFcjMmihmiGbB5fqDCaQJ4j46pzYLUWe+cXZ6OVBhTS0srY2Njp/+XxXXZOLu6EUWAOPX1vnwTBe6qQAAAAAElFTkSuQmCC); padding-right: 13px; background-position: 100% 50%; background-repeat: no-repeat no-repeat; ">v4.01 manual</a>) allows typesetting algorithms with a lot of customization. The package is loaded like</p><div dir="ltr" mw-code=""  mw-content-ltr"="" style="font-family: monospace, Courier; direction: ltr; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.1em; font-size: 13px; "><div source-latex"="" style="line-height: normal; font-family: monospace; "><pre style="padding: 0px; border: 0px none white; line-height: 1.2em; font-size: 1em; margin-top: 0px; margin-bottom: 0px; background-image: none; vertical-align: top; "><span style="color: #e02020; ">\</span><span style="color: #800000; ">usepackage</span><span style="color: #e02020; ">[</span><span style="color: #c08020; ">options</span><span style="color: #e02020; ">]{</span><span style="color: #2020c0; ">algorithm2e</span><span style="color: #e02020; ">}</span> </pre></div></div><p style="margin: 0.4em 0px 0.5em; line-height: 19.200000762939453px; font-family: sans-serif; font-size: 13px; background-color: #ffffff; ">and a simple example, taken from the v4.01 manual, is</p><div dir="ltr" mw-code=""  mw-content-ltr"="" style="font-family: monospace, Courier; direction: ltr; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.1em; font-size: 13px; "><div source-latex"="" style="line-height: normal; font-family: monospace; "><pre style="padding: 0px; border: 0px none white; line-height: 1.2em; font-size: 1em; margin-top: 0px; margin-bottom: 0px; background-image: none; vertical-align: top; "><div style="background-color: #eeeeee; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; "><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->\begin{algorithm}[H]<br />&nbsp;\SetAlgoLined<br />&nbsp;\KwData{this&nbsp;text}<br />&nbsp;\KwResult{how&nbsp;to&nbsp;write&nbsp;algorithm&nbsp;with&nbsp;\LaTeX2e&nbsp;}<br />&nbsp;initialization\;<br />&nbsp;\While{<span style="color: #0000FF; ">not</span>&nbsp;at&nbsp;end&nbsp;of&nbsp;this&nbsp;document}{<br />&nbsp;&nbsp;read&nbsp;current\;<br />&nbsp;&nbsp;\eIf{understand}{<br />&nbsp;&nbsp;&nbsp;go&nbsp;to&nbsp;next&nbsp;section\;<br />&nbsp;&nbsp;&nbsp;current&nbsp;section&nbsp;becomes&nbsp;this&nbsp;one\;<br />&nbsp;&nbsp;&nbsp;}{<br />&nbsp;&nbsp;&nbsp;go&nbsp;back&nbsp;to&nbsp;the&nbsp;beginning&nbsp;of&nbsp;current&nbsp;section\;<br />&nbsp;&nbsp;}<br />&nbsp;}<br />&nbsp;\caption{How&nbsp;to&nbsp;write&nbsp;algorithms}<br />\end{algorithm}</div></pre></div></div><p style="margin: 0.4em 0px 0.5em; line-height: 19.200000762939453px; font-family: sans-serif; font-size: 13px; background-color: #ffffff; ">which produces&nbsp;<a href="http://commons.wikimedia.org/wiki/File:Latex-algorithm2e-if-else.png" style="text-decoration: none; color: #0b0080; background-image: none; background-position: initial initial; background-repeat: initial initial; "><img alt="Latex-algorithm2e-if-else.png" src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Latex-algorithm2e-if-else.png/300px-Latex-algorithm2e-if-else.png" width="300" height="181" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Latex-algorithm2e-if-else.png/450px-Latex-algorithm2e-if-else.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Latex-algorithm2e-if-else.png/600px-Latex-algorithm2e-if-else.png 2x" style="border: none; vertical-align: middle; margin: 0px; " /></a></p><img src ="http://www.cppblog.com/luyulaile/aggbug/194135.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyulaile/" target="_blank">luis</a> 2012-10-31 21:30 <a href="http://www.cppblog.com/luyulaile/archive/2012/10/31/194135.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Latex 中插入代码</title><link>http://www.cppblog.com/luyulaile/archive/2012/10/31/194134.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Wed, 31 Oct 2012 13:25:00 GMT</pubDate><guid>http://www.cppblog.com/luyulaile/archive/2012/10/31/194134.html</guid><wfw:comment>http://www.cppblog.com/luyulaile/comments/194134.html</wfw:comment><comments>http://www.cppblog.com/luyulaile/archive/2012/10/31/194134.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyulaile/comments/commentRss/194134.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyulaile/services/trackbacks/194134.html</trackback:ping><description><![CDATA[<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->\usepackage{listings}<br />\usepackage{color}<br /><br />\definecolor{dkgreen}{rgb}{0,0.6,0}<br />\definecolor{gray}{rgb}{0.5,0.5,0.5}<br />\definecolor{mauve}{rgb}{0.58,0,0.82}<br /><br />\lstset{frame=tb,<br />&nbsp;&nbsp;language=Java,<br />&nbsp;&nbsp;aboveskip=3mm,<br />&nbsp;&nbsp;belowskip=3mm,<br />&nbsp;&nbsp;showstringspaces=false,<br />&nbsp;&nbsp;columns=flexible,<br />&nbsp;&nbsp;basicstyle={\small\ttfamily},<br />&nbsp;&nbsp;numbers=none,<br />&nbsp;&nbsp;numberstyle=\tiny\color{gray},<br />&nbsp;&nbsp;keywordstyle=\color{blue},<br />&nbsp;&nbsp;commentstyle=\color{dkgreen},<br />&nbsp;&nbsp;stringstyle=\color{mauve},<br />&nbsp;&nbsp;breaklines=true,<br />&nbsp;&nbsp;breakatwhitespace=true<br />&nbsp;&nbsp;tabsize=3<br />}<br />================<br /><br /><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; ">You can change default language in the middle of document with&nbsp;<code style="margin: 0px; padding: 1px 5px; border: 0px; vertical-align: baseline; background-color: #eeeeee; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">\lstset{language=Java}</code>.</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; ">Example of usage in the document:</p><div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; "><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->\begin{lstlisting}<br />//&nbsp;Hello.java<br /><span style="color: #0000FF; ">import</span>&nbsp;javax.swing.JApplet;<br /><span style="color: #0000FF; ">import</span>&nbsp;java.awt.Graphics;<br /><br />public&nbsp;<span style="color: #0000FF; ">class</span>&nbsp;Hello&nbsp;extends&nbsp;JApplet&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;void&nbsp;paintComponent(Graphics&nbsp;g)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;g.drawString(<span style="color: #800000; ">"</span><span style="color: #800000; ">Hello,&nbsp;world!</span><span style="color: #800000; ">"</span>,&nbsp;65,&nbsp;95);<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;<br />}</div><pre style="margin-top: 0px; margin-bottom: 10px; padding: 5px; border: 0px; font-size: 14px; vertical-align: baseline; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow: auto; width: auto; max-height: 600px; "><code style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; "><span style="font-size: 13px; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; ">\end{lstlisting}</span> </code></pre><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; ">Here's the result:</p></div></p><img src ="http://www.cppblog.com/luyulaile/aggbug/194134.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyulaile/" target="_blank">luis</a> 2012-10-31 21:25 <a href="http://www.cppblog.com/luyulaile/archive/2012/10/31/194134.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Latex 常用命令</title><link>http://www.cppblog.com/luyulaile/archive/2012/10/12/193195.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Thu, 11 Oct 2012 21:02:00 GMT</pubDate><guid>http://www.cppblog.com/luyulaile/archive/2012/10/12/193195.html</guid><wfw:comment>http://www.cppblog.com/luyulaile/comments/193195.html</wfw:comment><comments>http://www.cppblog.com/luyulaile/archive/2012/10/12/193195.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyulaile/comments/commentRss/193195.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyulaile/services/trackbacks/193195.html</trackback:ping><description><![CDATA[<br /><br />\overline<br /><br />^ _<br /><br />\dfrac{}{}<br /><br />\frac{}{}<br /><br />\textbf<br /><br />\sqrt 开根号<br /><br />\tilde 斜线<br />\alpha \Alpha<br /><br />\hat<br /><br />\leq &lt;=<br />\rightarrow -&gt;<br />\geq &gt;= greater equal<br />\begin{itemize}<br />\end{itemize}<br />\xi<br />\parell<br />求导是 <span style="font-family: arial, helvetica, verdana, sans-serif; font-size: 13px; line-height: 16.649999618530273px; background-color: #ffffff; ">\delta</span>&nbsp;<br /><br />关于title<br /><div>\documentclass{book}</div><div></div><div>\title{TITLE}</div><div>\author{AUTHOR}</div><div></div><div>\begin{document}</div><div>\maketitle</div><div>\end{document}<br /><br /><br />关于表格<br /><br />artice的文章结构<br />title<br />&nbsp;section<br />subsection<br />subsubsection<br /><br />首行缩进<br /><div>\usepackage{indentfirst}&nbsp;<br /><br />===itemlize description enumerata的区别===<br /><br /><span style="font-size: 13px; background-color: #eeeeee; ">\begin{itemize}</span><br style="font-size: 13px; " /><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;\item&nbsp;First&nbsp;level,&nbsp;itemize,&nbsp;first&nbsp;item</span><br style="font-size: 13px; " /><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;\begin{itemize}</span><br style="font-size: 13px; " /><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\item&nbsp;Second&nbsp;level,&nbsp;itemize,&nbsp;first&nbsp;item</span><br style="font-size: 13px; " /><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\item&nbsp;Second&nbsp;level,&nbsp;itemize,&nbsp;second&nbsp;item</span><br style="font-size: 13px; " /><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\begin{enumerate}</span><br style="font-size: 13px; " /><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\item&nbsp;Third&nbsp;level,&nbsp;enumerate,&nbsp;first&nbsp;item</span><br style="font-size: 13px; " /><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\item&nbsp;Third&nbsp;level,&nbsp;enumerate,&nbsp;second&nbsp;item</span><br style="font-size: 13px; " /><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\end{enumerate}</span><br style="font-size: 13px; " /><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;\end{itemize}</span><br style="font-size: 13px; " /><span style="font-size: 13px; background-color: #eeeeee; ">&nbsp;&nbsp;&nbsp;&nbsp;\item&nbsp;First&nbsp;level,&nbsp;itemize,&nbsp;second&nbsp;item</span><br style="font-size: 13px; " /><span style="font-size: 13px; background-color: #eeeeee; ">\end{itemize}</span><br style="font-size: 13px; " />==<br style="font-size: 13px; " /><br style="font-size: 13px; " /><img src="http://texblog.files.wordpress.com/2008/10/nested_list1.png" alt="" />&nbsp;<br /><br style="font-size: 13px; " />主要是：<br /><br /><br />画图：<br /><div>&nbsp; &nbsp;\begin{figure}[ht]</div><div><span style="white-space:pre">	</span> \centering</div><div><span style="white-space:pre">	</span> \includegraphics[width=0.8\textwidth,clip]{image/fig2.png}</div><div><span style="white-space:pre">	</span> \caption{}</div><div><span style="white-space:pre">	</span> \label{fig:11}</div><div>&nbsp;\end{figure}<br /><br />多个图：<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->\begin{figure}<br />&nbsp;&nbsp;\centering<br />&nbsp;&nbsp;\subfigure[Small&nbsp;Box&nbsp;with&nbsp;a&nbsp;Long&nbsp;Caption]{<br />&nbsp;&nbsp;&nbsp;&nbsp;\label{fig:subfig:a}&nbsp;%%&nbsp;label&nbsp;<span style="color: #0000FF; ">for</span>&nbsp;first&nbsp;subfigure<br />&nbsp;&nbsp;&nbsp;&nbsp;\includegraphics[width=1.0<span style="color: #0000FF; ">in</span>]{graphic.eps}}<br />&nbsp;&nbsp;\hspace{1<span style="color: #0000FF; ">in</span>}<br />&nbsp;&nbsp;\subfigure[Big&nbsp;Box]{<br />&nbsp;&nbsp;&nbsp;&nbsp;\label{fig:subfig:b}&nbsp;%%&nbsp;label&nbsp;<span style="color: #0000FF; ">for</span>&nbsp;second&nbsp;subfigure<br />&nbsp;&nbsp;&nbsp;&nbsp;\includegraphics[width=1.5<span style="color: #0000FF; ">in</span>]{graphic.eps}}<br />&nbsp;&nbsp;\caption{Two&nbsp;Subfigures}<br />&nbsp;&nbsp;\label{fig:subfig}&nbsp;%%&nbsp;label&nbsp;<span style="color: #0000FF; ">for</span>&nbsp;entire&nbsp;figure<br />\end{figure}</div></div></div></div><img src ="http://www.cppblog.com/luyulaile/aggbug/193195.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyulaile/" target="_blank">luis</a> 2012-10-12 05:02 <a href="http://www.cppblog.com/luyulaile/archive/2012/10/12/193195.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Latex 大括号用法</title><link>http://www.cppblog.com/luyulaile/archive/2012/08/28/188512.html</link><dc:creator>luis</dc:creator><author>luis</author><pubDate>Tue, 28 Aug 2012 03:35:00 GMT</pubDate><guid>http://www.cppblog.com/luyulaile/archive/2012/08/28/188512.html</guid><wfw:comment>http://www.cppblog.com/luyulaile/comments/188512.html</wfw:comment><comments>http://www.cppblog.com/luyulaile/archive/2012/08/28/188512.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyulaile/comments/commentRss/188512.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyulaile/services/trackbacks/188512.html</trackback:ping><description><![CDATA[原地址：<a href="http://blog.sina.com.cn/s/blog_5e16f1770100gzud.html">http://blog.sina.com.cn/s/blog_5e16f1770100gzud.html</a>&nbsp;<br /><img src="http://www.cppblog.com/images/cppblog_com/luyulaile/690.jpg" width="299" height="332" alt="" /><br /><br /><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; color: #323e32; font-family: simsun; background-color: #9caec1; ">演示代码：</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; color: #323e32; font-family: simsun; background-color: #9caec1; ">\documentclass{article}<br />\setlength\textwidth{245.0pt}<br />\usepackage{CJK}<br />\usepackage{indentfirst}<br />\usepackage{amsmath}</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; color: #323e32; font-family: simsun; background-color: #9caec1; ">\begin{CJK*}{GBK}{song}<br />\begin{document}<br />方法一：</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; color: #323e32; font-family: simsun; background-color: #9caec1; ">$$ f(x)=\left\{<br />\begin{aligned}<br />x &amp; = &amp; \cos(t) \\<br />y &amp; = &amp; \sin(t) \\<br />z &amp; = &amp; \frac xy<br />\end{aligned}<br />\right.<br />$$</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; color: #323e32; font-family: simsun; background-color: #9caec1; "><br />方法二：</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; color: #323e32; font-family: simsun; background-color: #9caec1; ">$$ F^{HLLC}=\left\{<br />\begin{array}{rcl}<br />F_L&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;&amp;&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;&amp; {0&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;&lt;&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;S_L}\\<br />F^*_L&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;&amp;&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;&amp; {S_L \leq 0 &lt; S_M}\\<br />F^*_R&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;&amp;&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;&amp; {S_M \leq 0 &lt; S_R}\\<br />F_R&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;&amp;&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;&amp; {S_R \leq 0}<br />\end{array} \right. $$</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; color: #323e32; font-family: simsun; background-color: #9caec1; ">方法三:</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; color: #323e32; font-family: simsun; background-color: #9caec1; ">$$f(x)=<br />\begin{cases}<br />0&amp; \text{x=0}\\<br />1&amp; \text{x!=0}<br />\end{cases}$$</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; color: #323e32; font-family: simsun; background-color: #9caec1; ">\end{CJK*}<br />\end{document}</p><br />可以用\text{} 注释文字<img src ="http://www.cppblog.com/luyulaile/aggbug/188512.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyulaile/" target="_blank">luis</a> 2012-08-28 11:35 <a href="http://www.cppblog.com/luyulaile/archive/2012/08/28/188512.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>