说明

————————————————————————
Quick\textrm{\LaTeX}

格式:[latex]LaTeX expression[/latex]。

例子:

行内公式:e^{i\pi} = -1,生成本公式的文本:[latex]e^{i\pi} = -1[/latex]

独立公式:

    \[e^{i\pi} = -1\]

,生成本公式的文本:[latex]\[e^{i\pi} = -1\][/latex]

    \[\large\zeta (s)=\sum\limits_{n=1}^\infty \frac{1}{n^s}\]

,生成本公式的文本:
[latex]\[\large\zeta (s)=\sum\limits_{n=1}^\infty \frac{1}{n^s}\][/latex]
————————————————————————
CodeColorer
行内代码:template class SomeClass { T value; };,生成本行内代码的文本[cci_cpp]template class SomeClass { T value; };[/cci_cpp]
独立代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function Halt(string program, string data) {
if (/*...Code to check if program(data) can halt...*/) {
return true;
} else {
return false;
}
}

string Halter = "function Halter(string) { alert(\"finished\"); }";
string Looper = "function Looper(string) { while(true){} }";

Halt(Halter, "anything"); // return true
Halt(Looper, "anything"); // return false

string Contradiction = "\
function Contradiction(string program) {\
if (Halt(program, program) == true) {\
while(true){}\
} else {\
alert(\"finished\");\
}\
}\
"


Halt(Contradiction, Contradiction); //return ??

2 Comments

  • 荒唐 说道:

    \[\stackrel{\mathsf{H}}{=}\]:

        \[\stackrel{\mathsf{H}}{=}\]

  • 荒唐 说道:

    \partial\!\!\!/:
    \partial\!\!\!/

    下面是更加标准的做法:
    \usepackage{slashed}
    $\slashed{\partial}$
    \slashed{\partial}

    如果想要在某个特定的公式里面使用某个package,那么在公式块内部开头插入[+preamble]\usepackage{你要使用的package}[/preamble]就可以了。

Leave a Reply

XHTML: You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>