Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. usepackage[T1]{fontenc}
  4. usepackage{lmodern}
  5. usepackage[utf8]{inputenc}
  6.  
  7. usepackage{marginnote} % Enhanced marginpar
  8. usepackage{todonotes}
  9.  
  10. %
  11. % We need to redefine marginpar.
  12. % marginpar does not work inside floats, but marginnote does.
  13. % Also todo uses marginpar internally and this way it actually uses marginnote.
  14. % See manual for marginnote and sec. 1.6.8 in the manual for todonotes.
  15. %
  16. renewcommand{marginpar}{marginnote}
  17.  
  18. begin{document}
  19.  
  20. begin{figure}[htbp]centering
  21. begin{minipage}{.5linewidth}
  22. This is a sentence with a footnote.footnote{It only serves as an example.}
  23. Now a sentence with todo{The footnote ends up in the margin.}a texttt{todo}-note follows.
  24. However, the last footnote is printed at the end of the minipagefootnote{Because it is inserted after the texttt{todo}-note.}.
  25. end{minipage}
  26. end{figure}
  27.  
  28. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement