m
Line 3: Line 3:
 
$\TeX$ is one of the masterpieces of [[Don Knuth]].
 
$\TeX$ is one of the masterpieces of [[Don Knuth]].
  
At some point in the early 2000, I switched to $\LaTeX$ for convenience, and almost exclusively use the latter now. Most of this page
+
At some point in the early 2000, I switched to $\LaTeX$ for convenience, and almost exclusively use the latter now.
  
 
== Formatting ==
 
== Formatting ==
Line 9: Line 9:
 
* Wrapping figures in text: [http://www.grappa.univ-lille3.fr/FAQ-LaTeX/8.17.html]
 
* Wrapping figures in text: [http://www.grappa.univ-lille3.fr/FAQ-LaTeX/8.17.html]
  
== Tricks ==
+
== Footnotes ==
  
To use footnotes to feature reference-style annotations, that is, with no subscripts and with enclosing brackets&nbsp;<wz tip="Like this.">[1]</wz>, add in the preamble:
+
There is a $\LaTeX$ package, [http://ctan.larsko.net/help/Catalogue/entries/footmisc.html footmisc], that is useful for manipulating footnote formatting.
  
<pre>
+
* Spacing between footnotes:
\makeatletter
+
 
 +
<code lang="latex">%\footnotesep is the space between footnotes:
 +
\setlength{\footnotesep}{-0.5\baselineskip}</code>
 +
 
 +
<code lang="latex">%\footins is the space between the text body and the footnotes:
 +
\setlength{\skip\footins}{1cm}</code>
 +
 
 +
* To use footnotes to feature reference-style annotations, that is, with no subscripts and with enclosing brackets&nbsp;<wz tip="Like this.">[1]</wz>, add in the preamble:
 +
 
 +
<code lang='latex'>\makeatletter
 
\renewcommand{\@makefnmark}
 
\renewcommand{\@makefnmark}
 
%{\@textsuperscript{\textit{\tiny{\@thefnmark}}}}
 
%{\@textsuperscript{\textit{\tiny{\@thefnmark}}}}
Line 22: Line 31:
 
     \noindent
 
     \noindent
 
     [\@thefnmark]\enspace #1}
 
     [\@thefnmark]\enspace #1}
\makeatother
+
\makeatother</latex>
</pre>
+
  
 
(I left, commented, the original definition of the footnote).
 
(I left, commented, the original definition of the footnote).

Revision as of 09:40, 8 November 2011

$\TeX$ and $\LaTeX$

$\TeX$ is one of the masterpieces of Don Knuth.

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

Formatting

  • Wrapping figures in text: [1]

Footnotes

There is a $\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</latex>

(I left, commented, the original definition of the footnote).</span>