LaTeX学习

来源:互联网 发布:学汉字软件哪个软件好 编辑:程序博客网 时间:2024/04/29 13:49

(1)入门:http://blog.csdn.net/perfumekristy/article/details/8515272

武汉大学一个老师的课件:http://download.csdn.net/detail/jackery2008/4639501

(2)参考文献的生成:

http://www.docin.com/p-705314677.html

http://blog.csdn.net/chl033/article/details/5927207

其中,Bibtex编译:在WinEdt菜单中Tex->~(ctrl+shift+B){变灰时删除.bak文件}

(3)公式编辑:

矩阵:http://jingyan.baidu.com/article/f3e34a128c53aef5ea653542.html

上下标:http://blog.sina.com.cn/s/blog_5e16f1770100fs7f.html

http://blog.sina.com.cn/s/blog_70f56d6d0101b86b.html

http://blog.sina.com.cn/s/blog_5e16f1770100fs7f.html

(4)非常好的一个博客:

http://blog.csdn.net/xiazdong/article/details/8891979


具体细节:

1.中文实现:

\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{UTF8}{gbsn}%{gbasn:表示宋体;gkai:表示楷体}
这是一个CJK例子,使用了UTF-8编码和gbsn字体。
\end{CJK}
\end{document}

2.插入代码:http://blog.sina.com.cn/s/blog_50f21fed01016fud.html

\documentclass{article}
\usepackage{listings}


\begin{document}
 \begin{lstlisting}[language=C,numbers=left,numberstyle=\tiny,keywordstyle=\color{blue!70},commentstyle=\color{red!50!green!50!blue!50},frame=shadowbox, rulesepcolor=\color{red!20!green!20!blue!20}]
int main(int argc, char ** argv)
{
printf("Hello world! \n");
return 0;
}
\end{lstlisting}
\end{document}

3.插入矩阵:

\documentclass{article}
\begin{document}
\begin{equation}       %开始数学环境
\left[                 %左括号
  \begin{array}{ccc}   %该矩阵一共3列,每一列都居中放置
    a11 & a12 & a13\\  %第一行元素
    a21 & a22 & a23\\  %第二行元素
  \end{array}
\right]                 %右括号
\end{equation}
\end{document}

注意:若\begin{equation}与\end{equation}之间有空格,则会出现missing $ 的错误。

4.特殊字符的输入:

特殊字符输出$#{}_\特殊字符输入\$\#\{\}\_{}$\backslash$

-:连字符,Hyper-V。
--:数字范围,如1--10。
---:破折号,如 I--- student。
大于号:\testgreater
小于号:\textless
大于等于号敲\geq ,小于等于号敲\leq

一道杠用 |x| 就行,或 \vert,或者左右分别用 \lvert、\rvert

两道杠用 \Vert,或左右用 \lVert、\rVert

5.插入代码,设置边框什么的:

http://www.cnblogs.com/longdouhzt/archive/2012/09/28/2706927.html

0 0