一、安装使用;
本人使用的编译器是Miktex,开发工具使用Texstudio或者TeXmaker均可。
Miktex下载,登录官网下载即可: https://miktex.org/download
Texstudio或者TeXmaker的下载:百度其官网即可下载。
安装过程中最重要2点:
1、一定要先安装Miktex,后安装相应的开发工具,顺序错误或导致部分编译命令的路径无法自动找到。安装顺序不正确后可以卸载后按照正确顺序重新安装。
2、开发工具安装过程中,可能会有使用人的选择,选择对本用户即可,不必选择对所有用户(有可能导致错误)。
二、排版测试:
可使用如下简单tex代码,测试所安装的是否正确。如果测试没问题,可以正常显示,表示安装没问题。
\documentclass{article}
\title{A Test for TeXstudio}
\author{Dale}
\begin{document}
\maketitle
\tableofcontents
\section{Hello China} China is in East Asia.
\subsection{Hello Beijing} Beijing is the capital of China.
\subsubsection{Hello Dongcheng District}
\paragraph{Hello Tian'anmen Square}is in the center of Beijing
\subparagraph{Hello Chairman Mao} is in the center of Tian'anmen Square
\end{document}
三、相关注意事项:
1、使用latex自动排版表格图片。
在表格公式图片的开始后面加上[htb]就可以了,把排版工作交给latex。如果不想让LaTeX自动排版,还是保持在编辑的文档中的位置,在表格图片后面加[h],表明表格图片排版在当前位置。
2、在论文中插入算法。
这篇博文讲的很详细,亲测可用
https://blog.csdn.net/zzp_403184692/article/details/48712385
LaTeX算法排版例子
1)首先在导言区加入语句:
\usepackage{algorithm}
\usepackage{algorithmic}
2)\renewcommand 改变现有命令的定义。在导言区加入如下语句:
\renewcommand{\algorithmicrequire}{ \textbf{Input:}} %Use Input in the format of Algorithm
\renewcommand{\algorithmicensure}{ \textbf{Output:}} %UseOutput in the format of Algorithm
使得原来软件包中定义的命令\REQUIRE和\ENSURE显示为Input:和Output:
一个例子如下:
\begin{algorithm}[htb]
\caption{ Framework of ensemble learning for our system.}
\label{alg:Framwork}
\begin{algorithmic}[1] %这个1 表示每一行都显示数字
\REQUIRE ~~\ %算法的输入参数:Input
The set of positive samples for current batch, P n P_n Pn;\
The set of unlabelled samples for current batch, U n U_n Un;\
Ensemble of