我可以用
\setlength{\footnotemargin}{15pt}
缩进脚注。
我该如何以\thanks
同样的方式缩进?
梅威瑟:
\documentclass[11pt]{article}
\usepackage{setspace} % Allows linespacing changes (see \onehalfspace)
\usepackage{xltxtra} % For OpenType fonts
\usepackage{titlesec} % For setting Section heading font
\usepackage{titling} % For setting Title font
\usepackage{hyperref} % For hyperlinking the Table of Contents
\usepackage{adforn} % For ornaments
\usepackage[hang, flushmargin]{footmisc} % For removing the stupid footnote indents
\usepackage{easylist} % For better list environments
\usepackage{enumitem} % An alternative list environment
\begin{document}
\title{Hello World}
\author{Author Name\thanks{Thanks to the dog!}}
\date{10 September 2013}
\setlength{\footnotemargin}{15pt}
\maketitle
\onehalfspace
\input{Text.tex}
\end{document}
答案1
问题是\maketitle
,默认情况下,重新定义了用于排版脚注的命令。以下是避免重新定义的一种方法:
\documentclass[11pt]{article}
\usepackage{fontspec} % For OpenType fonts
\usepackage[hang, flushmargin]{footmisc}
\usepackage{etoolbox} % modify commands and many other things
\makeatletter
%%% We don't want to redefine \@makefntext
\patchcmd\maketitle{\@makefntext}{\@@@ddt}{}{}
%%% We don't want to have \rlap around the footnote mark
\patchcmd\maketitle{\rlap}{\mbox}{}{}
\makeatother
%%%% hyperref should be last
\usepackage{hyperref} % For hyperlinking the Table of Contents
%%%% lipsum just for the example
\usepackage{lipsum}
\begin{document}
\title{Hello World}
\author{Author Name\thanks{Thanks to the dog!}}
\date{10 September 2013}
\maketitle
A\footnote{xyz}\lipsum
\end{document}
我删除了不必要的包。请注意,您应该调用fontspec
而不是xltxtra
。以前是反过来的,但很久以前就已如此,并且fontspec
从那时起已经有所改进。