m (Lists)
m (Lists)
Line 15: Line 15:
 
* To change spacing between items, put after \begin{itemize}:
 
* To change spacing between items, put after \begin{itemize}:
  
<code lang="latex">
+
<code lang="latex">\addtolength{\itemsep}{-0.5\baselineskip}</code>
\addtolength{\itemsep}{-0.5\baselineskip}
+
</code>
+
  
 
* To change the starting value of an enumerate list:
 
* To change the starting value of an enumerate list:
  
<code lang="latex">
+
<code lang="latex">\begin{enumerate}
\begin{enumerate}
+
 
   \setcounter{enumi}{4}
 
   \setcounter{enumi}{4}
 
   \item fifth element
 
   \item fifth element
\end{enumerate}
+
\end{enumerate}</code>
</code>
+
  
 
* To change enumeration (with square brackets, parentheses, etc.): (see [http://goo.gl/0ZzbB])
 
* To change enumeration (with square brackets, parentheses, etc.): (see [http://goo.gl/0ZzbB])
  
<code lang="latex">
+
<code lang="latex">\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
+
 
\begin{document}
 
\begin{document}
 
\begin{enumerate}[label={[\arabic*]}]
 
\begin{enumerate}[label={[\arabic*]}]
Line 39: Line 34:
 
   \item Last item
 
   \item Last item
 
\end{enumerate}
 
\end{enumerate}
\end{document}
+
\end{document}</code>
</code>
+
  
 
== Footnotes ==
 
== Footnotes ==

Revision as of 23:56, 18 September 2012

{{{1}}}

Contents

$\mathrm{\TeX}$ and $\mathrm{\LaTeX}$

$\mathrm{\TeX}$ is one of the masterpieces of Don Knuth.

At some point in the early 2000, I switched to $\mathrm{\LaTeX}$ for convenience, and almost exclusively use the latter now.

Formatting

  • Wrapping figures in text: [1]

Lists

  • To change spacing between items, put after \begin{itemize}:

\addtolength{\itemsep}{-0.5\baselineskip}

  • To change the starting value of an enumerate list:

\begin{enumerate} \setcounter{enumi}{4} \item fifth element \end{enumerate}

  • To change enumeration (with square brackets, parentheses, etc.): (see [2])

\usepackage{enumitem}% http://ctan.org/pkg/enumitem \begin{document} \begin{enumerate}[label={[\arabic*]}] \item First item \item Second item \item \ldots \item Last item \end{enumerate} \end{document}

Footnotes

There is a $\mathrm{\LaTeX}$ package, footmisc, that is useful for manipulating footnote formatting.

  • Spacing between footnotes:

%\footnotesep is the space between footnotes: \setlength{\footnotesep}{-0.5\baselineskip}

%\footins is the space between the text body and the footnotes: \setlength{\skip\footins}{1cm}

  • To use footnotes to feature reference-style annotations, that is, with no subscripts and with enclosing brackets [1], add in the preamble:

\makeatletter \renewcommand{\@makefnmark} %{\@textsuperscript{\textit{\tiny{\@thefnmark}}}} {[\@thefnmark]} \renewcommand\@makefntext[1]{%

   \parindent 1em
   \noindent
   [\@thefnmark]\enspace #1}

\makeatother

(I left, commented, the original definition of the footnote).