LaTeX安装及排版科技论文

一、安装使用;
本人使用的编译器是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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值