惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
博客园 - 司徒正美
罗磊的独立博客
D
Docker
Last Week in AI
Last Week in AI
爱范儿
爱范儿
M
MIT News - Artificial intelligence
V
V2EX
Google DeepMind News
Google DeepMind News
小众软件
小众软件
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
MyScale Blog
MyScale Blog
V
Visual Studio Blog
博客园 - 叶小钗
B
Blog RSS Feed
A
About on SuperTechFans
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
P
Proofpoint News Feed

jdhao's digital space

Conversion between base64 and OpenCV or PIL Image 腾讯云对象存储博客图床开启 CDN 加速(不需要购买额外域名) Search and Replace in Multiple Files in Vim/Neovim Change Table Column Width in LaTeX Image or Table Side by Side in LaTeX LaTeX 并排显示图像或表格 Firenvim: Neovim inside Your Browser Content inside HTML tags missing in Latest Hugo? Creating Markdown Front Matter with Ultisnips Labelme JSON 标注格式转 voc XML 格式 Nifty Nvim Techniques That Make My Life Easier -- Series 6 macOS 下如何为视频制作字幕 Running Command Asynchronously inside Neovim Resolving Merge Conflict after Git Stash Pop Pylint: command not found? A Hands-on Experience with Neovim's Built-in LSP Support How to Convert PDF to Images with Imagemagick 互联网上常用缩略语集锦 File Backup in Neovim Converting PDF Pages to Images with Poppler Nifty Nvim Techniques That Make My Life Easier -- Series 5 Neovim Configuration for System-wide Use How to sort a list of tuple or list in Python -- lambda or itemgetter? Building A Vim Statusline from Scratch 人类第一颗原子弹爆炸始末 Distributed Training in PyTorch with Horovod Learning Expect Programming Essential Knowledge about SSH Nifty LaTeX Techniques -- Series 1 更改 Adsense 邮寄地址,重新寄送 PIN
Tips on Writing Papers in LaTeX
2020-03-06 · via jdhao's digital space

Some useful tips on writing papers in LaTeX.

Use package cleveref for easier reference.#

If you use the LaTeX built-in command \ref{} to refer to a table or image, it will only give you the index of referred object. You have to manually type ref type, i.e., Fig. or Table. The package cleveref will help you to insert the reference type automatically. It provides the \cref (used inside a sentence) and \Cref (used at the beginning of sentence) command to refer to an object easily. \cref can also be used to refer to multiple labels like this:

% no space allowed between different labels
\cref{label1,label2,label3}

Add the following setting to your header in order to use cleveref:

\usepackage[capitalise]{cleveref}
% for cleveref
\newcommand{\crefrangeconjunction}{--}

In the above command, we modify the \crefrangeconjunction to --, since the default is to use to between a range of references.

Use punctuations after equations.#

Usually we will show some equations in the paper to show the formal formulation. Equations are like text and should be given proper punctuation. If it is in the middle of an sentence, use a comma. If it is in the end of a sentence, use a period. For example,

Einstein propose the famous matter-energy equation:
\begin{equation}
E = mc^{2}.
\end{equation}

How to reduce lines#

  • You should use the microtype package. It can help to adjust the word spacing to reduce the lines taken. You will often see less underfull or overfull hbox warning after using this package.

  • You shouldn’t add blank lines before and after the display style equations if the text before and after the equation belong to the same paragraph. This will also help to reduce space.

References#