overleaf

  1. latex/overleaf插入%号: % \% %; 直接输入%,使用空格隔开。
  2. 首行缩进:导言区加入宏包首行 \usepackage{indentfirst} ,在缩进那行插入:\indent\setlength{\parindent}{1em},若是在某段首行不想缩进,则在该行插入:\noindent
  3. 把标题(Introduction)居中:\caption{\centering \section{Introduction}}
  4. 出现使用 item不能正确换行显示:原因:可能使用了转义字符等。解决方法:在文本前后加上$
    在这里插入图片描述
  5. 上下标: ^{} _{} 来设置上标和下标。注意:如果上下标只对其后面的一个字符起作用,如果上下标的内容超过一个字符,则需要用花括号 {} 包裹,否则上下标只对后面的一个符号起作用
  6. 下标也可以:_
  7. 波浪号:1. 数学模式下 ∼ \sim
  8. 在/author里面插入/newline不换行:试试 \
  9. 公式产生编号(编号在最右侧):
  10. 调整文章标题与上下文之间的距离,注意,要在\begin{}的下一节目录
\setlength{\abovecaptionskip}{-0.2cm}   %调整图片(表格)标题与图(表格)距离

\setlength{\belowcaptionskip}{-1cm}   %调整图片(表格)标题与下文距离```

 ```c
\begin{equation}
\mathrm{V}_{\pi}(\mathrm{s})=\sum_{\mathrm{a} \in \mathrm{A}} \pi(\mathrm{a} \mid \mathrm{s})\left(\mathrm{R}_{\mathrm{s}}^{\mathrm{a}}+\gamma \sum_{\mathrm{s}^{\prime} \in \mathrm{S}} \mathrm{P}_{\mathrm{ss}^{\prime}}^{\mathrm{a}} \mathrm{V}_{\pi}\left(\mathrm{s}^{\prime}\right)\right)}
\end{equation}
  1. 在\end{}之前插入:\vspace{-0.6cm}
  2. 在表格内进行换行
\newcommand{\tabincell}[2]{
\begin{tabular}{@{}#1@{}}#2\end{tabular}
}%放在导言区%* 

\tabincell{c}{Number of 
\\ obstacles} %%Number of obstacles因为句子太长需要换行,所以要在换行的单词前面插入双斜杠
  1. 导入图片:

方法1

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\title{A project with images}
\author{Overleaf}
\date{}

\graphicspath{{Images/}} %Images是文件夹,需要先将图片上传

\begin{document}

\maketitle

\section{Introduction}
\begin{figure}[htp]
    \centering
    \includegraphics[width=4cm]{InsertingImagesEx5} %InsertingImagesEx5是文件名,不过最好加上后缀
    \caption{An image of a galaxy}
    \label{fig:galaxy}
\end{figure}

\end{document}

方法2:在文本框插入图片

\usepackage{graphicx}
%注意需要导包
\usepackage{caption}
\usepackage{graphicx, subfig}
   \begin{figure}[thpb]
   \graphicspath{{Images/}}
      \centering
      \framebox{\parbox{3in}
    \centering
    \includegraphics[width=8cm \textwidth]{mission.png}
      }
      %\includegraphics[scale=1.0]{figurefile}
      \caption{Inductance of oscillation winding on amorphous
       magnetic core versus DC bias magnetic field}
      \label{figurelabel}
   \end{figure}
  • 1
    点赞
  • 25
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值