在memoir
课堂上,有没有办法让\sidebar
笔记变成段落样式?我正在寻找一种fnpara
与脚注类似的效果。
我附上了一张我希望我的侧注栏看起来是什么样子的图片。
答案1
这是否接近您所寻求的?(您可能想或不想sbrefs
在\showsidebar
调用中重置计数器,就像我做的那样)
\documentclass{memoir}
\edef\sbar{}
\newcounter{sbrefs}
\setcounter{sbrefs}{0}
\newcommand\addtosidebar[1]{%
\addtocounter{sbrefs}{1}%
$^\alph{sbrefs}$%
\edef\sbar{\sbar$^\alph{sbrefs}$#1 }%
}
\newcommand\showsidebar{%
\sidebar{\sbar}%
\edef\sbar{}%
\setcounter{sbrefs}{0}%
}
\begin{document}
In the beginning, etc. God created the heaven and the earth
In the beginning, etc. God created the heaven and the earth
In the beginning, etc. God created the heaven and the earth
In the beginning, etc. God created the heaven and the earth%
\addtosidebar{Gn 1:1}
In the beginning, etc. God created the heaven and the earth
In the beginning, etc. God created the heaven and the earth%
\addtosidebar{Ex 3:2; Ex 3:16}
In the beginning, etc. God created the heaven and the earth
In the beginning, etc. God created the heaven and the earth%
\addtosidebar{Jn 3:16}
In the beginning, etc. God created the heaven and the earth
In the beginning, etc. God created the heaven and the earth%
\addtosidebar{Mt 1:17}
In the beginning, etc. God created the heaven and the earth
In the beginning, etc. God created the heaven and the earth
\showsidebar
\end{document}