主页 M

LaTeX使用技巧,overleaf

2023-03-14 网页编程网 网页编程网

0.双栏与页边距

\documentclass[twocolumn]{article}%双栏

\usepackage{geometry}

\geometry{left=2cm,right=2cm,top=2cm,bottom=2cm}%设置页边距

1.行内公式

$ f(x) = a+b $

2.行间公式

$$ f(x) = a+b $$

也可用[ ]代替$$

3.手动编号

$$ f(x) = a - b ag{1.1} $$

公式换行,指\\失效时。

\begin{equation}
\begin{aligned}
\\公式
\end{aligned}
\end{equation}

4.加参考文献

4.1新建reference.bib文件,并在谷歌学术上搜索写上内容。

4.2导入包,\usepackage{biblatex}与\addbibresource{reference.bib}

4.3文中中,需要引用时:\cite{1}

4.4显示参考文献列表时:\printbibliography

文献没有按照引用顺序进行排序,序列号都是乱的,需要修改成:

\begin{refcontext}[sorting = none]

\printbibliography

\end{refcontext}

4.4若文中无法超链接,需加包\usepackage[hidelinks, breaklinks = true]{hyperref}

5.取消section编号

如致谢中:\section*{Acknowledge}%取消编号

6.作者

同单位合并。

\usepackage{authblk}

\author[1,2]{一作}
\author[1,2,*]{二作}
\author[1,2]{三作}
\affil[1]{第一机构}
\affil[2]{第二机构}
\affil[*]{通信作者邮箱}

7.算法伪代码

自带input、output与行号。

\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{algpseudocode}

\begin{algorithm}[H]
	\renewcommand{\algorithmicrequire}{\textbf{Input:}}%%\textbf
	\renewcommand{\algorithmicensure}{\textbf{Output:}}
	\caption{Calculate the same part in multiple rectangles} 
	\label{agorithm0} 
	\begin{algorithmic}[1] 
		\Require 
        $matrix\ D(D^1,D^2,\ldots,D^N), slot$
		\Ensure 
	   aaaa
        \State Initialize the $Actor$ network and $Critic$ network
        \State Receive initial state $sx$
        \Repeat
            \State Initialize a random process $N$ for action exploration
            \State Get the initial values of all agents $x$
            \State $timeBegin= time ()$

        \Until{(each $episode$ != $NULL$)}
	\end{algorithmic} 
\end{algorithm}

8.表格

\usepackage{booktabs}%三线表

9.列表项

\begin{itemize}
\item 列表项1
\item 列表项2
\end{itemize}

10.图跨双栏

在双栏的论文中,若某个图较大,要跨双栏,可使用此法:

\begin{figure*}[ht]

加星号即可。

11.图片引用、公式引用、页脚

\ref{25}

xxx\footnote{Available at https://www.xxx.com}会自动编号

more skills

eps图片

eps图片

公式换行,指\\失效时。

\begin{equation}
\begin{aligned}
\\公式
\end{aligned}
\end{equation}

11.1新建reference.bib文件,并在谷歌学术上搜索写上内容。

11.2导入包,\usepackage{biblatex}与\addbibresource{reference.bib}

11.3文中中,需要引用时:\cite{1}

11.4显示参考文献列表时:\printbibliography

文献没有按照引用顺序进行排序,序列号都是乱的,需要修改成:

\begin{refcontext}[sorting = none]

\printbibliography

\end{refcontext}

11.5若文中无法超链接,需加包\usepackage[hidelinks, breaklinks = true]{hyperref}

阅读原文
阅读 1967
123 显示电脑版