• Latex 写论文排版方法(vscode)


    1. Latex 基本概念

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

    \documentclass{...} % ... 为某文档类
    % 导言区
    \begin{document}
    % 正文内容
    \end{document}
    % 此后内容会被忽略
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    \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}
    
    • 1
    • 2
    • 3
    • 4
    • 5

    在这里插入图片描述

    3. 公式

    3.1 插入

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

    3.2 引用

    定义实例公式如下:

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

    引用格式: \ref{test}

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

    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}
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20

    引用格式:\ref{tab1}

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

    5. 图片

    5.1 插入

    5.2 引用

    定义实例图片如下:

    \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}
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8

    引用格式: ~\ref{fig1}

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

    6. 文献引用

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

    @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}
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47

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

    待补充

  • 相关阅读:
    弘玑Cyclone2022产品发布会:全新上线智能文档处理交互平台——尚书台
    1003 我要通过!
    elasticsearch(es) 如何查看当前集群中哪个节点是主节点(master)
    Web中的Bias(更新中)
    dropwizard介绍
    微信小程序使用echarts组件实现饼状统计图功能
    定制chromium中window对象添加函数
    安科瑞无线测温产品在某风电场项目的超温事故预警及分析-安科瑞 蒋静
    Java处理数据成为树状结构
    【MicroPython ESP32】 入网和udp数据接收通讯示例
  • 原文地址:https://blog.csdn.net/weixin_41022048/article/details/126238774