<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.4.3">Jekyll</generator><link href="https://gro-mit.github.io/atom.xml" rel="self" type="application/atom+xml" /><link href="https://gro-mit.github.io/" rel="alternate" type="text/html" /><updated>2017-04-12T05:03:42+00:00</updated><id>https://gro-mit.github.io/</id><title type="html">gromit’s blog</title><subtitle>start from here</subtitle><entry><title type="html">LaTex formula</title><link href="https://gro-mit.github.io/articles/LaTex-formula/" rel="alternate" type="text/html" title="LaTex formula" /><published>2017-04-11T00:00:00+00:00</published><updated>2017-04-11T00:00:00+00:00</updated><id>https://gro-mit.github.io/articles/LaTex-formula</id><content type="html" xml:base="https://gro-mit.github.io/articles/LaTex-formula/">&lt;blockquote&gt;
  &lt;h5 id=&quot;摘要latex公式汇总速查&quot;&gt;摘要：LaTex公式汇总速查&lt;/h5&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;
&lt;p&gt;&lt;a href=&quot;#1&quot;&gt;1.强调模式&lt;/a&gt;
&lt;a href=&quot;#2&quot;&gt;2.希腊字母&lt;/a&gt;
&lt;a href=&quot;#3&quot;&gt;3.二元运算&lt;/a&gt;
&lt;a href=&quot;#4&quot;&gt;4.关系运算&lt;/a&gt;
&lt;a href=&quot;#5&quot;&gt;5.箭头符号&lt;/a&gt;
&lt;a href=&quot;#6&quot;&gt;6.杂类符号&lt;/a&gt;
&lt;a href=&quot;#7&quot;&gt;7.特殊符号&lt;/a&gt;
&lt;a href=&quot;#8&quot;&gt;8.曲线函数&lt;/a&gt;
&lt;a href=&quot;#9&quot;&gt;9.分隔符号&lt;/a&gt;
&lt;a href=&quot;#10&quot;&gt;10.数学结构&lt;/a&gt;
&lt;a href=&quot;#11&quot;&gt;11.AMS希腊字母&lt;/a&gt;
&lt;a href=&quot;#12&quot;&gt;12.AMS分隔符号&lt;/a&gt;
&lt;a href=&quot;#13&quot;&gt;13.AMS箭头符号&lt;/a&gt;
&lt;a href=&quot;#14&quot;&gt;14.AMS二元关系符&lt;/a&gt;
&lt;a href=&quot;#15&quot;&gt;15.AMS二元操作符&lt;/a&gt;
&lt;a href=&quot;#16&quot;&gt;16.AMS杂类符号&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;由于在写电子笔记的时候经常要写入公式，MS全家桶的公式编辑器虽然容易上手够用，但是在较复杂的公式上书写不自如，尽管LaTex公式比较复杂，但是付出了刚上手的学习成本之后就能行云流水了，加上Markdown支持LaTex公式，而且它语法不像LaTex复杂，也不需要编译，俩合一起简直就是行云流水小进攻。下面就是一些LaTex公式的书写，这么多很常用的肯定是要记的，其它的到时候查吧，但也不需要刻意记，无他，唯手熟尔。&lt;/p&gt;

&lt;h5 id=&quot;h2-id1强调模式h2&quot;&gt;&amp;lt;h2 id=&quot;1&quot;&amp;gt;强调模式&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\hat{a} \text{\hat{a}}  
\acute{a} \text{\acute{a}}  
\bar{a} \text{\bar{a}}  
\dot{a} \text{\dot{a}}  
\breve{a} \text{\breve{a}}  &lt;br /&gt;
\check{a} \text{\check{a}}  
\grave{a} \text{\grave{a}}  
\vec{a} \text{\vec{a}}  
\ddot{a} \text{\ddot{a}}  
\tilde{a} \text{\tilde{a}}$&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id2希腊字母h2&quot;&gt;&amp;lt;h2 id=&quot;2&quot;&amp;gt;希腊字母&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\alpha \text{\alpha}  
\beta \text{\beta}  
\gamma \text{\gamma}  
\delta \text{\delta}  
\epsilon \text{\epsilon}  &lt;br /&gt;
\varepsilon \text{\varepsilon}  
\zeta \text{\zeta}  
\eta \text{\eta}  
\theta \text{\theta}  
\vartheta \text{\vartheta}  &lt;br /&gt;
\iota \text{\iota}  
\kappa \text{\kappa}  
\lambda \text{\lambda}  
\mu \text{\mu}  
\nu \text{\nu}  &lt;br /&gt;
\xi  \text{\xi}   
o \text{o}  
\pi \text{\pi}  
\varpi \text{\varpi}  
\rho \text{\rho}  &lt;br /&gt;
\varrho   \text{\varrho}  
\sigma \text{\sigma}  
\varsigma \text{\varsigma}  
\tau \text{\tau}  
\upsilon \text{\upsilon}  &lt;br /&gt;
\phi   \text{\phi}  
\varphi \text{\varphi}  
\chi \text{\chi}  
\psi \text{\psi}  
\omega \text{\omega}  &lt;br /&gt;
\Gamma  \text{\Gamma}  
\Delta \text{\Delta}  
\Theta \text{\Theta}  
\Lambda \text{\Lambda}  
\Xi \text{\Xi}  &lt;br /&gt;
\Pi \text{\Pi}  
\Sigma \text{\Sigma}  
\Upsilon \text{\Upsilon}  
\Phi \text{\Phi}  
\Psi \text{\Psi}  &lt;br /&gt;
\Omega \text{\Omega}  $&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id3二元运算h2&quot;&gt;&amp;lt;h2 id=&quot;3&quot;&amp;gt;二元运算&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\pm \text{\pm}  
\cap \text{\cap}  
\diamond \text{\diamond}  
\oplus \text{\oplus}  
\mp \text{\mp}  &lt;br /&gt;
\cup \text{\cup}  
\bigtriangleup \text{\bigtriangleup}  
\ominus \text{\ominus}  
\times   \text{\times}  
\uplus \text{\uplus}  &lt;br /&gt;
\bigtriangledown \text{\bigtriangledown}  
\otimes \text{\otimes}  
\div  \text{\div}  
\sqcap \text{\sqcap}  
\triangleleft \text{\triangleleft}  &lt;br /&gt;
\oslash \text{\oslash}  
\ast   \text{\ast}  
\sqcup \text{\sqcup}  
\triangleright \text{\triangleright}  
\odot \text{\odot}  &lt;br /&gt;
\star   \text{\star}  
\vee \text{\vee}  
\lhd \text{\lhd}^{a}  
\bigcirc \text{\bigcirc}  
\circ   \text{\circ}  &lt;br /&gt;
\wedge \text{\wedge}  
\rhd \text{\rhd}^{a}  
\dagger \text{\dagger}  
\bullet   \text{\bullet}  
\setminus \text{\setminus}  &lt;br /&gt;
\unlhd \text{\unlhd}^{a}  
\ddagger \text{\ddagger}  
\cdot   \text{\cdot}  
\wr \text{\wr}  
\unrhd \text{\unrhd}^{a}  $&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id4关系运算h2&quot;&gt;&amp;lt;h2 id=&quot;4&quot;&amp;gt;关系运算&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\leq \text{\leq,\le}  
\geq \text{\geq,\ge}  
\equiv \text{\equiv}  
\models \text{\models}  
\prec \text{\prec}  &lt;br /&gt;
\succ \text{\succ}  
\sim \text{\sim}  
\perp \text{\perp}  
\preceq \text{\preceq}  
\succeq \text{\succeq}  &lt;br /&gt;
\simeq \text{\simeq}  
\mid \text{\mid}  
\ll \text{\ll}  
\gg \text{\gg}  
\asymp \text{\asymp}  &lt;br /&gt;
\parallel \text{\parallel}  
\subset \text{\subset}  
\supset \text{\supset}  
\approx \text{\approx}  
\bowtie \text{\bowtie}  &lt;br /&gt;
\subseteq \text{\subseteq}  
\supseteq \text{\supseteq}  
\cong \text{\cong}  
\Join \text{\Join}  
\sqsubset \text{\sqsubset}  &lt;br /&gt;
\sqsupset \text{\sqsupset}  
\neq \text{\neq}  
\smile \text{\smile}  
\sqsubseteq \text{\sqsubseteq}  
\sqsupseteq \text{\sqsupseteq}  &lt;br /&gt;
\doteq \text{\doteq}  
\frown \text{\frown}  
\in \text{\in}  
\ni \text{\ni}  
\propto \text{\propto}  &lt;br /&gt;
= \text{=}  
\vdash \text{\vdash}  
\dashv \text{\dashv}  
&amp;lt; \text{&amp;lt;}  
 \text{&amp;gt;}  $&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id5箭头符号h2&quot;&gt;&amp;lt;h2 id=&quot;5&quot;&amp;gt;箭头符号&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\leftarrow \text{\leftarrow}  
\longleftarrow \text{\longleftarrow}  
\uparrow \text{\uparrow}  
\Leftarrow \text{\Leftarrow}  
\Longleftarrow \text{\Longleftarrow}  &lt;br /&gt;
\Uparrow \text{\Uparrow}  
\rightarrow \text{\rightarrow}  
\longrightarrow \text{\longrightarrow}  
\downarrow \text{\downarrow}  
\Rightarrow \text{\Rightarrow}  &lt;br /&gt;
\Longrightarrow \text{\Longrightarrow}  
\Downarrow \text{\Downarrow}  
\leftrightarrow \text{\leftrightarrow}  
\longleftrightarrow \text{\longleftrightarrow}  
\updownarrow \text{\updownarrow}  &lt;br /&gt;
\Leftrightarrow \text{\Leftrightarrow}  
\Longleftrightarrow \text{\Longleftrightarrow}  
\Updownarrow \text{\Updownarrow}  
\mapsto \text{\mapsto}  
\longmapsto \text{\longmapsto}  &lt;br /&gt;
\nearrow \text{\nearrow}  
\hookleftarrow \text{\hookleftarrow}  
\hookrightarrow \text{\hookrightarrow}  
\searrow \text{\searrow}  
\leftharpoonup \text{\leftharpoonup}  &lt;br /&gt;
\rightharpoonup \text{\rightharpoonup}  
\swarrow \text{\swarrow}  
\leftharpoondown \text{\leftharpoondown}  
\rightharpoondown \text{\rightharpoondown}  
\nwarrow \text{\nwarrow}  \$&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id6杂类符号h2&quot;&gt;&amp;lt;h2 id=&quot;6&quot;&amp;gt;杂类符号&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\ldots \text{\ldots}  
\cdots \text{\cdots}  
\vdots \text{\vdots}  
\ddots \text{\ddots}  
\aleph \text{\aleph}  &lt;br /&gt;
\prime \text{\prime}  
\forall \text{\forall}  
\infty \text{\infty}  
\hbar \text{\hbar}  
\emptyset \text{\emptyset}  &lt;br /&gt;
\exists \text{\exists}  
\nabla \text{\nabla}  
\surd \text{\surd}  
\Box \text{\Box}^{a}  
\triangle \text{\triangle}  &lt;br /&gt;
\Diamond \text{\Diamond}^{a}  
\imath \text{\imath}  
\jmath \text{\jmath}  
\ell \text{\ell}  
\neg \text{\neg}  &lt;br /&gt;
\top \text{\top}  
\flat \text{\flat}  
\natural \text{\natural}  
\sharp \text{\sharp}  
\wp \text{\wp}  &lt;br /&gt;
\bot \text{\bot}  
\clubsuit \text{\clubsuit}  
\diamondsuit \text{\diamondsuit}  
\heartsuit \text{\heartsuit}  
\spadesuit \text{\spadesuit}  &lt;br /&gt;
\mho \text{\mho}^{a}  
\Re \text{\Re}  
\Im \text{\Im}  
\angle \text{\angle}  
\partial \text{\partial}  \$&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id7特殊符号h2&quot;&gt;&amp;lt;h2 id=&quot;7&quot;&amp;gt;特殊符号&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\sum \text{\sum}  
\prod \text{\prod}  
\coprod \text{\coprod}  
\int \text{\int}  
\oint \text{\oint}  &lt;br /&gt;
\bigcap \text{\bigcap}  
\bigcup \text{\bigcup}  
\bigsqcup \text{\bigsqcup}  
\bigvee \text{\bigvee}  
\bigwedge \text{\bigwedge}  &lt;br /&gt;
\bigodot \text{\bigodot}  
\bigotimes \text{\bigotimes}  
\bigoplus \text{\bigoplus}  
\biguplus \text{\biguplus}  \$&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id8曲线函数h2&quot;&gt;&amp;lt;h2 id=&quot;8&quot;&amp;gt;曲线函数&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\text{\arccos} \text{\cos}  \text{\csc} \text{\exp} 
\text{\ker} \text{\limsup} \text{\min} \text{\sinh} &lt;br /&gt;
\text{\arcsin} \text{\cosh} \text{\deg} \text{\gcd} 
\text{\lg} \text{\ln} \text{\Pr} \text{\sup} &lt;br /&gt;
\text{\arctan} \text{\cot} \text{\det} \text{\hom} 
\text{\lim} \text{\log} \text{\sec} \text{\tan} &lt;br /&gt;
\text{\arg} \text{\coth} \text{\dim} \text{\inf} 
\text{\liminf} \text{\max} \text{\sin} \text{\tanh} \$&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id9分隔符号h2&quot;&gt;&amp;lt;h2 id=&quot;9&quot;&amp;gt;分隔符号&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\uparrow \text{\uparrow}  
\Uparrow \text{\Uparrow}  
\downarrow \text{\downarrow}  
\Downarrow \text{\Downarrow}ensp; 
{ \text{{}  &lt;br /&gt;
} \text{}}  
\updownarrow \text{\updownarrow}  
\Updownarrow \text{\Updownarrow}ensp; 
\lfloor \text{\lfloor}  
\rfloor \text{\rfloor}  &lt;br /&gt;
\lceil \text{\lceil}  
\rceil \text{\rceil}  
\langle \text{\langle}  
\rangle \text{\rangle}  
/ \text{/}  &lt;br /&gt;
\backslash \text{\backslash}  
| \text{|}  
| \text{|}  
\rmoustache \text{\rmoustache}  
\lmoustache \text{\lmoustache}  &lt;br /&gt;
\rgroup \text{\rgroup}  
\lgroup \text{\lgroup}  
\arrowvert \text{\arrowvert}  
\Arrowvert \text{\Arrowvert}  
\bracevert \text{\bracevert}  $&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id10数学结构h2&quot;&gt;&amp;lt;h2 id=&quot;10&quot;&amp;gt;数学结构&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\widetilde{abc} \text{\widetilde{abc}}  
\widehat{abc} \text{\widehat{abc}}  
\overleftarrow{abc} \text{\overleftarrow{abc}}  
\overrightarrow{abc} \text{\overrightarrow{abc}}  &lt;br /&gt;
\overline{abc} \text{\overline{abc}}  
\underline{abc} \text{\underline{abc}}  
\overbrace{abc} \text{\overbrace{abc}}  
\underbrace{abc} \text{\underbrace{abc}}  &lt;br /&gt;
\sqrt{abc} \text{\sqrt{abc}}  
\sqrt[n]{abc} \text{\sqrt[n]{abc}}  
f’ \text{f’}  
\frac{abc}{xyz} \text{\frac{abc}{xyz}}  $&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id11ams希腊字母h2&quot;&gt;&amp;lt;h2 id=&quot;11&quot;&amp;gt;AMS希腊字母&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\digamma \text{\digamma}  
\varkappa \text{\varkappa}  
\beth \text{\beth}  
\daleth \text{\daleth}  
\gimel \text{\gimel}  $&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id12ams分隔符号h2&quot;&gt;&amp;lt;h2 id=&quot;12&quot;&amp;gt;AMS分隔符号&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\ulcorner \text{\ulcorner}  
\urcorner \text{\urcorner}  
\llcorner \text{\llcorner}  
\lrcorner \text{\lrcorner}  $&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id13ams箭头符号h2&quot;&gt;&amp;lt;h2 id=&quot;13&quot;&amp;gt;AMS箭头符号&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\Rrightarrow \text{\Rrightarrow}  
\rightsquigarrow \text{\rightsquigarrow}  
\leftleftarrows \text{\leftleftarrows}  
\leftrightarrows \text{\leftrightarrows}  &lt;br /&gt;
\Lleftarrow \text{\Lleftarrow}  
\twoheadleftarrow \text{\twoheadleftarrow}  
\leftarrowtail \text{\leftarrowtail}  
\looparrowleft \text{\looparrowleft}  &lt;br /&gt;
\leftrightharpoons \text{\leftrightharpoons}  
\curvearrowleft \text{\curvearrowleft}  
\circlearrowleft \text{\circlearrowleft}  
\Lsh \text{\Lsh}  &lt;br /&gt;
\upuparrows \text{\upuparrows}  
\upharpoonleft \text{\upharpoonleft}  
\downharpoonleft \text{\downharpoonleft}  
\multimap \text{\multimap}  &lt;br /&gt;
\leftrightsquigarrow \text{\leftrightsquigarrow}  
\rightleftarrows \text{\rightleftarrows}  
\rightrightarrows \text{\rightrightarrows}  
\twoheadrightarrow \text{\twoheadrightarrow}  &lt;br /&gt;
\rightarrowtail \text{\rightarrowtail}  
\looparrowright \text{\looparrowright}  
\rightleftharpoons \text{\rightleftharpoons}  
\curvearrowright \text{\curvearrowright}  &lt;br /&gt;
\circlearrowright \text{\circlearrowright}  
\Rsh \text{\Rsh}  
\downdownarrows \text{\downdownarrows}  
\downharpoonright \text{\downharpoonright}  &lt;br /&gt;
\upharpoonright \text{\upharpoonright}  
\restriction \text{\restriction}  
\nleftarrow \text{\nleftarrow}  
\nrightarrow \text{\nrightarrow}  
\nLeftarrow \text{\nLeftarrow}  &lt;br /&gt;
\nRightarrow \text{\nRightarrow}  
\nleftrightarrow \text{\nleftrightarrow}  
\nLeftrightarrow \text{\nLeftrightarrow}  $&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id14ams二元关系符h2&quot;&gt;&amp;lt;h2 id=&quot;14&quot;&amp;gt;AMS二元关系符&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\leqq \text{\leqq}  
\leqslant \text{\leqslant}  
\eqslantless \text{\eqslantless}  
\lesssim \text{\lesssim}  &lt;br /&gt;
\lessapprox \text{\lessapprox}  
\approxeq \text{\approxeq}  
\lessdot \text{\lessdot}  
\lll \text{\lll,\llless}  &lt;br /&gt;
\lessgtr \text{\lessgtr}  
\lesseqgtr \text{\lesseqgtr}  
\lesseqqgtr \text{\lesseqqgtr}  
\doteqdot \text{\doteqdot,\Doteq}  &lt;br /&gt;
\risingdotseq \text{\risingdotseq}  
\fallingdotseq \text{\fallingdotseq}  
\backsim \text{\backsim}  
\backsimeq \text{\backsimeq}  &lt;br /&gt;
\subseteqq \text{\subseteqq}  
\Subset \text{\Subset}  
\sqsubset \text{\sqsubset}  
\preccurlyeq \text{\preccurlyeq}  &lt;br /&gt;
\curlyeqprec \text{\curlyeqprec}  
\precsim \text{\precsim}  
\precapprox \text{\precapprox}  
\vartriangleleft \text{\vartriangleleft}  &lt;br /&gt;
\trianglelefteq \text{\trianglelefteq}  
\vDash \text{\vDash}  
\Vvdash \text{\Vvdash}  
\smallsmile \text{\smallsmile}  &lt;br /&gt;
\smallfrown \text{\smallfrown}  
\bumpeq \text{\bumpeq}  
\Bumpeq \text{\Bumpeq}  
\geqq \text{\geqq}  &lt;br /&gt;
\geqslant \text{\geqslant}  
\eqslantgtr \text{\eqslantgtr}  
\gtrsim \text{\gtrsim}  
\gtrapprox \text{\gtrapprox}  &lt;br /&gt;
\gtrdot \text{\gtrdot}  
\ggg \text{\ggg,\gggtr}  
\gtrless \text{\gtrless}  
\gtreqless \text{\gtreqless}  &lt;br /&gt;
\gtreqqless \text{\gtreqqless}  
\eqcirc \text{\eqcirc}  
\circeq \text{\circeq}  
\triangleq \text{\triangleq}  &lt;br /&gt;
\thicksim \text{\thicksim}  
\thickapprox \text{\thickapprox}  
\supseteqq \text{\supseteqq}  
\Supset \text{\Supset}  &lt;br /&gt;
\sqsupset \text{\sqsupset}  
\succcurlyeq \text{\succcurlyeq}  
\curlyeqsucc \text{\curlyeqsucc}  
\succsim \text{\succsim}  &lt;br /&gt;
\succapprox \text{\succapprox}  
\vartriangleright \text{\vartriangleright}  
\trianglerighteq \text{\trianglerighteq}  
\Vdash \text{\Vdash}  &lt;br /&gt;
\shortmid \text{\shortmid}  
\shortparallel \text{\shortparallel}  
\between \text{\between}  
\pitchfork \text{\pitchfork}  &lt;br /&gt;
\varpropto \text{\varpropto}  
\blacktriangleleft \text{\blacktriangleleft}  
\therefore \text{\therefore}  
\backepsilon \text{\backepsilon}  &lt;br /&gt;
\blacktriangleright \text{\blacktriangleright}  
\because \text{\because}  
\nless \text{\nless}  
\nleq \text{\nleq}  &lt;br /&gt;
\nleqslant \text{\nleqslant}  
\nleqq \text{\nleqq}  
\lneq \text{\lneq}  
\lneqq \text{\lneqq}  &lt;br /&gt;
\lvertneqq \text{\lvertneqq}  
\lnsim \text{\lnsim}  
\lnapprox \text{\lnapprox}  
\nprec \text{\nprec}  &lt;br /&gt;
\npreceq \text{\npreceq}  
\precnsim \text{\precnsim}  
\precnapprox \text{\precnapprox}  
\nsim \text{\nsim}  &lt;br /&gt;
\nshortmid \text{\nshortmid}  
\nmid \text{\nmid}  
\nvdash \text{\nvdash}  
\nvDash \text{\nvDash}  &lt;br /&gt;
\ntriangleleft \text{\ntriangleleft}  
\ntrianglelefteq \text{\ntrianglelefteq}  
\nsubseteq \text{\nsubseteq}  
\subsetneq \text{\subsetneq}  &lt;br /&gt;
\varsubsetneq \text{\varsubsetneq}  
\subsetneqq \text{\subsetneqq}  
\varsubsetneqq \text{\varsubsetneqq}  
\ngtr \text{\ngtr}  &lt;br /&gt;
\ngeq \text{\ngeq}  
\ngeqslant \text{\ngeqslant}  
\ngeqq \text{\ngeqq}  
\gneq \text{\gneq}  &lt;br /&gt;
\gneqq \text{\gneqq}  
\gvertneqq \text{\gvertneqq}  
\gnsim \text{\gnsim}  
\gnapprox \text{\gnapprox}  &lt;br /&gt;
\nsucc \text{\nsucc}  
\nsucceq \text{\nsucceq}  
\succnsim \text{\succnsim}  
\succnapprox \text{\succnapprox}  &lt;br /&gt;
\ncong \text{\ncong}  
\nshortparallel \text{\nshortparallel}  
\nparallel \text{\nparallel}  
\nvDash \text{\nvDash}  &lt;br /&gt;
\nVDash \text{\nVDash}  
\ntriangleright \text{\ntriangleright}  
\ntrianglerighteq \text{\ntrianglerighteq}  
\nsupseteq \text{\nsupseteq}  &lt;br /&gt;
\nsupseteqq \text{\nsupseteqq}  
\supsetneq \text{\supsetneq}  
\varsupsetneq \text{\varsupsetneq}  
\supsetneqq \text{\supsetneqq}  &lt;br /&gt;
\varsupsetneqq \text{\varsupsetneqq}  $&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id15ams二元操作符h2&quot;&gt;&amp;lt;h2 id=&quot;15&quot;&amp;gt;AMS二元操作符&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\dotplus \text{\dotplus}  
\smallsetminus \text{\smallsetminus}  
\Cap \text{\Cap,\doublecap}  
\Cup \text{\Cup,\doublecup}  &lt;br /&gt;
\barwedge \text{\barwedge}  
\veebar \text{\veebar}  
\doublebarwedge \text{\doublebarwedge}  
\boxminus \text{\boxminus}  &lt;br /&gt;
\boxtimes \text{\boxtimes}  
\boxdot \text{\boxdot}  
\boxplus \text{\boxplus}  
\divideontimes \text{\divideontimes}  &lt;br /&gt;
\ltimes \text{\ltimes}  
\rtimes \text{\rtimes}  
\leftthreetimes \text{\leftthreetimes}  
\rightthreetimes \text{\rightthreetimes}  &lt;br /&gt;
\curlywedge \text{\curlywedge}  
\curlyvee \text{\curlyvee}  
\circleddash \text{\circleddash}  
\circledast \text{\circledast}  &lt;br /&gt;
\circledcirc \text{\circledcirc}  
\centerdot \text{\centerdot}  
\intercal \text{\intercal}  $&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5 id=&quot;h2-id16ams杂类符号h2&quot;&gt;&amp;lt;h2 id=&quot;16&quot;&amp;gt;AMS杂类符号&amp;lt;/h2&amp;gt;&lt;/h5&gt;
&lt;blockquote&gt;
  &lt;p&gt;$\hbar \text{\hbar}  
\hslash \text{\hslash}  
\vartriangle \text{\vartriangle}  
\triangledown \text{\triangledown}  &lt;br /&gt;
\square \text{\square}  
\lozenge \text{\lozenge}  
\circledS \text{\circledS}  
\angle \text{\angle}  &lt;br /&gt;
\measuredangle \text{\measuredangle}  
\nexists \text{\nexists}  
\mho \text{\mho}  
\Finv \text{\Finv}  &lt;br /&gt;
\Game \text{\Game}  
\Bbbk \text{\Bbbk}  
\backprime \text{\backprime}  
\varnothing \text{\varnothing}  &lt;br /&gt;
\blacktriangle \text{\blacktriangle}  
\blacktriangledown \text{\blacktriangledown}  
\blacksquare \text{\blacksquare}  
\blacklozenge \text{\blacklozenge}  &lt;br /&gt;
\bigstar \text{\bigstar}  
\sphericalangle \text{\sphericalangle}  
\complement \text{\complement}  
\eth \text{\eth}  &lt;br /&gt;
\diagup \text{\diagup}  
\diagdown \text{\diagdown}  $&lt;/p&gt;
&lt;/blockquote&gt;</content><author><name></name></author><summary type="html">摘要：LaTex公式汇总速查</summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://gro-mit.github.io/%7B%22teaser%22=%3E%22latex.jpg%22%7D" /></entry><entry><title type="html">博客的掌柜的回来了</title><link href="https://gro-mit.github.io/thoughts/restart-this-blog/" rel="alternate" type="text/html" title="博客的掌柜的回来了" /><published>2017-03-25T00:00:00+00:00</published><updated>2017-03-25T00:00:00+00:00</updated><id>https://gro-mit.github.io/thoughts/restart-this-blog</id><content type="html" xml:base="https://gro-mit.github.io/thoughts/restart-this-blog/">&lt;blockquote&gt;
  &lt;h5 id=&quot;摘要告诉你为什么回来&quot;&gt;摘要：告诉你为什么回来&lt;/h5&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;又开始在这记东西了,上次更新还是去年八月中,一晃七个月过去了.当时本想着能在这上面一直记下去,后来研究生入学,加上忙课题,耽误了,后来课程多了,考试多了,更无暇来更,好的是不更不会长草,但冷清.&lt;/p&gt;

&lt;p&gt;最近准备找实习这一个月过来,忙着看书刷题做笔试,兵荒马乱地过来了,现在还是一样,日拱一卒,虽然偶有面试笔试的打击,但心里还算笃定,跬步千里,还要向前.&lt;/p&gt;

&lt;p&gt;有些东西得记下来,给自己,给别人.闭门造车,用onenote整理自己的学习笔记,出门的时候,还是要分享出来,一来是为了变相地感谢让我学到东西的博客,二来重新整理思路,发现模棱两可的地方再补上,自己的所得也要经得起不同视角的检验,如果是我错而不自知呢,发现有问题了还要麻烦您跟我提出来:).&lt;/p&gt;

&lt;p&gt;所以啊,开门迎客!&lt;/p&gt;

&lt;p&gt;gromit&lt;/p&gt;</content><author><name></name></author><summary type="html">摘要：告诉你为什么回来</summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://gro-mit.github.io/%7B%22teaser%22=%3E%22restart.jpg%22%7D" /></entry><entry><title type="html">为博客添加google analytics访问统计和disqus文章评论功能</title><link href="https://gro-mit.github.io/jekyll/enhance-your-blog/" rel="alternate" type="text/html" title="为博客添加google analytics访问统计和disqus文章评论功能" /><published>2016-08-13T00:00:00+00:00</published><updated>2016-08-13T00:00:00+00:00</updated><id>https://gro-mit.github.io/jekyll/enhance-your-blog</id><content type="html" xml:base="https://gro-mit.github.io/jekyll/enhance-your-blog/">&lt;blockquote&gt;
  &lt;h5 id=&quot;摘要本文主要介绍基于google-analytics的博客访问统计和基于disqus的文章评论功能&quot;&gt;摘要：本文主要介绍基于google analytics的博客访问统计和基于disqus的文章评论功能&lt;/h5&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;h4 id=&quot;1-google-analytics&quot;&gt;1. google analytics&lt;/h4&gt;

&lt;p&gt;&lt;a href=&quot;https://analytics.google.com&quot;&gt;google analytics&lt;/a&gt;是google提供的站点访问情况统计，登陆google账户，创建新的analytics账户如下图所示：&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://gro-mit.github.io/images/jekyll/201608/shot5.png&quot; alt=&quot;pic&quot; /&gt;&lt;/p&gt;

&lt;p&gt;填写账户名称以及你的博客名称和url等信息，点击&lt;code class=&quot;highlighter-rouge&quot;&gt;获取跟踪ID&lt;/code&gt;得到如下代码段：&lt;/p&gt;

&lt;div class=&quot;language-javascript highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;o&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;g&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;){&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'GoogleAnalyticsObject'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(){&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[]).&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;push&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;arguments&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)},&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;l&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;Date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;createElement&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;o&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
  &lt;span class=&quot;nx&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getElementsByTagName&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;o&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;];&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;async&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;g&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;parentNode&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;insertBefore&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;})(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;window&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;document&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'script'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'https://www.google-analytics.com/analytics.js'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'ga'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

  &lt;span class=&quot;nx&quot;&gt;ga&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'create'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'这里是你的跟踪id'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'auto'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;nx&quot;&gt;ga&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'send'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'pageview'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/script&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt; 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;将其粘贴到&lt;code class=&quot;highlighter-rouge&quot;&gt;_layouts&lt;/code&gt;-&amp;gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;default.html&lt;/code&gt;中的&lt;code class=&quot;highlighter-rouge&quot;&gt;&amp;lt;/head&amp;gt;&lt;/code&gt;标签以上就可以了。但更推荐的做法是在&lt;code class=&quot;highlighter-rouge&quot;&gt;_include&lt;/code&gt;文件夹新建&lt;code class=&quot;highlighter-rouge&quot;&gt;analytics.html&lt;/code&gt;文件讲该段代码粘贴其中，在&lt;code class=&quot;highlighter-rouge&quot;&gt;_layouts&lt;/code&gt;-&amp;gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;default.html&lt;/code&gt;文件同样的位置加入&lt;code class=&quot;highlighter-rouge&quot;&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;analytics.html%&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;标记，方便管理。&lt;/p&gt;

&lt;p&gt;以上就完成了访问统计的功能嵌入，经过一段时间即可查看博客访问情况。&lt;/p&gt;

&lt;h4 id=&quot;2-disqus&quot;&gt;2. disqus&lt;/h4&gt;

&lt;p&gt;disqus博文评论功能添加和analytics类似。首先，需要在&lt;a href=&quot;https://disqus.com/&quot;&gt;disqus&lt;/a&gt;上注册账户并邮箱验证。&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://gro-mit.github.io/images/jekyll/201608/shot6.png&quot; alt=&quot;pic&quot; /&gt;&lt;/p&gt;

&lt;p&gt;如图选择&lt;code class=&quot;highlighter-rouge&quot;&gt;install Disqus&lt;/code&gt;并按照提示输入博客信息，之后选择&lt;code class=&quot;highlighter-rouge&quot;&gt;Universal Code&lt;/code&gt;，如下图所示：&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://gro-mit.github.io/images/jekyll/201608/shot7.png&quot; alt=&quot;pic&quot; /&gt;&lt;/p&gt;

&lt;p&gt;复制代码段到&lt;code class=&quot;highlighter-rouge&quot;&gt;_layouts&lt;/code&gt;中你的博文模板文件&lt;code class=&quot;highlighter-rouge&quot;&gt;&amp;lt;/article&amp;gt;&lt;/code&gt;与&lt;code class=&quot;highlighter-rouge&quot;&gt;&amp;lt;/div&amp;gt;&lt;/code&gt;标签之间。在博文下方就会出现disqus社交评论功能界面。同样地，可以按照google analytics推荐的方法嵌入代码段。&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://gro-mit.github.io/images/jekyll/201608/shot8.png&quot; alt=&quot;pic&quot; /&gt;&lt;/p&gt;

&lt;p&gt;以上就完成了社交评论的引入，需要说明的是，disqus支持disqus、facebook、twitter和google账号(注：非vpn下disqus评论模块无法显示)，为了使用微博、微信等国内的账号登陆，可以使用&lt;a href=&quot;http://www.uyan.cc/&quot;&gt;友言&lt;/a&gt;、&lt;a href=&quot;http://duoshuo.com/&quot;&gt;多说&lt;/a&gt;和&lt;a href=&quot;http://changyan.kuaizhan.com/&quot;&gt;搜狐畅言&lt;/a&gt;等社会化评论工具。&lt;/p&gt;

&lt;p&gt;注：其实SKINNY BONES主题已内嵌了disqus功能，如需开启，操作如下：&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://gro-mit.github.io/images/jekyll/201608/shot9.png&quot; alt=&quot;pic&quot; /&gt;&lt;/p&gt;</content><author><name></name></author><summary type="html">摘要：本文主要介绍基于google analytics的博客访问统计和基于disqus的文章评论功能</summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://gro-mit.github.io/%7B%22teaser%22=%3E%22jekyll.png%22%7D" /></entry><entry><title type="html">使用jekyll+github搭建个人博客</title><link href="https://gro-mit.github.io/jekyll/build-a-jekyll-based-blog/" rel="alternate" type="text/html" title="使用jekyll+github搭建个人博客" /><published>2016-08-12T00:00:00+00:00</published><updated>2016-08-12T00:00:00+00:00</updated><id>https://gro-mit.github.io/jekyll/build-a-jekyll-based-blog</id><content type="html" xml:base="https://gro-mit.github.io/jekyll/build-a-jekyll-based-blog/">&lt;blockquote&gt;
  &lt;h5 id=&quot;摘要本文主要介绍基于jekyll和github的静态博客的搭建&quot;&gt;摘要：本文主要介绍基于jekyll和github的静态博客的搭建&lt;/h5&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;h4 id=&quot;1-github的配置&quot;&gt;1. github的配置&lt;/h4&gt;

&lt;h5 id=&quot;11-在github上创建github-pages-blog仓库&quot;&gt;1.1 在github上创建github pages blog仓库&lt;/h5&gt;

&lt;p&gt;登陆github页面，点击新建repository，显示如下图，输入repository名称(以&lt;code class=&quot;highlighter-rouge&quot;&gt;username.github.io&lt;/code&gt;的格式，这也就是你站点的url)、描述。作为一个规范的项目，还需勾选初始化README，以便他人更好地了解你的项目。&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://gro-mit.github.io/images/jekyll/201608/shot1.png&quot; alt=&quot;pic&quot; /&gt;&lt;/p&gt;

&lt;p&gt;在建立好的repository页面打开 &lt;code class=&quot;highlighter-rouge&quot;&gt;Settings&lt;/code&gt;，找到如下图板块，并点击 &lt;code class=&quot;highlighter-rouge&quot;&gt;Lunch automatic page generator&lt;/code&gt;，依次点击 &lt;code class=&quot;highlighter-rouge&quot;&gt;Continue to layouts&lt;/code&gt;、&lt;code class=&quot;highlighter-rouge&quot;&gt;Publish page&lt;/code&gt;就可以生成相应的站点，输入对应的url即可进行访问。&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://gro-mit.github.io/images/jekyll/201608/shot2.png&quot; alt=&quot;pic&quot; /&gt;&lt;/p&gt;

&lt;p&gt;以上就完成了在github上建立repository并自动生成博客站点的任务。&lt;/p&gt;

&lt;h5 id=&quot;12-repository管理引入git&quot;&gt;1.2 repository管理——引入git&lt;/h5&gt;

&lt;p&gt;在建立好站点的repository后，需要对其进行本地编辑及版本控制管理。
在linux系统(debian/ubuntu)打开terminal，输入如下代码完成git的安装：&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;sudo apt-get install git
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;当安装好git后，想要同github建立连接需要进一步进行SSH设置：&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;创建SSH Key文件，键入如下命令，并按照提示键入相应信息，即可生成&lt;code class=&quot;highlighter-rouge&quot;&gt;.pub&lt;/code&gt;文件&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;ssh-keygen -t rsa -C &lt;span class=&quot;s2&quot;&gt;&quot;your_email@example.com&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;找出&lt;code class=&quot;highlighter-rouge&quot;&gt;id_rsa.pub&lt;/code&gt;文件，并以记事本打开，复制该文件的密钥内容。&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;登陆github，&lt;code class=&quot;highlighter-rouge&quot;&gt;Settings&lt;/code&gt;-&amp;gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;SSH and GPG keys&lt;/code&gt;-&amp;gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;New SSH key&lt;/code&gt;，键入密钥内容。&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;键入如下命令，并键入&lt;code class=&quot;highlighter-rouge&quot;&gt;yes&lt;/code&gt;查看设置结果：&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;ssh -T git@github.com
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;依次键入如下命令设置github用户信息：&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;git config --global user.name &lt;span class=&quot;s2&quot;&gt;&quot;your_github_username&quot;&lt;/span&gt;
&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;git config --global user.email &lt;span class=&quot;s2&quot;&gt;&quot;your_email@example.com&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;经过以上SSH设置各个步骤就能让本机和github进行连接，如有问题，可以重新设置，常见的设置问题可以参考 &lt;a href=&quot;https://help.github.com/articles/generating-an-ssh-key/&quot;&gt;generating an SSH key&lt;/a&gt; 和 &lt;a href=&quot;https://help.github.com/articles/error-permission-denied-publickey/&quot;&gt;SSH permission denied&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;使用如下命令将远程repository同步至本地，其中&lt;code class=&quot;highlighter-rouge&quot;&gt;url&lt;/code&gt;为该repository的url，有HTTPS和SSH两种clone方式，建议选取SSH方式以免去在clone时键入密码的环节。&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;git clone url
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;此时远程repository就被同步至本机，方便本地完善博客。&lt;/p&gt;

&lt;p&gt;更多关于git的相关教程推荐参考&lt;a href=&quot;http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000&quot;&gt;廖雪峰的git教程&lt;/a&gt;进行学习。&lt;/p&gt;

&lt;h4 id=&quot;2-jekyll相关&quot;&gt;2. jekyll相关&lt;/h4&gt;

&lt;p&gt;关于jekyll在本机的搭建，&lt;a href=&quot;https://jekyllrb.com/docs/home/&quot;&gt;官方文档&lt;/a&gt;上有详细的说明。&lt;/p&gt;

&lt;h5 id=&quot;21-jekyll依赖环境&quot;&gt;2.1 jekyll依赖环境&lt;/h5&gt;

&lt;p&gt;在安装jekyll前，为确保其正常运行，需要安装一些依赖环境。为此，特引用jekyll官方依赖说明如下：&lt;/p&gt;

&lt;blockquote&gt;

  &lt;p&gt;Installing Jekyll is easy and straight-forward, but there are a few requirements you’ll need to make sure your system has before you start.&lt;/p&gt;

  &lt;ul&gt;
    &lt;li&gt;&lt;a href=&quot;https://www.ruby-lang.org/en/downloads/&quot;&gt;Ruby&lt;/a&gt; (including development headers, v1.9.3 or above for Jekyll 2 and v2 or above for Jekyll 3)&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://rubygems.org/pages/download&quot;&gt;RubyGems&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;Linux, Unix, or Mac OS X&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://nodejs.org/en/download/&quot;&gt;NodeJS&lt;/a&gt;, or another JavaScript runtime (Jekyll 2 and earlier, for CoffeeScript support).&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://www.python.org/downloads/&quot;&gt;Python 2.7&lt;/a&gt; (for Jekyll 2 and earlier)&lt;/li&gt;
  &lt;/ul&gt;

&lt;/blockquote&gt;

&lt;h5 id=&quot;22-jekyll安装与使用&quot;&gt;2.2 jekyll安装与使用&lt;/h5&gt;

&lt;p&gt;在安装好以上依赖后，可以通过rubygem方便地安装jekyll，并通过&lt;code class=&quot;highlighter-rouge&quot;&gt;-v&lt;/code&gt;查看jekyll版本号以确定安装成功：&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;gem install jekyll
&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;jekyll -v
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;之后就可以使用jekyll新建博客：&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;jekyll new myblog
&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;myblog
myblog &lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;bundle install
myblog &lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;jekyll serve
&lt;span class=&quot;c&quot;&gt;# initialize jekyll blog&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;以上就在本机完成了一个基于jekyll的简单博客站点，之后可以对该站点进行个性化，在每次更新修改后可以键入如下命令打开本机服务：&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;jekyll serve
&lt;span class=&quot;c&quot;&gt;#  browse to url http://localhost:4000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;在浏览器中访问如上url，显示如下就证明本地jekyll站点搭建成功：&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://gro-mit.github.io/images/jekyll/201608/shot3.png&quot; alt=&quot;pic&quot; /&gt;&lt;/p&gt;

&lt;h5 id=&quot;23-jekyll站点目录结构与相关设置&quot;&gt;2.3 jekyll站点目录结构与相关设置&lt;/h5&gt;

&lt;p&gt;jekyll的站点的目录结构如下：&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bssh&quot;&gt;.
├── _config.yml
├── _drafts
|   ├── begin-with-the-crazy-ideas.textile
|   └── on-simplicity-in-technology.markdown
├── _includes
|   ├── footer.html
|   └── header.html
├── _layouts
|   ├── default.html
|   └── post.html
├── _posts
|   ├── 2007-10-29-why-every-programmer-should-play-nethack.textile
|   └── 2009-04-26-barcamp-boston-4-roundup.textile
├── _data
|   └── members.yml
├── _site
├── .jekyll-metadata
└── index.html
└── images
&lt;/code&gt;&lt;/pre&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;文件(夹)&lt;/th&gt;
      &lt;th&gt;说明&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;_config.yml&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;存储站点的配置信息，可修改博客title等信息。&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;_drafts&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;用于保存未发布的博文，非必选&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;_includes&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;约等于“头文件”，在该文件夹保存的文件可被&lt;code class=&quot;highlighter-rouge&quot;&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;filename.ext&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;标记形式引用在博文或者页面中。&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;_layouts&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;模板文件，例如博文及博文目录的板式等。&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;_posts&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;用于保存博文，文件命名规则依照&lt;code class=&quot;highlighter-rouge&quot;&gt;YYYY-MM-DD-title.markdown&lt;/code&gt;，使用markdown撰写正文之前需要在文件中参照YAML格式设定头信息，如图所示：&lt;img src=&quot;https://gro-mit.github.io/images/jekyll/201608/shot4.png&quot; alt=&quot;pic&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;_data&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;用于保存特定形式的站点数据。&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;_site&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;可以理解为存放jekyll在站点修改更新后“编译”的文件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;images&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;存放站点的资源文件如图片等，非必选。&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;其它&lt;/td&gt;
      &lt;td&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;css&lt;/code&gt;文件夹存放css样式；&lt;code class=&quot;highlighter-rouge&quot;&gt;favicon.ico&lt;/code&gt;存放于根目录，是站点在浏览器tab页的图标，可以使用&lt;code class=&quot;highlighter-rouge&quot;&gt;.png&lt;/code&gt;或&lt;code class=&quot;highlighter-rouge&quot;&gt;.jpg&lt;/code&gt;文件修改扩展名得到。&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h5 id=&quot;24-jekyll主题&quot;&gt;2.4 jekyll主题&lt;/h5&gt;

&lt;p&gt;jekyll的博客主题有很多，下面是较常用的主题网站：&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://github.com/jekyll/jekyll/wiki&quot;&gt;github.com/jekyll/jekyll/wiki&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;http://jekyllthemes.org/&quot;&gt;jekyllthemes.org&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;http://themes.jekyllrc.org/&quot;&gt;themes.jekyllrc.org&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;在选好喜欢的主题后，可以选择将该主题的&lt;code class=&quot;highlighter-rouge&quot;&gt;.zip&lt;/code&gt;文件下载，或者从github上将其clone下来，并将其根目录中的非隐藏文件全部替换到自己的的博客根目录中(隐藏文件是主题的git信息，需要忽略)，进行个性化设置,并执行如下命令查看模板：&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;bundle install
&lt;span class=&quot;gp&quot;&gt;$ &lt;/span&gt;bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;jekyll serve
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;如果仅通过&lt;code class=&quot;highlighter-rouge&quot;&gt;jekyll serve&lt;/code&gt;启动服务则会报错，因为模板通过bundle安装独立的依赖环境，在以后的个性化修改环节中择可以使用&lt;code class=&quot;highlighter-rouge&quot;&gt;jekyll serve&lt;/code&gt;启动服务。&lt;/p&gt;

&lt;h5 id=&quot;25-jekyll搬家&quot;&gt;2.5 jekyll搬家&lt;/h5&gt;

&lt;p&gt;现在将之前clone到本机的repository文件夹内的非隐藏除README文件的其他文件删除，并将在本机搭建好的站点文件夹内的所有文件复制到repository文件夹内，使用git将其push到github上，就可以通过github网址访问博客了。&lt;/p&gt;

&lt;h4 id=&quot;3-后记&quot;&gt;3 后记&lt;/h4&gt;
&lt;p&gt;以上就初步地完成了基于jekyll和github的博客搭建。这里需要说明的是，对于目录中结构的相关设定，可以去jekyll官网查看英文文档。也可以自己尝试修改，查看相关变化慢慢摸索jekyll的各部分功能。我所使用的博客模板源于&lt;a href=&quot;https://mmistakes.github.io/skinny-bones-jekyll/&quot;&gt;SKINNY BONES&lt;/a&gt;。里面的较为详细的主题安装以及个性化设置的说明，有助于更好地了解jekyll。现在我们就可以开始在本机写博客了，之后提交到github上就完成了博客更新。&lt;/p&gt;</content><author><name></name></author><summary type="html">摘要：本文主要介绍基于jekyll和github的静态博客的搭建</summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://gro-mit.github.io/%7B%22teaser%22=%3E%22jekyll.png%22%7D" /></entry><entry><title type="html">start from here</title><link href="https://gro-mit.github.io/articles/start-from-here/" rel="alternate" type="text/html" title="start from here" /><published>2016-08-10T00:00:00+00:00</published><updated>2016-08-10T00:00:00+00:00</updated><id>https://gro-mit.github.io/articles/start-from-here</id><content type="html" xml:base="https://gro-mit.github.io/articles/start-from-here/">&lt;p&gt;平时都会有记录东西的习惯，不论是心情还是关于知识、技术的，积累在evernote或者是onenote上面，一点一滴，江河湖海。看着自己的笔记，总能回想起解决对应问题时从别家博客论坛学习的场景。慢慢地，头脑中浮现出一个词——分享。&lt;/p&gt;

&lt;p&gt;我从别人的分享中获益，自然地，可以把它回馈到网池里，把自己在平时觉得有益的分享出来，或许能够给别人以帮助。在分享给别人的过程中，既重新梳理自己的所做，又有机会和别人交换想法，或许能”再学习”到很多。于人于己都有益的事情，何乐而不为呢。&lt;/p&gt;

&lt;p&gt;one step,&lt;/p&gt;

&lt;p&gt;one note,&lt;/p&gt;

&lt;p&gt;start from here.&lt;/p&gt;</content><author><name></name></author><summary type="html">平时都会有记录东西的习惯，不论是心情还是关于知识、技术的，积累在evernote或者是onenote上面，一点一滴，江河湖海。看着自己的笔记，总能回想起解决对应问题时从别家博客论坛学习的场景。慢慢地，头脑中浮现出一个词——分享。</summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://gro-mit.github.io/%7B%22teaser%22=%3E%22startup.jpg%22%7D" /></entry></feed>