写论文latex常用命令,及小技巧

$\rm{}$正体
$\bf{}$粗体
$\it{}斜体

\begin{equation}\label{}

\end{equation}

公式
'\ref{}'引用
'\eqref{}'带括号引用公式

\begin{equation}\label{}

\begin{aligned}

...=&..

     &...

\end{aligned}

\end{equation}

公式等号处对齐

\texatasciiticle,

$\sim$

波浪线
$\times$乘号

\begin{figure}[] figure*占两栏

\small

\centering

\includegraphics[width=1cm,height=10cm]{F1.pdf}

\caption{标题}

\label{标签}

\end{figure}

插入图片
\cite{}引用参考文献

\bibliographystyle{IEEEtran(参考文献格式)}

\bibliography{ref(bib文件名)}

添加参考文献

\allowdisplaybreaks[4]

.

.

.

\begin{align*}

公式

\end{align*}

跨业公式

\begin{table*}[t]带星通栏,不带星单栏
        \label{}
        \small
        \caption{}
        \centering
        (a)
        \resizebox{180mm}{9mm}{
            \begin{tabular}{cccccccccccc}
                \toprule(三线格)
                \midrule(三线格)
                \bottomrule(三线格)       
            \end{tabular}
        }

\end{table*}

插入表格

通栏表格想插到页顶,需要提前一页

Create LaTeX tables online – TablesGenerator.comTables Generator 网络,可以帮助我们快速生成表格代码
$\pm$\pm 加减号
\% ,  \_百分号,下划线
论文结尾插入作者照片,右键点图片(事先转成灰度照片)选(bitmap2eps.exe)

插入子图用subfigure

\begin{figure}[t]
    \small
    \centering

    \subfigure[]{\includegraphics[width=3cm,height=3.2cm]{images//jjs.pdf}}
    \subfigure[]{\includegraphics[width=5cm,height=3.2cm]{images//jjs_labels (2).pdf}}
    \caption{}
    \label{F7}
\end{figure}

插入分组子图用minipage(比如三组图片希望同时出现在一页)

多个表格希望时同出在一个table内用多个tabular

bib 参考文献作者姓名:

姓,名 and 姓,名 and...

或者

名 姓 and 名 姓

论文参考文献处就会显示成名首字母加点在前,姓在后的形式  (不确定对不对)

在文章末尾添加

\begin{IEEEbiography}[{\includegraphics[width=1in,height=1.25in,clip,keepaspectratio]{images\\Robot_Starscream.pdf}}]{name}

作者简介

\end{IEEEbiography}由于内容太多老是自动跳到下一页或右栏,可以将简介内容拿出一部分来,放到\newpage后面

再参考

LaTeX基础四:字体字号设置 - shawncheer - 博客园

改变字号

有必要再参考

https://jingyan.baidu.com/article/948f5924e1ac52d80ef5f966.html

调整文字间隔就好

直接在下载学术网站论文引用的bib文件时

会有@article和@inproceedings

@article 内用journal={}

@inproceedings 内用booktitle={}

如果用反了可能会使参考文献显示不出期刊和会议,注意检查(猜的)
\addtocounter{equation}{+1}公式序号加1

\begin{itemize}

    \item[$\bullet$] 

    \item[$\bullet$] 

     \item[$\bullet$]
\end{itemize}

列举
\begin{enumerate}

\item For all authors...
\begin{enumerate}
  \item Do the main claims made in?
    \answerYes{}
  \item Did you describe thork?
    \answerNo{}
  \item Did yor work?
    \answerNA{}
  \item Havems to them?
    \answerYes{}
\end{enumerate}

\item If youcal results...
\begin{enumerate}
  \item Did esults?
    \answerNA{}
	\item Didl results?
    \answerNA{}
\end{enumerate}

\end{enumerate}

列举

\appendices

\section{A}

\section{B}

附录
\section*{标题}无标号章节
https://jingyan.baidu.com/article/f3e34a128c53aef5ea653542.html输入矩阵

\usepackage[numbers,sort&compress]{natbib}

正文中\cite{1,2,5,7,8,9} 

引用多篇参考文献效果[1,2,5,7-9]

\usepackage{stfloats}

\begin{table*}[bp]

\newcommand{\tabincell}[2]{\begin{tabular}

{@{}#1@{}}#2\end{tabular}}

 \centering

 \resizebox{180mm}{25mm}{

  \begin{tabular}{c}

   \toprule
            \tabincell{c}{ 

    \begin{math}

      \begin{aligned}

                 \mathbf{T} &=\left\langle\mathbf{k}_{p} \bullet \mathbf{k}_{p}^{* \top}\right\rangle=\left[\begin{array}{ccc}
                \left\langle a a^{*}\right\rangle & \left\langle a b^{*}\right\rangle & \left\langle a c^{*}\right\rangle \\
                \left\langle b a^{*}\right\rangle & \left\langle b b^{*}\right\rangle & \left\langle b c^{*}\right\rangle \\
                \left\langle c a^{*}\right\rangle & \left\langle c b^{*}\right\rangle & \left\langle c c^{*}\right\rangle
                \end{array}\right] \\
                &=\frac{1}{2}\left[\begin{array}{ccc}
                \left\langle S_{h h}+\left.S_{v v}\right|^{2}\right\rangle & \left\langle\left(S_{h h}+S_{v v}\right)\left(S_{h h}-S_{v v}\right)^{*}\right\rangle & \left\langle 2\left(S_{h h}+S_{v v}\right) S_{h v}^{*}\right\rangle \\
                \left\langle\left(S_{h h}-S_{v v}\right)\left(S_{h h}+S_{v v}\right)^{*}\right\rangle & \left\langle\left|S_{h h}-S_{v v}\right|^{2}\right\rangle & \left\langle 2\left(S_{h h}-S_{v v}\right) S_{h v}^{*}\right\rangle \\
                \left\langle 2 S_{h v}\left(S_{h h}+S_{v v}\right)^{*}\right\rangle & \left\langle 2 S_{h v}\left(S_{h h}-S_{v v}\right)^{*}\right\rangle & \left\langle 4\left|S_{h v}\right|^{2}\right\rangle
                \end{array}\right] ~~~(10)\\
                &=\left[\begin{array}{ccc}
                T_{11} & T_{12 r}+i T_{12 i} & T_{13 r}+i T_{13 i} \\
                T_{12 r}-i T_{12 i} & T_{22} & T_{23 r}+i T_{23 i} \\
                T_{13 r}-i T_{13 i} & T_{23 r}-i T_{23 i} & T_{33}
                \end{array}\right]
                \end{aligned}
                \end{math}
            }
        \end{tabular}
    }
\end{table*}

页面底部放表格,表格内插入数学公式(效果自己试)

\sum\nolimits_{j=1}^{M}   上下标位于求和符号的水平右端,

\sum\limits_{j=1}^{M}   上下标位于求和符号的上下处,

\sum_{j=1}^{M}  对上下标位置没有设定,会随公式所处环境自动调整。

求和符号上下标位置

Latex中的空格_seaskying的专栏-CSDN博客_latex空格

各种空格

\usepackage{algorithm}

\usepackage{algorithmicx}

\usepackage{algpseudocode}

\renewcommand{\algorithmicrequire}{\textbf{Input:}} % Use Input in the format of Algorithm

\renewcommand{\algorithmicensure}{\textbf{Output:}} % Use Output in the format of Algorithm

\begin{algorithm}[t] 

 \caption{Stage-wise Training} 

   \label{A1} 

    \begin{algorithmic}[1]

    \Require {Training dataset $\Omega$}

    \Ensure 

    The learned PolMPCNN

    \State{\textbf{X} and \textbf{Y} represent a two-scale training sample and its one-hot encoding label from $\Omega$, respectively;} 

    \State $\lambda$ represents the training weight of \textit{X}; 
    \State $\mathrm{G}^{r}$ represents the PolMPCNN model after \textit{r} stages of training, and \textit{R} Rrepresents the total number of stages;
    \While {$\mathit{r}\leq \mathit{R}$} 
        \State get the training dataset \textbf{S}; 
        \While{$\left| \Omega \right|>0 $}
            \State fetch \textbf{X} and \textbf{Y} from $\Omega$;
            \State set $\lambda=1$;
            \If{$\lambda > 1$}
                \State input \textbf{X} into $\mathrm{G}^{r-1}$;
            \EndIf
            \State {get $\lambda$ for \textbf{X} by \eqref{E21};}
            \State calculate loss function by \eqref{E19} and minimise it by \Statex \qquad \quad stochastic gradient descent;
        \EndWhile
        \State get $\mathrm{G}^{r}$;
    \EndWhile\\ 
    \Return  the learned PolMPCNN $\mathrm{G}^{R}$. 
    \end{algorithmic}
\end{algorithm}

插入伪代码;

换行对齐

\begin{table}[h]\label{T1}
    \centering
    \setlength{\abovecaptionskip}{0.2cm}
    \setlength{\belowcaptionskip}{0.2cm}
    \caption{}
    \begin{tabular}{c|c|c|c|c}
    \end{tabular}
\end{table}

标题前后空白
\usepackage{wrapfig}

\begin{wrapfigure}{l}{9.5cm}
    \centering
    \subfigure[Transformer encoder in ViT]{\includegraphics[]{}
    \subfigure[TMLGC module]{\includegraphics[]{}}
    \caption{}
    \label{F3}
\end{wrapfigure}
文字中间插入图片
\section*{Checklist}标题不带标号

  

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值