当前位置: 首页 > news >正文

百度有没有做游戏下载网站个人博客登录首页

百度有没有做游戏下载网站,个人博客登录首页,网站素材类型,公司做网站 微信平台Latex on overleaf入门语法 前言基本结构序言 简单的格式化命令添加注释:%加粗、斜体、下划线有序列表、无序列表 添加图片图片的标题、标签和引用 添加表格一个简单的表格为表格添加边框标题、标签、引用 数学表达式基本的数学命令 基本格式摘要段落、新行章节、分…

Latex on overleaf入门语法

  • 前言
  • 基本结构
    • 序言
  • 简单的格式化命令
      • 添加注释:%
      • 加粗、斜体、下划线
      • 有序列表、无序列表
  • 添加图片
    • 图片的标题、标签和引用
  • 添加表格
    • 一个简单的表格
    • 为表格添加边框
    • 标题、标签、引用
  • 数学表达式
      • 基本的数学命令
  • 基本格式
    • 摘要
    • 段落、新行
    • 章节、分段
  • 引用参考文献

前言

感谢参考文献:
Overleaf 指南:30 分钟 LaTeX 入门

基本结构

\documentclass{article} % 声明文档的类型为article\begin{document}
First document. This is a simple example, with no
extra parameters or packages included.
\end{document}
  1. \documentclass{article}:声明文档的类型为article。
  2. begin前面:文档的序言。
  3. begin和end之间是文档的主体body。

序言

定义文档的字体大小,纸张大小,文档编码为utf-8。

\documentclass[12pt, letterpaper]{article}
\usepackage[utf8]{inputenc}

序言中还可以添加标题、作者和日期。在主体body中可以打印这些信息,使用\maketitle

\title{First document}
\author{Hubert Farnsworth \thanks{funded by the Overleaf team}}
\date{February 2017}

简单的格式化命令

添加注释:%

加粗、斜体、下划线

强调文本命令:展现的效果取决于上下文,斜体or普通文本。

加粗:\textbf{}
下划线:\underline{}
斜体:\textit{}强调文本:\emph{}

有序列表、无序列表

使用不同的环境 environment来创建不同形式的列表,环境以\begin{}开始,以\end{}结束。

无序列表使用itemize环境,每个条目之前要加\item,各个条目默认用黑点表示。

\begin{itemize}\item The individual entries are indicated with a black dot, a so-called bullet.\item The text in the entries may be of any length.
\end{itemize}

有序列表使用enumerate环境。

\begin{enumerate}\item This is the first entry in our list\item The list numbers increase with each entry we add
\end{enumerate}

添加图片

\documentclass{article}
\usepackage{graphicx}
\graphicspath{{images/} }\begin{document}
The universe is immense and it seems to be homogeneous,
in a large scale, everywhere we look at.\includegraphics{universe}There's a picture of a galaxy above
\end{document}
  1. 添加图片需要使用包 package,在序言中添加\usepackage{graphicx}表示导入包,\graphicspath{{images/} }表示图像所在的根目录为:当前目录下名为 images 的文件夹中。
  2. \includegraphics {universe}:在文档中引入图像。图像文件名不带扩展名,文件名不应该包括空格和多个点。

图片的标题、标签和引用

\begin{figure}[h]\centering\includegraphics[width=0.25\textwidth]{mesh}\caption{a nice plot}\label{fig:mesh1}
\end{figure}As you can see in the figure \ref{fig:mesh1}, the
function grows near 0. Also, in the page \pageref{fig:mesh1}
is the same example.
  1. 将图片放在 figure 环境中,才可以添加标题、标签和引用。具体命令为:\begin{figure}[h]\end{figure}
  2. \caption{}:为图片设置标题。此命令可以放在图片的上方或下方。
  3. \label{fig:mesh1}:为图片设置标签,标签可以为图片编号,方便后续在文章中引用该图片。
  4. \ref{fig:mesh1}:编译后显示被引用图片的编号。

添加表格

一个简单的表格

创建表格的默认环境是tabular,必须给该环境传递一个参数{c c c}。该参数表示表格有 3列,每列文本均居中。除了c,还有r表示右对齐,l表示左对齐。
&表示分隔符,\\表示转到表格的下一行。

\begin{center}
\begin{tabular}{ c c c }cell1 & cell2 & cell3 \\cell4 & cell5 & cell6 \\cell7 & cell8 & cell9
\end{tabular}
\end{center}

为表格添加边框

\begin{center}
\begin{tabular}{ |c|c|c| }\hlinecell1 & cell2 & cell3 \\cell4 & cell5 & cell6 \\cell7 & cell8 & cell9 \\\hline
\end{tabular}
\end{center}
  1. \hline:水平线命令,插入一条水平线。
  2. { |c|c|c| }|表示垂直线分隔。

标题、标签、引用

Table \ref{table:data} is an example of referenced \LaTeX{} elements.\begin{table}[h!]
\centering
\begin{tabular}{||c c c c||}\hlineCol1 & Col2 & Col2 & Col3 \\ [0.5ex]\hline\hline1 & 6 & 87837 & 787 \\2 & 7 & 78 & 5415 \\3 & 545 & 778 & 7507 \\4 & 545 & 18744 & 7560 \\5 & 88 & 788 & 6344 \\ [1ex]\hline
\end{tabular}
\caption{Table to test captions and labels}
\label{table:data}
\end{table}
  1. \caption{}:标题。
  2. \label{table:data}:标签。
  3. \ref{table:data} :引用。

数学表达式

数学表达式有两种模式:内联模式 inline,显示模式 display。

内联模式:公式是文本的一部分。以下3种定界符作用相同。

$...$
\(...\)
\begin{math}...\end{math}

显示模式:编号和非编号。

# 编号
\[... \]# 非编号
\begin{equation} ... \end{equation}

equation环境由外部包 amsmath提供。许多数学表达式都使用了这个包。

基本的数学命令

上标:$a^2$
下标:$H_2O$
积分:$\int$ 
分数:$\frac{a}{b}$
小写希腊字母:$\omega$ $\delta$
大写希腊字母:$\Omega$ $\Delta$
数学运算符的前缀为反斜杠:$\sin(x)$, $\cos(x)$, $\log(x)$

基本格式

摘要

摘要内容要在abstract环境中写。

\begin{document}\begin{abstract}
This is a simple paragraph at the beginning of the
document. A brief introduction about the main subject.
\end{abstract}\end{document}

段落、新行

开启新段落,需要输入两次 Enter键,以插入双空行。此时,Latex会为新段落自动缩进。

章节、分段

基本的标题级别如下所示,从上到下为从大到小的标题。在{}内设置标题,标题的编号是自动的。也可以在命令中加*来禁止编号。

\section{section}
\subsection{subsection}
\subsubsection{subsubsection}
\paragraph{paragraph}
\subparagraph{subparagraph}\section*{Unnumbered Section}

引用参考文献

参考博客:
overleaf Latex bibtex单篇及多篇参考文献引用设置
overleaf使用bib tex引用参考文献教程

祖传用法:

\usepackage{cite}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08emT\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\bibliographystyle{IEEEtran}
\bibliography{ref}引用命令: \cite{ref1}
http://www.qdjiajiao.com/news/12105.html

相关文章:

  • 长春 万网 网站建设重庆seo教程
  • 怎么用代码创建网站教程巨量数据官网
  • 做牛仔的时尚网站如何推广网店
  • 建设自己的网站怎么做创网站永久免费建站
  • 哪个网站可以找人做清洁自动发外链工具
  • 只有一个域名怎么建设网站东莞网络推广优化排名
  • 做网站运营的女生多吗平台引流推广怎么做
  • 如何设计优秀的公司网站有域名有服务器怎么做网站
  • 网站策划模板seo综合查询
  • 公司网站开发费算什么费用百度推广登陆平台
  • 网站开发项目流程书seo顾问服务
  • 自助建站工具软件品牌营销策划与管理
  • 音乐网站开发文档撰写模板成人短期技能培训学校
  • 加工平台网站自助搭建平台
  • 如何用java做网站界面关键词优化seo优化排名
  • 企业网站2000元页面优化的方法
  • 国内互联网前十名的公司seo网站优化教程
  • 乐清网站制作公司电话竞价推广哪家公司好
  • ps怎么做网站百度云网盘网页版
  • discuz 做企业网站网页制作公司
  • 宁波网站建设找哪家好网络营销推广的概念
  • 网站建设官方网站网络营销的企业有哪些
  • 网站建设目录结构设计外贸网站制作公司哪家好
  • 迁安做网站哪家好网站模板购买
  • 门户网站 商城系统谷歌浏览器中文手机版
  • 阿里云虚拟主机搭建wordpress索引擎优化 seo
  • 在美国克罗格做网站怎样seort什么意思
  • 长沙网站制作工作室省委副书记
  • 编写网站策划方案今天最近的新闻
  • 亚马逊做code的网站最新足球赛事