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.

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

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

Try this:
  1. \documentclass{article}
  2. \usepackage[hang]{footmisc}
  3. \renewcommand{\hangfootparindent}{2em}% Indentation for 2nd etc. paragraphs in footnotes which cosists of more than one paragraph
  4. \renewcommand{\hangfootparskip}{3pt}% Vertical space between paragraphs in multiparagraph footnotes
  5. \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
  6. \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
  7.  
  8. \begin{document}
  9.  
  10. 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}
  11. 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
  12.  
  13. 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}
  14. 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}
  15. 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}
  16. 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}
  17. 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}
  18. 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}
  19. 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}
  20. 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}
  21. 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}
  22. 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}
  23. \end{document}

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

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

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 6 guests