TeXnik - Tips TeX and LaTeX

Welcome to the TeXnik website (under construction)

Footnotes/Endnotes
 Main page Index UK FAQ Documentation Software CTAN Search CTAN: Statistics Google c.t.t. Google d.c.t.t.
Bibliography as Footnotes |  Crossref for Footnotes |  Endnotes |  Footnotes and floats |  Footnotes at the bottom of the page |  Footnote not on two pages |  Footnotes with fancyhdr |  Footnote in tables |  Footnote behind tables |  Footnotemark |  Indentation of Footnotetext |  References for Footnotes |  Space between Text and Footnote |

 Available Packages on CTAN authblk endnotes fixfoot fnpara footbib footmisc footnpage ftnright manyfoot nccfoot savefnmark stfloats yafoot titlefoot

#### Footnotemark

The following always in latex preamble:
1. Get rid off
\makeatletter
\renewcommand\@makefnmark{\relax}
\makeatother
2. Change style
\makeatletter
\renewcommand\@makefnmark{\@textsuperscript{\normalfont(\@thefnmark)}}
\makeatother
to get a footnote like this(1)

#### Crossreferences of Footnotes

in latex preamble:
\newcommand\sups[1]{\hbox{\textsuperscript{\normalfont #1}}}
in text in tex (red):

\sups{<insert the crossref>}

#### Footnote not on two pages

To prevent footnotes to be placed on two pages, you can use \interfootnotelinepenalty=10000 in latex preamble.

#### Footnotes in floats

Latex only supports floating figures/tables/algorithms, but no floating footnotes. You can insert the footnote anyway, but it's often not on the same page!!!
• in the caption write \protect\footnotemark
• outside of the float
\addtocounter{footnote}{-n}
\stepcounter{footnote}\footnotetext{... the footnotetext ...}
\stepcounter{footnote}\footnotetext{... the next footnotetext ...}
...

n is the number of footnotes in your float, e.g. 2.

Indentation of Footnotetext

By default footnotes are indented like the following one:

----------------------------
1 This is a footnotetext with a
not so long text.
with
\usepackage[flushmargin]{footmisc}
in latex preamble you'll get no indentation:
 ----------------------------
1 This is a footnotetext with a
not so long text.
2 anotherone
The number is outside the left margin!! If you want it like
----------------------------
1 This is a footnotetext with a
not so long text.
2 anotherone
with the number inside the textarea, write in LaTeX preamble:
\makeatletter
\newlength{\myFootnoteWidth}
\newlength{\myFootnoteLabel}
\setlength{\myFootnoteLabel}{1.2em}%  <-- can be changed to any valid value
\renewcommand{\@makefntext}[1]{%
\setlength{\myFootnoteWidth}{\columnwidth}%
\noindent\makebox[\myFootnoteLabel][r]{\@makefnmark\ }%
\parbox[t]{\myFootnoteWidth}{#1}%
}
\makeatother
The package footmisc may be part of the local TeX-installation, but also available at CTAN The only problem is the thanks-footnote on the title-page. latex resets the footmisc-settings, so that this footnote has the indentation. With the package myThanks you can suppress this too. Put this stylefile anywhere in your latex tree and run texhash.

Footnote at the bottom of the page

Sometimes the footnotes don't appear at the bottom of the page. Than you have to use the footmisc-package:
in latex preamble

\usepackage[bottom]{footmisc}
The package footmisc may be part of the local TeX-installation, but also available at CTAN

space between text and footnote
\makeatletter
\renewcommand\footnoterule{%
\vspace{1em}%   <-- one line space between text and footnoterule
\kern-3\p@\hrule\@width.4\columnwidth%
\kern2.6\p@}
\makeatother
in latex preamble

Endnotes
Package endnotes for end-footnotes. it should be part of the installed LaTeX or available at CTAN.
%  To turn all the footnotes in your documents into endnotes, say
%
%     \let\footnote=\endnote
%
%
%     \newpage
%     \begingroup
%     \parindent 0pt
%     \parskip 2ex
%     \def\enotesize{\normalsize}
%     \theendnotes
%     \endgroup
%
% as the last thing in your document (just at the place for the endnotes).
By default the caption for the endnotes is "Notes". You can change this with
\renewcommand\notesname{your language specific notesname}
This command has to placed behind the \usepackage{endnotes}!
• local time: Sat Aug 24 02:12:36 CEST 2019 ; file is: 56.1777777777778 days old
contact webmaster _at_ TeXnik.de