Skip to content

Instantly share code, notes, and snippets.

@YimianDai
Created July 30, 2019 23:32
Show Gist options
  • Save YimianDai/9f3f560e9178fcfa6a6867a8009ec9c1 to your computer and use it in GitHub Desktop.
Save YimianDai/9f3f560e9178fcfa6a6867a8009ec9c1 to your computer and use it in GitHub Desktop.
Notes on LaTeX

3. Figures

3.1 置底的 subcaption

最好的方法是按照

http://tex.stackexchange.com/questions/169978/subfigure-removing-and-controlling-label-numbering

里给出的 \addtocounter{subfigure}{-1} 可以把这个 1 换成你要的

3.2 拼接起来的图

http://www.latexstudio.net/archives/9128

4. Tips for Tables

5. Tips for Algorithms

6. Tips for Tikz

6.1 Font larger than \Huge?

正文一般不会超过 \Huge,只有 在 Tikz 作图的时候才会

Font Larger than \Huge

http://texblog.org/2012/08/29/changing-the-font-size-in-latex/

我目前用得是 \usepackage{moresize} 然后用 \HUGE 命令

Check List Before Submission

Caption title Eq. number in the flowchart

在单行公式里,想把 min 后面的范围 放到 min 下面去,而不是在右下方,可以用下面两行命令中的一个

$\min\limits_{i = 1, 2, 3, 4}$
$\displaystyle \min_{i=1,2,3,4}$ 

$\min\limits_{i = 1, 2, 3, 4}$ $\displaystyle \min_{i=1,2,3,4}$

参考文献:

https://www.tutorialspoint.com/tex_commands/nolimits.htm

http://tex.stackexchange.com/questions/49741/getting-arguments-underneath-min-in-an-align-environment

Citation and Reference

Cleveref

\usepackage{cleveref}  % for \cref
\crefformat{table}{Tab.~#2#1#3}
\crefformat{section}{Section~#2#1#3}
\crefformat{figure}{Fig.~#2#1#3}
\crefformat{equation}{Eq.~(#2#1#3)}
\crefformat{algorithm}{Algorithm~#2#1#3}

How to cite webpage?

可以参看 Wikipedia 的示范 Cite This Page

举例如下

@misc{ wiki:xxx,
    author = "{Wikipedia contributors}",
    title = "LaTeX --- {Wikipedia}{,} The Free Encyclopedia",
    year = "2011",
    howpublished = "\url{https://en.wikipedia.org/w/index.php?title=LaTeX&oldid=413720397}",
    note = "[Online; accessed 11-February-2019]"
  }

Warnings

LaTeX Warning: Citation undefined

具体表现就是没有 Citation,明明我 bib 的路径没问题啊,我遇到过这个问题两次,原因都是忘记加 \bibliographystyle{IEEEtran} 了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment