美文网首页
Latex笔记-写论文常用语法

Latex笔记-写论文常用语法

作者: 升不上三段的大鱼 | 来源:发表于2021-02-19 12:39 被阅读0次

写论文要用的语法。

  1. 标题,姓名

为文档指定了标题、作者和日期之后,可以使用\maketitle命令在文档上打印这些信息,包含在文档正文中要打印标题的位置。

\documentclass[12pt, letterpaper, twoside]{article}
\usepackage[utf8]{inputenc}
\title{title}
\author{author}}
\date{data}

\begin{document}

\maketitle

...

\end{document}
  1. 章节

章节最好单开一个文档,然后使用\include{}添加到主文件里。

% 主文件里
\include{chapter1}

% chapter1.tex
\chapter{Introduction} \label{Introduction}
...
\section{Motivation} \label{Motivation}
...
  1. 数学公式

行内公式:

\( equation\)
$equation$

单行显示的公式:

\[ equation\]

\begin{equation} \label{eq}
...
\end{equation}
  1. 图片与表格
\usepackage{graphicx}
\graphicspath{ {./images/} }

% 单张图片
\begin{figure}[htpb]
    \centering
    \includegraphics[scale=1]{images/image.png}
    \caption[Short caption]{Long caption}
    \label{fig:image}
\end{figure}

%多张图片
\begin{figure}[htpb]
    \centering
    \begin{subfigure}[b]{0.4\textwidth}
        \includegraphics[width=\textwidth]{images/origin.jpg}
        \caption{}
        \label{fig:origin}
    \end{subfigure}
    \hfill
    \begin{subfigure}[b]{0.4\textwidth}
        \includegraphics[width=\textwidth]{images/transformed.jpg}
        \caption{}
        \label{fig:transformed}
    \end{subfigure}
   
    \caption[Short caption]{Long caption}
    \label{fig:subs}
\end{figure}

%表格
\begin{center}
 \begin{tabular}{c |c| c| c} 
 \hline
 Col1 & Col2 & Col2 & Col3 \\ [0.5ex] 
 \hline\hline
 1 & 6 & 87 & 787 \\ 
 \hline
 2 & 7 & 78 & 5415 \\
 \hline
 3 & 545 & 778 & 7507 \\
 \hline
\end{tabular}
\table{tab:table}
\end{center}
  1. 引用和跳转

注意到上面的例子里都有\label{},这就是用来引用的,比如\ref{fig:image},会得到 图像2.2 这样的引用,这个编号会自动变化,不需要手动修改。

  1. 目录

会根据标题自动生成目录。

\tableofcontents
  1. 图片列表
    如果想要生成全文中所出现的图片或者表格的列表
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures

\addcontentsline{toc}{chapter}{\listtablename}
\listoftables
  1. 参考文献
    参考文献的格式一般在谷歌学术上就有,引用的时候使用\cite{}。
% 引用格式
@inproceedings{Bamford98:ITR,
   author    = {Bamford, P.  and Lovell, B.},
   title     = {Improving the robustness of cell nucleus segmentation},
   booktitle = {Proceedings of the Ninth British Machine Vision Conference},
   address   = {Southampton, UK.},
   year      = {1998},
   note      = {http://citeseer.nj.nec.com/bamford98improving.html}
}

% 引用
\cite{Bamford98:ITR}

% 生成引用列表
\addcontentsline{toc}{chapter}{\bibname}
\bibliography{mt}
  1. 遇到的问题

生成目录的时候如果出现了重复的目录,可能是因为重复调用了库,去掉重复的库就好了。

相关文章

  • Latex笔记-写论文常用语法

    写论文要用的语法。 标题,姓名 为文档指定了标题、作者和日期之后,可以使用\maketitle命令在文档上打印这些...

  • latex

    简介:这里写几个latex常用的语法示例以供参考。 ###1. latex代码 ``` \documentclas...

  • latex语法

    1. latex 语法 latex笔记:基本语法[https://zhuanlan.zhihu.com/p/243...

  • Latex基本语法(入门)

    最近开始用尝试用latex写论文,着实喜欢上里面的排版了,这里记录下使用latex的最基本语法以免日后忘了。个人感...

  • 用LaTeX和PPT写学术论文

    用LaTeX写PPT写学术论文 [TOC] 配置LaTeX LaTeX使用技巧 PPT绘图技巧 配置LaTeX 系...

  • Grammarly for Microsoft Word and

    写英文论文除了需要Latex+texMaker之类的工具进行排版以外,还有一个很重要的工具就是在论文收尾阶段对语法...

  • Latex数学公式转Word公式

    最近在写毕业论文的时候,刚开始的草稿是用MarkDown写的,输入公式什么的都很方便,用的Latex语法。 但是学...

  • LaTeX 快速指南

    LaTeX 快速指南 文章中描述了常用的LaTex语法,内容会持续更新。。。 公式规范 公式分为两种形式,行内公式...

  • Latex常用编辑语法

    数学字符 Note: \qquad 为tab空格,在$ $之间敲入数学字符,若在数学公式编辑环境下可以省略$符。 ...

  • Latex 常用公式语法

    id: support_tabletitle: Support Tablesource: https://raw....

网友评论

      本文标题:Latex笔记-写论文常用语法

      本文链接:https://www.haomeiwen.com/subject/tvaoxltx.html