-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhssa-reledmac.sty
More file actions
52 lines (50 loc) · 1.96 KB
/
Copy pathhssa-reledmac.sty
File metadata and controls
52 lines (50 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% \section{\texttt{hssa-reledmac.sty}: critical edition and footnote column
%macros}
% This code is in the file \verb|hssa-reledmac.sty|.
% \subsection{Two-column footnote formatting}
% With help from \href{https://doi.org/10.5281/zenodo.6471660}{EDMAC} and
%\href{https://tex.stackexchange.com/questions/134937/split-latex-footnotes-into-two-columns}{Stackexchange}.
% \begin{macrocode}
\usepackage[
%nocritical,
noend,
%noeledsec,
%noledgroup,
series={A, B, C, D, E, F, G, H, I}]{reledmac}
\usepackage{setspace}
%\let\footnoteruleA=\relax % do we want a footnoterule?
\def\thempfootnote{{\itshape\@alph\c@mpfootnote}} % from latex.ltx
\arrangementX[A]{twocol}
\arrangementX[B]{twocol} % for occasional use in the \verb|miniedition|
%environment
\colalignX{\relax } % looks better. But should we optimize narrow columns
%by going \verb"\raggedright"?
\beforenotesX{2em plus 1.5em minus 1.5em} % spacing above notes
\renewcommand*{\normalfootfootmarkX}[1]{%
\@nameuse{@thefnmark#1}\hspace*{.5em}}
% \end{macrocode}
%
% \begin{macro}{\footnote}
% \verb"\footnote" is not going to be the standard \LaTeX\ footnote.
% So store the standard version. Then restore the standard \verb"\footnote"
% when inside \verb"minipage" environment.
%
% Finally, make the command \verb"\footnote" into the reledmac two-column command.
%
% \begin{macrocode}
\let\originalfootnote=\footnote % store this for use in minipages
\def\@minipagerestore{\let\footnote\originalfootnote
\let\var\originalfootnote} % restore standard
% \footnote inside minipages and miniedition environment, and
% create the shorthand \verb|\variant|
% Now change \verb"\footnote" to the reledmac version:
\let\footnote=\footnoteA
% \end{macrocode}
% \end{macro}
%
%\href{https://tex.stackexchange.com/questions/93763/eledmac-and-two-column-footnotes}
%{Stackexchange help}.
% Commented out, but useful in some tight situations:
% \begin{macrocode}
% \usepackage{microtype}
% \end{macrocode}