When writing a new document, I begin from one of these templates. Ihave found these fundamental to my workflow.
Your preferences may vary.
Use latexmk
. It'spowerful. My day-to-day use is: 1. write text in Vim; 2. run latexmk -C
and latexmk -pdf main
in the terminal; 3. ??? profit.
In terms of packages:
I use the minted
package for code snippets.
I'm a big fan of a custom \draftdisclaimer
command when distributingpaper drafts to colleagues. See papers/preamble/preamble.tex
for itscode.
Style nits:
Don't write the extension to filenames. It's unnecessarily explicitand less readable: use\input{preamble}
instead of\input{preamble.tex}
, and\includegraphics{figures/edward_calibration}
instead of\includegraphics{figures/edward_calibration.pdf}
.
Use PDF-rendered figures, not PNG, so that the text scales with thepaper format. You can even go a step further with TiKZ to make plotsin LaTeX.
Use author names in your citation style, not numbers: (MacKay, 1992)
instead of [12]
. Numbers save space but make it impossibleto know what the citation is without tediously crawlingback-and-forth. With author names, the citation is part of thesentence, helping substantiate its statement:
Weakly informative priors such as the Cauchy are often preferredfor robustness as they concentrate less probability at the meanthanks to heavier tails (Gelman et al., 2006).
For notation, take advantage ofemphasis,not just Greek alphabet for extra symbols. For example, plain canrepresent a scalar and boldface (\mathbf
) can represent a matrixor vector. I often leave capital letters to represent the eventspace such as a\in A
or constants: number of datapoints N
.
I made arant on Twitter in May 2021.Other nits and style tips are noted there.
Article 类 NotesTeX: 可用作笔记,具有边注、part、定义、remark、证明等着色。
1.将 .cls 文件拷贝到 texlive\2015\texmf-dist\tex\latex 目录下 2.windows运行 texhash 刷新文件名数据库 3.将其他 .tex 文件放在主文件同目录下
原文链接:http://kingoftime3.blog.163.com/blog/static/3682177720098603931632/ % 《LATEX入门与提高》上的一个beamer模板,linux下GBK改为UTF8。 % 20分钟大会报告.tex % 根据 conference-ornate-20min.en.tex,v 1.6 2004/10/07 20:53:08 tantau
\documentclass[hyperref,UTF8]{article} \usepackage[colorlinks,linkcolor=blue,anchorcolor=yellow,citecolor=blue,urlcolor=blue]{hyperref}% set hyber link color as 'blue' \usepackage{geometry}% adjust pd
小白刚刚开始使用Latex,在此保存一个简单的Latex模板以供自己查找使用。 \documentclass[a4paper]{article} \usepackage{xeCJK} \setCJKmainfont[BoldFont=SimHei]{KaiTi} \setCJKfamilyfont{hei}{SimHei} \setCJKfamilyfont{kai}{KaiTi} \setCJ
看见了,先记录下来,方便自己用 网址:https://www.sharelatex.com/templates/
\documentclass{article} \setcounter{tocdepth}{4} \setcounter{secnumdepth}{4} \usepackage[hidelinks]{hyperref} \usepackage{pgfplots} \usepackage{pdfpages} \usepackage{verbatim,lmodern,amsmath,Asympto
部署 LaTeX 安装 texlive-core 新建 a.tex 文件,内容如下: \documentclass[11pt,a4paper]{article} %加入了一些针对XeTeX的改进并且加入了 \XeTeX 命令来输入漂亮的XeTeX logo \usepackage{xltxtra} %启用一些LaTeX中的功能 \usepackage{xunicode} %%%% fontspe
LaTeX(LATEX,音译“拉泰赫”)是一种基于TeX的排版系统。 LaTeX通过CTAN服务器发布,或作为TeX用户组(TUG)或第三方提供的许多易于安装和可用的TeX发布版本的一部分。如果您遇到问题,请访问帮助部分。 LaTeX本身并不是一个独立的排版程序,而是运行在Donald E. Knuth的TeX排版系统之上的文档准备软件。TeX发行版通常会将工作中的TeX系统所需的所有部件捆绑在一
Vim + LaTeX snippets setup How I'm able to take notes in mathematics lectures using LaTeX and Vim Vim configuration Copy tex.snippets to ~/.vim/UltiSnips/ and assuming you're using Vim Plug, add the f
latex-action GitHub Action to compile LaTeX documents. This actions runs on docker using a maximal TeXLive environment installed. Inputs root_file The root LaTeX file to be compiled. This input is req
PDF 下载: 放映版 阅读版 Copyright (C) 2018–2021 by Xiangdong Zeng.
Warning — looking for a maintainer This extension is no longer maintained. I'm sorry, it's not you, it's me. I still love this functionality, I've just moved to a different editor to get it.I don't wa