LaTeX forum ⇒ Text Formattingspace between footnote mark and text

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
onewiki
Posts: 10
Joined: Mon Nov 16, 2009 4:54 am

space between footnote mark and text

Postby onewiki » Tue Nov 17, 2009 5:19 pm

Hello,

could somebody please help me to get the following formatting for
footnotes (as required by the publisher):

1. The footnote text should start at a fixed place relative to the
left margin (equivalent to inserting a tab in MS Word). Thus the space
following the number 10 should be smaller than the space following 9
so that the text starts at the same place.

2. The footnote mark should start from the left margin (no indent).

3. The second line of the footnote text should also start from the left margin.

I tried \usepackage[flushmargin]{footmisc}. It gets #1 and #3, not #2.
Also tried \usepackage[hang]{footmisc}. It gets #1&2, but not #3. The same for \usepackage[flushmargin,hang]{footmisc}.

The document class is article. Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

space between footnote mark and text

Postby meho_r » Tue Nov 17, 2009 6:37 pm

Try this:
\documentclass{article}
\usepackage[hang]{footmisc}
\renewcommand{\hangfootparindent}{2em}% Indentation for 2nd etc. paragraphs in footnotes which cosists of more than one paragraph
\renewcommand{\hangfootparskip}{3pt}% Vertical space between paragraphs in multiparagraph footnotes
\renewcommand{\footnotemargin}{0.00001pt}% Setting left margin; this is the smallest value I can get to have second etc. lines indented to footnote number; zero put indentation to some positive value, and negative values do not help actually
\renewcommand{\footnotelayout}{\hspace{2em}}% Here you can modify the spacing between the footnote number and the text of footnote; keep this value and \hangfootparindent value the same

\begin{document}

Test\footnote{Test test test test test test test test test test test test test test test test test test test test test test test test test}
test\footnote{Test test test test test test test test test test test test test test test test test test test test test test test test test

Test test test test test test test test test test test test test test test test test test test test test test test test test}
test\footnote{Test test test test test test test test test test test test test test test test test test test test test test test test test}
test\footnote{Test test test test test test test test test test test test test test test test test test test test test test test test test}
test\footnote{Test test test test test test test test test test test test test test test test test test test test test test test test test}
test\footnote{Test test test test test test test test test test test test test test test test test test test test test test test test test}
test\footnote{Test test test test test test test test test test test test test test test test test test test test test test test test test}
test\footnote{Test test test test test test test test test test test test test test test test test test test test test test test test test}
test\footnote{Test test test test test test test test test test test test test test test test test test test test test test test test test}
test\footnote{Test test test test test test test test test test test test test test test test test test test test test test test test test}
test\footnote{Test test test test test test test test test test test test test test test test test test test test test test test test test}
\end{document}

onewiki
Posts: 10
Joined: Mon Nov 16, 2009 4:54 am

Re: space between footnote mark and text

Postby onewiki » Tue Nov 17, 2009 7:07 pm

It works! Thanks a lot.

I made a small change of the code. Instead of \renewcommand, I use \newcommand. Otherwise it works like a charm.

I have one more question though, out of curiosity, what is the difference between \renewcommand{\footnotemargin}{0.00001pt} and \renewcommand{\footnotemargin}{0pt}. If I use the later, the second line of the footnote text does not line up well.

meho_r, thank you very much.

User avatar
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

space between footnote mark and text

Postby meho_r » Tue Nov 17, 2009 7:29 pm

onewiki wrote:...
I have one more question though, out of curiosity, what is the difference between \renewcommand{\footnotemargin}{0.00001pt} and \renewcommand{\footnotemargin}{0pt}. If I use the later, the second line of the footnote text does not line up well.
...

I really can't tell why this behaviour, sorry.


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 11 guests