锘??xml version="1.0" encoding="utf-8" standalone="yes"?> %%%%%%%%%%綆鍗曡〃鏍?%%%%%%%%% \begin{tabular}{|c|c|} \hline a & b \\\hline c & d\\ \hline \end{tabular} %%%%%%%%%%綆鍗曡〃鏍?灞呬腑(涓)%%%%%%%%%% \begin{center} \begin{tabular}{|c|c|} \hline a & b \\\hline c & d\\ \hline \end{tabular} \end{center} %%%%%%%%%%綆鍗曡〃鏍?灞呬腑錛堜簩錛?%%%%%%%%% \centering \begin{tabular}{|c|c|} \hline a & b \\\hline c & d\\ \hline \end{tabular} This a Table~ %%%%%%%%%%綆鍗曡〃鏍?灞呬腑,鏍囬錛岀紪鍙?鍥哄畾浣嶇疆%%%%%%%%%% \begin{table}[h] \centering \caption{table}\label{tab:table} \begin{tabular}{|c|c|} \hline a & b \\\hline c & d\\ \hline \end{tabular} \end{table} %%%%%%%%%%涓涓畬鏁寸殑渚嬪瓙%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%Beginning of Table example%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{table}[ht] \caption{Review paper} % title of Table \centering % used for centering table \begin{tabular}{|c|c|} % centered columns (2 columns) \hline\hline %inserts double horizontal lines Item 1 & Item 2 \\ [0.5ex] % inserts table heading \hline % inserts single horizontal line a & b \\ % inserting body of the table c & d \\ e & f \\[1.5ex] % [1.5ex] adds vertical space \hline %inserts single line \end{tabular} \label{table:nonlin} % is used to refer this table in the text \end{table} %%%%%%%%%%%%%%%%%% end of the example%%%%%%%%%%%%%%%%%%%%%%%%% The algorithm2e package (first released 1995, latest updated December 2009 according to the v4.01 manual) allows typesetting algorithms with a lot of customization. The package is loaded like and a simple example, taken from the v4.01 manual, is You can change default language in the middle of document with Example of usage in the document: Here's the result:
\hline
Accuracy & General & test 1 & test 2 & test 3 & test 4\tabularnewline
\hline
Linear & 0.8950695 & 0.8817864 & 0.8884132 & 0.8884036 & 0.9217801
\tabularnewline
\hline
Polynomial Degree=2 & 0.927821 & 0.9118337 & 0.934325 & 0.913003 &
0.9335226\tabularnewline
\hline
Polynomial Degree=2 & 0.8350725 & 0.8317865 & 0.8285052 & 0.8278306 &
0.852091
\tabularnewline
\hline
Polynomial Degree=3 & 0.770894 & 0.7539803 & 0.7510282 & 0.7762011 &
0.7821553\tabularnewline
\hline
Polynomial Degree=4 & 0.7172013 & 0.685079 & 0.6988003 & 0.7329987 &
0.7520278\tabularnewline
\hline
\end{tabular}
=========================
]]>
\begin{figure}[ht]
]]>
\begin{equation}
\begin{split}
f(x)=1+&g(x)\\
=1+&\left(x+x^2+\dots
\parenthnewln{+}x^n+\ldots\right)
\end{split}
\end{equation}
寰楀埌錛?br />
]]>
Typesetting using the algorithm2e package\usepackage[options]{algorithm2e}
\SetAlgoLined
\KwData{this text}
\KwResult{how to write algorithm with \LaTeX2e }
initialization\;
\While{not at end of this document}{
read current\;
\eIf{understand}{
go to next section\;
current section becomes this one\;
}{
go back to the beginning of current section\;
}
}
\caption{How to write algorithms}
\end{algorithm}
]]>
\usepackage{color}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\lstset{frame=tb,
language=Java,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=none,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true
tabsize=3
}
================\lstset{language=Java}.
// Hello.java
import javax.swing.JApplet;
import java.awt.Graphics;
public class Hello extends JApplet {
public void paintComponent(Graphics g) {
g.drawString("Hello, world!", 65, 95);
}
}\end{lstlisting}

婕旂ず浠g爜錛?/p>
\documentclass{article}
\setlength\textwidth{245.0pt}
\usepackage{CJK}
\usepackage{indentfirst}
\usepackage{amsmath}
\begin{CJK*}{GBK}{song}
\begin{document}
鏂規硶涓錛?/p>
$$ f(x)=\left\{
\begin{aligned}
x & = & \cos(t) \\
y & = & \sin(t) \\
z & = & \frac xy
\end{aligned}
\right.
$$
鏂規硶浜岋細
$$ F^{HLLC}=\left\{
\begin{array}{rcl}
F_L
F^*_L
F^*_R
F_R
\end{array} \right. $$
鏂規硶涓?
$$f(x)=
\begin{cases}
0& \text{x=0}\\
1& \text{x!=0}
\end{cases}$$
\end{CJK*}
\end{document}