overleaf、latex快速了解

Overleaf

Overleaf是一款在线latex编辑器,不用配置本地环境。
两个地址 :

一般不会创建空项目来写论文,更多的是上传一个给定的Latex模板。

编辑公式的工具,LaTeX在线:吴文中数学公式编辑器

在线生成latext表格的工具,Create LaTeX tables online

latex

latex基础知识 Learn LaTeX in 30 minutes

  • latex的一个重要优点是将文档内容与文档样式分开,编写文档内容后可以轻松更改其外观
  • 还有一个优点就是可以轻松编写数学表达式
  • latex这自动缩进段落的第一行
  • .tex包含latex代码文件,出现在.tex之前的内容都称为序言,充当文档的设置部分,在序言中定义文档类型以及使用的语言等具体信息。
  • %latex添加注释
  • \textbf{}粗体
  • \textit{}斜体
  • \underline{}下划线
  • 无序列表和有序列表,

\begin{enumerate}
    \item this is a test
    \item this is an another test
\end{enumerate}
  • 行内数学公式 $ $
  • 行间数学公式,不再推荐使用$ $ $$,而是使用:
\begin{equation}
    e = mc^2
\end{equation}

也可用\usepackage { amsmath } % 对于方程*环境

  • abstract的使用,
\begin{abstract}
    this is a simple paragraph at the beginning of the document. A brief introduction about the main subject.
\end{abstract}
  • 回车一行,开始新的段落,自动缩进
  • \ 开始新的一行,不缩进
  • 分段命令
\part{part}
\chapter{chapter}
\section{section}
\subsection{subsection}
\subsubsection{subsubsection}
\paragraph{paragraph}
\subparagraph{subparagraph}

  • 表格示例
\begin{center}
\begin{tabular}{c|c}
     1& 2 \\ \hline
     1& 2 \\ \hline
     3 & 4 \\ \hline
\end{tabular}
\end{center}

overleaf插入图像

overleaf支持三种插入图像的方式,

  • 使用插入图像按钮
  • 直接粘贴图像到编辑器中
  • 使用代码编辑器编写插入图像的latex代码
    示例:graph
\documentclass[12pt, letterpaper]{article}
% 导入图形latex包
\usepackage{graphicx}
% 配置graphicx包
\graphicspath{{images/}}
\includegraphics{images/v1.png}
\begin{document}
hello
\end{document}
  • graphicx提供包含外部图文件所需的命令和功能。
  • \includegraphics{}导入图形
  • \graphicspath{}告知latex图所在的位置
  • \begin{figure}添加标题,标签,和引用
  • 行间公式使用$ $ $$表示。

解释:

  • \documentclass{}声明文档类型
  • 内容写在\begin{document}和\end{document}之间

overleaf、latex快速了解

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值