LaTeX Tips

You can also find some useful LaTex tips here.

  1. input{} in the preamble area.

Write a “macros.tex” file storing the macros(\usepackage{xx}) and self-defined commands that you will use in your main tex, then put the command line \input{macros.tex} below the \documentclass{} command.
2. space between enumerated items

1
2
3
4
5
6
\begin{enumerate} 
\itemsep1em
\item one
\item two
\item three
\end{enumerate}
  1. \substack in math formulas, for example, the latex code
1
\prod\limits_{\substack{i_1+\cdots+i_k=n\\i_1<\cdots<i_k}} x_{i_1}+\cdots +x_{i_k}

produces the formula
$$\prod\limits_{\substack{i_1+\cdots+i_k=n\i_1<\cdots<i_k}} x_{i_1}+\cdots +x_{i_k}$$

4.The package “amsmath” provides the command \boxed{} to add a rectangular box outside the equation or something, eg:

The not so short introduction to Latex 2e

Draw Commutative Diagrams

Downloads-Right click on the PDF and then choose “print”.

0%