Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. usepackage{lipsum}
  4.  
  5. usepackage{fontspec}
  6. setmainfont{CMU Serif}[%
  7. Numbers = {OldStyle, Proportional}]
  8. newfontfamilyfootmarktextfont{CMU Serif}[% for footnote markers in the text
  9. Numbers = {Lining, Proportional}]
  10.  
  11. usepackage{scrextend} % KOMA script for footnote marks hung left of the margin
  12. newcommand*footnotetextfrommargin{0em} % set distance for footnote text from the margin
  13. deffootnote{footnotetextfrommargin}% use distance from above
  14. {parindent}% paragraph indent in footnotes
  15. {thefootnotemark.space} % footnote marks followed by a period and space in footnote
  16. deffootnotemark{footmarktextfonttextsuperscript{thefootnotemark}} % use footmarktextfont for footnote markers in the text
  17.  
  18. usepackage{xpatch}
  19. makeatletter
  20. % 1. remove all redefinitions about footnotes done by maketitle
  21. % and add titletrue
  22. renewcommandmaketitle{par
  23. begingroup
  24. renewcommandthefootnote{@fnsymbolc@footnote}%
  25. titletrue
  26. if@twocolumn
  27. ifnum col@number=@ne
  28. @maketitle
  29. else
  30. twocolumn[@maketitle]%
  31. fi
  32. else
  33. newpage
  34. global@topnumz@ % Prevents figures from going at top of page.
  35. @maketitle
  36. fi
  37. thispagestyle{plain}@thanks
  38. endgroup
  39. setcounter{footnote}{0}%
  40. globalletthanksrelax
  41. globalletmaketitlerelax
  42. globallet@maketitlerelax
  43. globallet@thanks@empty
  44. globallet@author@empty
  45. globallet@date@empty
  46. globallet@title@empty
  47. globallettitlerelax
  48. globalletauthorrelax
  49. globalletdaterelax
  50. globalletandrelax
  51. }
  52. % 2. define a conditional
  53. newififtitle
  54. % 3. redefine @makefnmark to print nothing when titletrue
  55. xpretocmd{@makefnmark}{iftitleelse}{}{}
  56. xapptocmd{@makefnmark}{fi}{}{}
  57. % 4. ensure @makefntext has titlefalse
  58. % that's justified by the fact that @makefnmark
  59. % in @makefntext is set in a box
  60. xpretocmd{@makefntext}{titlefalse}{}{}
  61. makeatother
  62.  
  63. title{My paper on footnotesthanks{lipsum[4]}}
  64.  
  65. begin{document}
  66.  
  67. maketitle
  68.  
  69. Afootnote{lipsum[11]}
  70.  
  71. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement