Skip to content

Instantly share code, notes, and snippets.

@jyfeather
Created August 18, 2013 13:42
Show Gist options
  • Save jyfeather/6261726 to your computer and use it in GitHub Desktop.
Save jyfeather/6261726 to your computer and use it in GitHub Desktop.
LaTeX 初学参考
\title{A Very Simple \LaTeXe{} Template}
\author{
Vitaly Surazhsky \\
Department of Computer Science\\
Technion---Israel Institute of Technology\\
Technion City, Haifa 32000, \underline{Israel}
\and
Yossi Gil\\
Department of Computer Science\\
Technion---Israel Institute of Technology\\
Technion City, Haifa 32000, \underline{Israel}
}
\date{\today}
\documentclass[12pt]{article}
\begin{document}
\maketitle
\begin{abstract}
This is the paper's abstract \ldots
\end{abstract}
\section{Introduction}
This is time for all good men to come to the aid of their party!
\paragraph{Outline}
The remainder of this article is organized as follows.
Section~\ref{previous work} gives account of previous work.
Our new and exciting results are described in Section~\ref{results}.
Finally, Section~\ref{conclusions} gives the conclusions.
\section{Previous work}\label{previous work}
A much longer \LaTeXe{} example was written by Gil~\cite{Gil:02}.
\section{Results}\label{results}
In this section we describe the results.
\section{Conclusions}\label{conclusions}
We worked hard, and achieved very little.
\bibliographystyle{abbrv}
\bibliography{main}
\end{document}
This is never printed
\title{\LaTeX Exercise}
\author{Yan Jin}
\date{\today}
%Hello World
\documentclass[11pt]{article}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\begin{document}
\linespread{1.6} %双倍行距
\maketitle
\setcounter{tocdepth}{3}
\tableofcontents
\newpage
\begin{abstract}
This is an abstract of this article!
\end{abstract}
\part{Introduction}
\section{Basic}
\subsection{Basic 1}
\subsection{Basic 2}
\part{history}
\part{conclusion}
Hello, \LaTeX!
\begin{flushright}
\textrm{hello}\\
\end{flushright}
\begin{center}
\textbf{hello}\\
\end{center}
\textcopyright \uwave{YAN} said
\begin{quotation}
I love you CHUCHU.
\end{quotation}
\begin{verbatim}
puts "Hello, World!"
\end{verbatim}
\begin{itemize}
\item R
\item Ruby
\item JAVA
\end{itemize}
\mbox{010 6278 5001}
\fbox{010 6278 5001} \\
Einstein's \(E=mc^2\)
\[E=mc^2\]
\[
\begin{array}{ccc}
x_1 & x_2 & \dots \\
x_3 & x_4 & \dots \\
\vdots & \vdots & \ddots
\end{array}
\]
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment