【参考视频:点这里】
目录
一、texlive2018环境安装
二、texstudio编辑器安装
三、基础快速入门
四、中文处理
五、字体设置
六、提纲和文档结构
七、特殊字符
八、插入图片
九、插入表格
十、图片和表格的浮动体
十一、数学公式
1.一般数学公式
2.矩阵排版
3.多行公式排版
十二、参考文献
1.参考文献之 “thebibliography环境”
2.参考文献之 “bib文件”(BibTeX)
3.参考文献之Biber(BibLaTeX)
十三、 自定义命令和环境
完结撒花~
一、texlive2018环境安装
关掉杀毒软件,1以管理员模式运行下面这个.bat文件
漫长的安装过程(我装在了SSD,大概用了40多分钟)
查看tex版本(TeX:一种宏语言。)
查看latex版本(LaTex: Tex中的一个宏集合)
查看xelatex版本(XeLaTeX是新的Unicode版本,内建支持Unicode(UTF-8),自然也包括汉字在内,而且可以调用操作系统的truetype字体。如果你的文档有汉字,那么推荐用XeLaTeX。缺点是不支持某一些宏包。)
二、 texstudio编辑器安装
只装了texlive的话不方便操作,于是装个IDE,傻瓜式安装。
Option--Configure--General--Language修改语言
三、基础快速入门
% 导言区(global settings)
\documentclass{article} % book,report,letter
\title{A Super Model Base On Me}
\author{Mu Yao}
\date{\today}
% 文稿区(What to show)
\begin{document}
\maketitle % 输出上面定义的title author date
Hello world!
Let $f(x)$ be defined by the formula $f(x)=3x^2+x-1$.
And let $g(x)$ be defined by the formula $$g(x)=2x^5+x$$ which is a good formula.
\end{document}
一堆红线怎么办(选项--设置--语言检查--设置默认字典为en_US)!
更多帮助文档:cmd中输入texdoc lshort-zh,中文相关的是texdoc ctex
四、中文处理
更多帮助文档:cmd中输入texdoc ctex
% 导言区(global settings)
\documentclass{article} % book,report,letter
% 处理中文的两种方式
%\documentclass{ctexart} % 第一种
\usepackage{ctex} % 第二种 引入ctex宏包 处理中文
\newcommand\mydegree{^\circ}
\title{\heiti 基于SuperModel的深度学习方法} % 黑体
\author{\kaishu 木尧大兄弟} % 楷书
\date{\today}
% 文稿区(What to show)
\begin{document}
\maketitle % 输出上面定义的title author date
Hello world!
Let $f(x)$ be defined by the formula $f(x)=3x^2+x-1$.
And let $g(x)$ be defined by the formula
\begin{equation} % 带编号的行间公式
g(x)=2x^5+x % 公式前后不用$了
\end{equation}
which is a good formula.
这真是个$90\mydegree$大反转。 % 引入上面自定义的mydegree
\end{document}
五、字体设置
% 字体族
\textrm{Roman Family} % 罗马字体命令
{\rmfamily Roman} {\sffamily Family} % 字体声明 {}限定范围
\textsf{San Serif Family} % 无衬线字体
\sffamily{San Serif Family} % 字体声明
\texttt{Typewriter Family} % 打字机字体
\ttfamily{Typewriter Family} % 字体声明
% 字体系列(粗细 宽度)
\textmd{Medium Series}
{\mdseries Medium Series}
\textbf{Boldface Series}
{\bfseries Boldface Series}
% 字体形状(直立 斜体 伪斜体 小型大写)
\textup{Upright}
{\upshape Upright}
\textit{Italic Shape}
{\itshape {}Italic Shape}
\textsl{Slanted Shape}
{\slshape Slanted Shape}
\textsc{Small Caps Shape}
{\scshape Small Caps Shape}
% 中文字体设置
{\songti 宋体} \quad % one char blank
{\heiti 黑体}
{\fangsong 仿宋}
{\kaishu 楷书}
中文字体的\textbf{粗体}和\textit{斜体}
% 中文字体的\bf{粗体}和\it{斜体}
% font size
{\tiny Hello world}\\
{\scriptsize Hello world}\\
{\footnotesize Hello world}\\
{\small Hello world}\\
{\normalsize Hello world}\\
{\large Hello world}\\
{\Large Hello world}\\
{\LARGE Hello world}\\
{\huge Hello world}\\
{\Huge Hello world}\\
% 中文字号设置
\zihao{-0} 哈喽 沃德!% -0是小初 5是五号
自定义字体:
\newcommand{\myfont}{\textit{\textbf{\textsf{Fancy Text}}}}
正文区: \myfont
效果:
六、提纲和文档结构
% 导言区
% \documentclass{article} % \subsubsection有作用
% \documentclass{ctexart} % 一级标题居中排版 % \subsubsection有作用
\documentclass{ctexbook} % \subsubsection无作用
\usepackage{ctex}
% =========