Latex基础 - 安装和模板
2014-07-04 20:11
218 查看
安装包:CTeX(集成中文支持) + TeXstudio(LaTexIDE) + 任意PDF浏览器(小巧单文件SumatraPDF)
注:CTeX自带两个共享软件,在试用期免费,之后需要注册,尊重版权或者在公司环境的就不要装了,TeXstudio是个人觉得最好的选择。
LaTeX模板:https://www.sharelatex.com/templates/ (国内也能打开)
东拼西凑得到一个基本的支持中文的模板:
注:CTeX自带两个共享软件,在试用期免费,之后需要注册,尊重版权或者在公司环境的就不要装了,TeXstudio是个人觉得最好的选择。
LaTeX模板:https://www.sharelatex.com/templates/ (国内也能打开)
东拼西凑得到一个基本的支持中文的模板:
\documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage[colorinlistoftodos]{todonotes} \usepackage{CJK} \begin{CJK}{UTF8}{song} \title{Your Paper} \author{我是作者} \date{\today} \end{CJK} \begin{document} \begin{CJK}{UTF8}{song} \maketitle \begin{abstract} Your abstract. 这里是中文定义 \end{abstract} \section{Introduction} Your introduction goes here! Some examples of commonly used commands and features are listed below, to help you get started. If you have a question, please use the help menu (?) on the top bar to search for help or ask us a question. \section{Some \LaTeX{} Examples} \label{sec:examples} \subsection{How to Leave Comments} Comments can be added to the margins of the document using the \todo{Here's a comment in the margin!} todo command, as shown in the example on the right. You can also add inline comments: \todo[inline, color=green!40]{This is an inline comment.} \subsection{How to Include Figures} First you have to upload the image file (JPEG, PNG or PDF) from your computer to writeLaTeX using the upload link the project menu. Then use the includegraphics command to include it in your document. Use the figure environment and the caption command to add a number and a caption to your figure. See the code for Figure \ref{fig:frog} in this section for an example. \subsection{How to Make Tables} Use the table and tabular commands for basic tables --- see Table~\ref{tab:widgets}, for example. \begin{table} \centering \begin{tabular}{l|r} Item & Quantity \\\hline Widgets & 42 \\ Gadgets & 13 \end{tabular} \caption{\label{tab:widgets}An example table.} \end{table} \subsection{How to Write Mathematics} \LaTeX{} is great at typesetting mathematics. Let $X_1, X_2, \ldots, X_n$ be a sequence of independent and identically distributed random variables with $\text{E}[X_i] = \mu$ and $\text{Var}[X_i] = \sigma^2 < \infty$, and let $$S_n = \frac{X_1 + X_2 + \cdots + X_n}{n} = \frac{1}{n}\sum_{i}^{n} X_i$$ denote their mean. Then as $n$ approaches infinity, the random variables $\sqrt{n}(S_n - \mu)$ converge in distribution to a normal $\mathcal{N}(0, \sigma^2)$. \subsection{How to Make Sections and Subsections} Use section and subsection commands to organize your document. \LaTeX{} handles all the formatting and numbering automatically. Use ref and label commands for cross-references. \subsection{How to Make Lists} You can make lists with automatic numbering \dots \begin{enumerate} \item Like this, \item and like this. \end{enumerate} \dots or bullet points \dots \begin{itemize} \item Like this, \item and like this. \end{itemize} \dots or with words and descriptions \dots \begin{description} \item[Word] Definition \item[Concept] Explanation \item[Idea] Text \end{description} We hope you find write\LaTeX\ useful, and please let us know if you have any feedback using the help menu above. \end{CJK} \end{document}
相关文章推荐
- latex编辑器的选择、texlive的安装及学位模板的使用
- 虚拟化基础服务器模板用CENTOS6的MINI版安装后的在线扩展基本存储
- 【Node.js基础篇】(八)安装Express 3.2框架以及ejs模板
- Eclipse基础--plugin插件安装
- Eclipse基础--使用links方式安装Eclipse插件
- Eclipse基础--使用links方式安装Eclipse插件 zz
- Eclipse基础--使用links方式安装Eclipse插件
- Eclipse基础--使用links方式安装Eclipse插件
- 在Linux下安装LaTeX+CJK+中文字体的方法 [转]
- Eclipse基础--使用links方式安装Eclipse插件
- Mambo视频教程下载(安装、模板、组件、模块、触发器)
- DNN安装模板(DotNetNuke.install)
- Eclipse基础--使用links方式安装Eclipse插件
- Ajax.NET 作者发布支持Visual Web Developer 2005的模板安装
- Eclipse基础--安装eclipse及语言包
- DNN安装模板(DotNetNuke.install)
- Eclipse基础--使用links方式安装Eclipse插件
- Eclipse基础--使用links方式安装Eclipse插件
- Eclipse基础--plugin插件安装