- Use ~ to get a space without line-breaking.
- Manually set the number of a figure: Add "\setcounter{figure}{NUMBER}" right before the figure is inserted. This is useful for responses in journal revisions.
- Manually set the number of a subfigure: Add "\setcounter{subfigure}{NUMBER}" right before the figure is inserted. This is useful for responses in journal revisions.
- Place a figure without numbering: Include the caption package and use its \caption*{TITLE} command to replace \caption{TITLE} to get caption without numbering.
- Customize the page margins:
- Set all margins to the same value: \usepackage[margin=1.5cm]{geometry}
- Set each margin independently: \usepackage[left=1cm, right=2cm, top=1.5cm, bottom=1.2cm]{geometry}
- Intelligent references:
- Original syntax: "Figure~\ref{SOME_FIG} shows the result of Table~\ref{SOME_TABLE} in Section~\ref{SOME_SECTION}"; new syntax: "\Cref{SOME_FIG} shows the result of \Cref{SOME_TABLE} in \Cref{SOME_SECTION}"
- Preemble command: \usepackage{cleveref}.
- Use \Cref for capital reference names (e.g., Figure, Table, Section) and \cref for lower-case ones (e.g., figure, table, section).
- Change the document construct name, from such as "Algorithm" in the caption "Algorithm 3. Some Algorithm" to "Algo": \floatname{algorithm}{Algo}
- Use inline LaTeX equations in PowerPoint 2010 with real-time preview:
- Install MiKTeX: http://miktex.org
- Install powerpointtools: https://code.google.com/p/powerpointtools/
- If MiKTeX is 64-bit version, copy everything in installdir/bin/x64/ to installdir/bin/
- Launch PowerPoint 2010, and initialize the settings of powerpointtools:
- LaTeX tab -> Preferences -> General -> Use LaTeX service: MiKTeX Service
- LaTeX tab -> Preferences -> MiKTeX Service tab -> fill in installation directory of MiKTeX "C:\Program Files\MiKTeX 2.9"
- Done!
- Remove the copyright block is the left bottom corner of the first page of ACM proceedings: Add the following code before \begin{document}:
- \makeatletter
\let\@copyrightspace\relax
\makeatother - Add color to LaTeX documents: \usepackage{color} {\color{red}要改的文字}
- Redefine color command for simpler usage (so that outer parenthesis is no longer needed): add \newcommand\blue[1]{{\color{blue}#1}} before ]begin{document}
- Adjust line spread and paragraph separation: Add
\setlength{\parindent}{4em} \setlength{\parskip}{1em} \renewcommand{\baselinestretch}{2.0} before \begin{document}
2014年7月23日 星期三
Small LaTeX Tricks
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言