Advertisement
Guest User

Example of Footnote usage

a guest
Dec 16th, 2012
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 2.53 KB | None | 0 0
  1. \documentclass[twocolumn=true]{scrartcl}
  2.  
  3. \usepackage[
  4.  paperwidth=.7\textwidth,
  5.  paperheight=40\baselineskip,
  6.  margin=5pt,
  7.  bottom=1.5cm]{geometry}
  8.  
  9. %% footnotes
  10. \usepackage{fnpct}
  11. \usepackage[hang,stable]{footmisc}
  12. %% multiple footnotes
  13. \usepackage[ruled]{bigfoot}
  14. % \DeclareNewFootnote{default}
  15. \DeclareNewFootnote{B}[alph]
  16. % rule for footnote
  17. \renewcommand{\footnoterule}{\hrule height 0.5pt \vspace{5pt}}
  18. \renewcommand{\extrafootnoterule}{\hrule height 0.2pt \vspace{5pt}}
  19.  
  20. \makeatletter
  21.   \long\def\@makefntext#1{%
  22.       \bgroup
  23.       \setbox\@tempboxa\hbox{%
  24.         \ifdim\footnotemargin>0pt
  25.           \hb@xt@\footnotemargin{\@makefnmark\hss}%
  26.         \else
  27.           \@makefnmark
  28.         \fi
  29.       }%
  30.       \leftmargin\wd\@tempboxa
  31.       \rightmargin\z@
  32.       \linewidth \columnwidth
  33.       \advance \linewidth -\leftmargin
  34.       \parshape \@ne \leftmargin \linewidth
  35.       \footnotesize
  36.       \@setpar{{\@@par}}%
  37.       \leavevmode
  38.       \llap{\box\@tempboxa}%
  39.       \parskip\hangfootparskip\relax
  40.       \parindent\hangfootparindent\relax
  41.       #1\strut\par\egroup %inserted \strut\par
  42.   }
  43.  
  44. \def\FN@commonending{%
  45.   \expandafter\expandafter\expandafter
  46.   \expandafter\expandafter\expandafter\expandafter
  47.   \iffalse  \FN@specific\FN@masterinsert\@makefntext\fi
  48.   \@makefnendbox
  49.   %\ifx\FN@boxtype\vbox\@finalstrut\strutbox \else \unskip \fi
  50. %removed
  51.   \FN@colorstackfinish
  52.   \color@endgroup
  53.   \egroup
  54.   \global\advance\FN@id\@ne
  55.   \FN@slotxdef\FN@masterslot{\number\FN@id}%
  56.   \ifhbox\z@
  57.     \global\setbox\FN@tempbox\copy\z@
  58.     \setbox\tw@\@makefnvbox{\unhbox\FN@tempbox}%
  59.     \ht\z@\dimexpr\ht\tw@+\dp\tw@-\FN@masterslot sp\relax
  60.   \else
  61.     \ht\z@\dimexpr\ht\z@+\dp\z@-\FN@masterslot sp\relax
  62.   \fi
  63.   \wd\z@\dimen@
  64.   \dp\z@\FN@masterslot sp\relax
  65.   \MFL@insert\FN@masterinsert{\nointerlineskip\box\z@}%
  66.   \marks\FN@slave{\number\FN@id}%
  67.   \MFL@endminipage
  68.   \FN@colorstackegroup
  69. }
  70. \def\blfootnote{\gdef\@thefnmark{}\@footnotetext}
  71. \makeatother
  72.  
  73. \usepackage{lipsum}
  74.  
  75.  
  76. \begin{document}
  77.  
  78. Hello\footnote{This is some text in the margin that should break and everything.}
  79. World\footnoteB{And some more text that should go to the margin as well and behave like
  80. the other footnote.}. Isn't this\footnote{Some more.} beautiful\footnote{Even more...}\footnote{Additionaly: More}\footnoteB{And more of the other type}? I think\blfootnote{And now something that's just an annotation}
  81. it's really\footnote{Foo} great\footnoteB{Bar} what one can do with \LaTeX\blfootnote{A\&B}
  82.  
  83. \lipsum[1]
  84.  
  85. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement