Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage{lipsum}
- usepackage{fontspec}
- setmainfont{CMU Serif}[%
- Numbers = {OldStyle, Proportional}]
- newfontfamilyfootmarktextfont{CMU Serif}[% for footnote markers in the text
- Numbers = {Lining, Proportional}]
- usepackage{scrextend} % KOMA script for footnote marks hung left of the margin
- newcommand*footnotetextfrommargin{0em} % set distance for footnote text from the margin
- deffootnote{footnotetextfrommargin}% use distance from above
- {parindent}% paragraph indent in footnotes
- {thefootnotemark.space} % footnote marks followed by a period and space in footnote
- deffootnotemark{footmarktextfonttextsuperscript{thefootnotemark}} % use footmarktextfont for footnote markers in the text
- usepackage{xpatch}
- makeatletter
- % 1. remove all redefinitions about footnotes done by maketitle
- % and add titletrue
- renewcommandmaketitle{par
- begingroup
- renewcommandthefootnote{@fnsymbolc@footnote}%
- titletrue
- if@twocolumn
- ifnum col@number=@ne
- @maketitle
- else
- twocolumn[@maketitle]%
- fi
- else
- newpage
- global@topnumz@ % Prevents figures from going at top of page.
- @maketitle
- fi
- thispagestyle{plain}@thanks
- endgroup
- setcounter{footnote}{0}%
- globalletthanksrelax
- globalletmaketitlerelax
- globallet@maketitlerelax
- globallet@thanks@empty
- globallet@author@empty
- globallet@date@empty
- globallet@title@empty
- globallettitlerelax
- globalletauthorrelax
- globalletdaterelax
- globalletandrelax
- }
- % 2. define a conditional
- newififtitle
- % 3. redefine @makefnmark to print nothing when titletrue
- xpretocmd{@makefnmark}{iftitleelse}{}{}
- xapptocmd{@makefnmark}{fi}{}{}
- % 4. ensure @makefntext has titlefalse
- % that's justified by the fact that @makefnmark
- % in @makefntext is set in a box
- xpretocmd{@makefntext}{titlefalse}{}{}
- makeatother
- title{My paper on footnotesthanks{lipsum[4]}}
- begin{document}
- maketitle
- Afootnote{lipsum[11]}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement