Latex 写论文排版方法(vscode)

1. Latex 基本概念

LATEX 源代码以一个 \documentclass 命令作为开头,它指定了文档使用的文档类。document 环境当中的内容是文档正文。
在 \documentclass 和 \begin{document} 之间的位置称为导言区。在导言区中常会使用
\usepackage 命令调用宏包,还会进行文档的全局设置。

\documentclass{...} % ... 为某文档类
% 导言区
\begin{document}
% 正文内容
\end{document}
% 此后内容会被忽略

\documentclass[⟨options⟩]{⟨class-name⟩} ,其中 ⟨class-name⟩ 为文档类的名称,如 LATEX 提供的 article, report, book,在其基础上派
生的一些文档类如支持中文排版的 ctexart / ctexrep / ctexbook,或者有其它功能的一些文档类,
如 moderncv / beamer 等。LATEX 提供的基础文档类见表 1.1,其中前三个习惯上称为“标准文
档类”。

可选参数 ⟨options⟩ 为文档类指定选项,以全局地规定一些排版的参数,如字号、纸张大小、单双面等等。比如调用 article 文档类排版文章,指定纸张为 A4 大小,基本字号为 11pt,双面排版:\documentclass[11pt,twoside,a4paper]{article}
在这里插入图片描述

2. 文本

2.1 文本环境与数学格式

  • 在正文中latex 中的文字为文本环境,如果想插入数学符号或公式需要转换成数学格式。通常用$.....$ [行内] $$.....$$ [行间]
  • 如果有 % 需要在前加 \ 即 \%

2.2 latex特殊符号

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

2.3 带缩进的小黑点

\begin{itemize}
    \item[$\bullet$] We present..
    \item[$\bullet$] We...
    \item[$\bullet$] We ...
\end{itemize}

在这里插入图片描述

2.4 双引号

左引号:输入两次·(Tab 键上方);右引号shift+"

3. 公式

3.1 插入

在公式部分可借助网站latex公式在线编辑器
网站可以直接编写公式,也可以识别图片

3.2 引用

定义实例公式如下:

\begin{equation} \label{test} 
x^2 + y^2 = z^2
\end{equation}

引用格式: \ref{test}

As Eq. ( \ref{test} ) shows, ....

4. 表格

4.1 插入

在公式部分可借助网站www.tablesgenerator.com https://www.latex-tables.com/【好用的】

网站可以直接画出相应表格,也可以识别图片

4.2 引用

定义实例表格如下:

\begin{table}
    \caption{Recall performance on CVUSA.}\label{tab1}
    \vspace{-1em}  % 调整与上文的间距
    \centering
    \begin{tabular}{lllll} 
        \toprule
        \textbf{Methods}             & \textbf{r@1}   & \textbf{r@5}   & \textbf{r@10}  & \textbf{r@1\%}  \\ 
        \midrule
        Workman \textit{et al}.\cite{12} & -              & -              & -              & 34.3            \\
        Zhai \textit{et al}. \cite{4}    & -              & -              & -              & 43.2            \\
        Vo and Hays\cite{17}             & -              & -              & -              & 63.7            \\
        CVM-NET\cite{18}                 & 22.47          & 49.98          & 63.18          & 93.62           \\
        Liu \& Li\cite{5}               & 40.79          & 66.82          & 76.36          & 96.12           \\
        Regmi and Shah\cite{24}          & 48.75          & -              & 81.27          & 95.98           \\
        Siam-FCANet34\cite{25}       & -              & -              & -              & 98.30           \\
        CVFT \cite{3}                    & 61.43          & 84.69          & 90.49          & 99.02           \\
        \bottomrule
\end{tabular}
\vspace{-1em}  % 调整与下文的间距
\end{table}

引用格式:\ref{tab1}

As seen in Table \ref{tab1}, the second baseline has the worst recall

5. 图片

5.1 插入

定义实例图片如下:

\begin{figure}
    \vspace{-1em}
    \centering
    \includegraphics[width=\textwidth]{fig1.pdf}
    \caption{Architecture of our framework. This framework contains three fundamental components...} 
    \vspace{-1em}
    \label{fig1}
\end{figure}

5.2 引用

引用格式: ~\ref{fig1}

As shown in Fig.~\ref{fig1}, the process...

5.3 图片PDF格式插入PDF 插入留白大

解决方案PDF文件在线裁剪进行编辑,可以批量操作很方便。

5.4 PPT画图 导入Latex

解决方案 将PPT画的图另存为PDF时 点 选项—当前幻灯片
在这里插入图片描述

6. 文献引用

在项目文件目录下创建一个 bibtex.bib 文件,在这里将文章所用到的参考文献的bibtex 导入,具体可在谷歌学术中找到对应文献的引用格式。建立参考文献数据库,引用的时候调用所需要的参考文献。在.tex主文件中加入下面的语句,用以调用和编译 bibtex.bib

\begin{document}
\bibliographystyle{IEEEtran} %.tex 下\begin{document} 后添加引用文献的格式,以IEEE期刊为例

...
\bibliography{bibtex} %  文档reference部分添加,{}内为`bibtex.bib`  根据创建的.bib 修改

bibtex.bib

@inproceedings{1,
  title={Where am i looking at? joint location and orientation estimation by cross-view matching},
  author={Shi, Yujiao and Yu, Xin and Campbell, Dylan and Li, Hongdong},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={4064--4072},
  year={2020}
}
@article{2,
  title={Cross-view image synthesis using geometry-guided conditional gans},
  author={Regmi, Krishna and Borji, Ali},
  journal={Computer Vision and Image Understanding},
  volume={187},
  pages={102788},
  year={2019},
  publisher={Elsevier}
}
@inproceedings{3,
  title={Optimal feature transport for cross-view image geo-localization},
  author={Shi, Yujiao and Yu, Xin and Liu, Liu and Zhang, Tong and Li, Hongdong},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  volume={34},
  number={07},
  pages={11990--11997},
  year={2020}
}
@inproceedings{4,
  title={Predicting ground-level scene layout from aerial imagery},
  author={Zhai, Menghua and Bessinger, Zachary and Workman, Scott and Jacobs, Nathan},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  pages={867--875},
  year={2017}
}
@inproceedings{5,
  title={Lending orientation to neural networks for cross-view geo-localization},
  author={Liu, Liu and Li, Hongdong},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={5624--5633},
  year={2019}
}
@inproceedings{6,
  title={Vehicle ego-localization by matching in-vehicle camera images to an aerial image},
  author={Noda, Masafumi and Takahashi, Tomokazu and Deguchi, Daisuke and Ide, Ichiro and Murase, Hiroshi and Kojima, Yoshiko and Naito, Takashi},
  booktitle={Asian Conference on Computer Vision},
  pages={163--173},
  year={2010},
  organization={Springer}
}

引用格式: \cite{X}
{X},X 为 bibtex.bib 文件 中的label, 例如可用\cite{3}

7.常见问题

7.1 解决LaTex中插入Visio画图有多余边框的问题

待补充

  • 6
    点赞
  • 102
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值