ggarlic的blog

cat ~ggarlic/life > /dev/null

Archive for the ‘latex’ tag

我的LaTeX处女文

with 28 comments

毕设要写论文了,试试LaTeX,安装配置过程我就不废话了,网上一搜一大把,我就不掺和了,紧跟时代潮流,我用的XeLaTeX。上图是王道。

求解:这个英文字体看着有点恶心,设置了Times New Roman,但英文看着还是不像Times New Roman。

然后是代码

\documentclass{article}
\usepackage{fontspec,xunicode}
\usepackage{amsmath}
\usepackage{xltxtra}
\usepackage{xeCJK}
\setmainfont{Times New Roman}
\setCJKmainfont{SimSun}

\XeTeXlinebreaklocale "zh"

\begin{document}

\title{我的 \LaTeX{} 处女文}
\author{ggarlic}
\maketitle

\section{先谢郭嘉}
感谢郭嘉,我在几天之前搞定了Texlive2009,\XeTeX{} 和 \XeLaTeX{} 真是个好东西,少了不少设置的麻烦。\\
wiki上说 \LaTeX{} 是使用 \TeX{} 的主要方式,我很好奇还真有人用plain \TeX{}写东西?
\section{测试其他}
the current version is \LaTeXe
\begin{align}
 E &= mc^2	\\
 m &=\frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}
 \end{align}
\end{document}

PS:有些话你不能放到网上,不能四处乱说,但你实在想说咋办?对着黑洞说!

#!/bin/bash
echo $1 >/dev/null

PS2:美帝的网络好得呱呱叫,打倒美帝,我用ssh更新chrome,见图中速度。从ssh服务器再下载到本地就只有100K多一点的速度了,更加坚定了我为共产主义献身的决心,再说一遍,打倒美帝!!!
2010-05-09--1273376048_494x256_scrot

Written by ggarlic

五月 9th, 2010 at 4:18 下午

Posted in Software

Tagged with ,