我发现如果我\usepackage[para]{footmisc}
在序言中使用,所有的脚注都会以水平(段落)方式显示——这正是我有时想要的。
另一方面,如果我\usepackage{footmisc}
在序言中使用,那么所有的脚注都会以标准垂直方式划定——这有时正是我在处理的文档中想要的。
然而,我还不知道如何在两种类型的脚注之间切换,因为当然,脚注\usepackage
必须只出现在序言中。
请考虑 MWE:
\documentclass{article}
\usepackage[para]{footmisc}
%\usepackage{footmisc}
\begin{document}
A sentence.\footnote{Footnote.}
A sentence.\footnote{Another footnote.}
\vskip 15pt
Now I would like to switch to vertically displayed footnotes.\footnote{This is a longer footnote and so I would like to display it in the standard (vertical) manner.}
\vskip 10pt
Similarly,\footnote{This is another long footnote and would like to present it in a vertical manner.}
\vskip 10pt
Another sentence.\footnote{And I would like to be able to switch back to paragraph footnotes if I should encounter a series of short footnotes within the same document.}
\end{document}
显示脚注:
看来我想做的事情应该可以简单地完成,但我不知道该怎么做。非常感谢您的帮助。
谢谢。
答案1
该类( 、和memoir
的超集)提供了多种脚注样式。book
report
article
% footnoteprob2.tex SE 584269
\documentclass[article]{memoir}
%\documentclass{article}
%\usepackage[para]{footmisc}
%\usepackage{footmisc}
\begin{document}
\paragraphfootnotes
A sentence.\footnote{Footnote.}
A sentence.\footnote{Another footnote.}
\vskip 15pt
\plainfootnotes
Now I would like to switch to vertically displayed footnotes.\footnote{This is a longer footnote and so I would like to display it in the standard (vertical) manner.}
\vskip 10pt
Similarly,\footnote{This is another long footnote and would like to present it in a vertical manner.}
\vskip 10pt
\paragraphfootnotes
Another sentence.\footnote{And I would like to be able to switch back to paragraph footnotes if I should encounter a series of short footnotes within the same document.}
\end{document}
几个潜在的问题。如果页面上有多种脚注样式,则可能会出现奇怪的效果,如图所示。该memoir
article
选项假定为\chapter
等,但将\chapter
其视为\section
。
答案2
我认为,这很好用。 notes 命令前必须有一个空格。
\documentclass{article}
\usepackage[para]{footmisc}
\usepackage[utf8]{inputenc}
\makeatletter
\def\blfootnote{\gdef\@thefnmark{}\@footnotetext}
\makeatother
\newcommand{\vertical}[1]{\blfootnote{-----\hfill}\hskip-0.3em\footnote{\vtop{#1\vskip\baselineskip}\hfill }}
\newcommand{\horizontal}[1]{\hskip-0.3em\footnote{#1}\hskip0.2em}
\begin{document}
In diesem Text \horizontal{Erste horizontale Fußnote} sind Fußnoten enthalten, Er soll zeigen, wie horizontale \horizontal{Zweite horizontale Fußnote} und vertikale Fußnoten gleichzeitig \horizontal{Dritte horizontale Fußnote} verwirklicht \horizontal{Vierte horizontale Fußnote}werden können\horizontal{Fünfte horizontale Fußnote}.
Hier kommt jetzt eine vertikale Fußnote dazu \vertical{Erste vertikale Fußnote}. Dann geht es im Text weiter und man wird sehen, wie sich alles entwickelt \vertical{Zweite vertikale Fußnote}. Gibt es noch Probleme, so soll man sie lösen \vertical{Dritte vertikale Fußnote}\dots
In diesem Text \horizontal{Horizontale Fußnote} sind Fußnoten enthalten, Er soll zeigen, wie horizontale \horizontal{Horizontale Fußnote} und vertikale Fußnoten gleichzeitig \horizontal{Horizontale Fußnote} verwirklicht \horizontal{Horizontale Fußnote}werden können\horizontal{Horizontale Fußnote}.\vertical{Vierte vertikale Fußnote}
\end{document}
答案3
\documentclass{article}
\usepackage[para]{footmisc}
\usepackage[utf8]{inputenc}
\makeatletter
\def\blfootnote{\gdef\@thefnmark{}\@footnotetext}
\makeatother
\newcommand{\vertical}[1]{\blfootnote{\hskip1em\hfill}\hskip-0.3em\footnote{\vtop {#1\vskip\baselineskip}\hfill }}
\newcommand{\horizontal}[1]{\hskip-0.3em\footnote{#1}\hskip0.2em}
\newcommand{\paranote}[2]{\ifnum #1=1 \horizontal{#2}\fi\ifnum #1=2 \vertical{#2}\fi}
\begin{document}
A sentence.\paranote{1}{Footnote.}
A sentence.\paranote{1}{Another footnote.}
Now I would like to switch to vertically displayed footnotes.\paranote{2}{This is a longer footnote and so I would like to display it in the standard (vertical) manner.}
Similarly,\paranote{2}{This is another long footnote and would like to present it in a vertical manner.}
\vskip 10pt
Another sentence.\paranote{1}{And I would like to be able to switch back to paragraph footnotes if I should encounter a series of short footnotes within the same document.}
Another sentence.\paranote{1}{And I would like to be able to switch back to paragraph footnotes if I should encounter a series of short footnotes within the same document.}
\end{document}
输出结果如下: