LaTex入门
%导言区
\documentclass{article} %book,report,letter %引入文档类,
\usepackage{ctex}%导入中文宏包,这样我们就可以输入中文了
\newcommand\degree{^\circ} %如果文章编译报错是有内容没有定义,可以在导言区进行定义,使用\newcommand
\title(The name of your article) %进行一些全局的必要的设置可以使用\heiti 设置title的展示字体
\author(The author's name ) %可以使用\kaishu 设置字体
%正文区(文稿区)正文区中有且仅有一个Document环境,我们需要早document环境中撰写我们的文档
\begin{document}
\maketitle
\rmfanily Roman Family %使用这个声明后续的字体使用Roman Family字体
{\rmfamily Roman Family} {\sffamily Sans Serif Family} {\ttfamily Typewriter Family} 可以提前使用这些标明字体,在后续使用中自接使用\sffamily 文本,即可使文本变换成该字体,当遇到下一次字体声明时,会默认结束这个字体声明,在下一个文本使用后一个字体声明,也可以使用大括号来限定字体使用的范围
字体系列设置(粗细,宽度)
\textmd{Medium Series} \textbf{Boldface Series}
{\mdseries Medium Series} {\bfseries Boldface Series}
字体形状(直立、斜体、伪斜体、小型大写)
\textup{Upright Shape} \textit{Italic Shape}
\textsl{Slanted Shape} \textsc{Small Caps Shape}
{\upshape Upright Shape}
{\itshape Italic Shape}
{\slshape Slanted Shape}
{\scshape Small Caps Shape}
中文字体
onti宋体} \quad {\heiti 黑体} \quad {fangsong 仿宋}
\quad {\kaishu 楷书 }
{\tiny Hello}\\
{\scriptsize Hello}\\
{\footnotesize Hello}\\
{\small Hello}\\
{\normalsize Hello}\\
{\large Hello}\\
{\Large Hello}\\
{\LARGE Hello}\\
{\huge Hello}\\
{\Huge Hello}\\
同时ctex宏包具有中文字号设置命令:\zihao{-0} 你好!
768888888888888
\newcommand{\myfont}{\textit{\textbf{\textsf{Fancy Text}}}}
\myfont %使用定义的myfont来设定字体的大小
\section{}构建小结,\subsection{}构建子小结
\section{引言}
\section{实验方法}
\section{实验结果}
\subsection{数据}
\subsection{图表}
\subsubsection{实验条件}
\subsubsection{实验过程}
\subsection{结果分析}
\section{结论}
\section{致谢}
\section{参考文献}
hello world !
%可以在latex文件中的任何一个位置插入注释,用%来表示注释,可以帮助我们以后修改latex文档提供很大的方便
%latex 文档中如果想要换行的话可以输入一个空行,当然也可以输入多个空行,但是,latex默认把多个空行当做一个空行来进行处理
Let $f(x)$ be defined by the formula $$f(x)=3x^2+x-1$$ which is a polynomial of degree 2.
\end{document}
生命依靠吸收负熵,避免了趋向平衡的衰退