I'm working on a set of documents in Hebrew. My general workflow is I type reStructuredText, run it through rst2xetex
and then typeset with XeLaTeX. What I can't figure out how to do is create a two-column document with paragraph footnotes or twocolumn footnotes. The closest approximation is using the twocolumn
class option, but I really don't like the way the columns are done like two separate pages. I want the columns to be aligned at the bottom, as the multicol
package does, and the footnotes to flow from first column to second column.
If it's possible to do this with memoir
that would be fantastic, but so far I haven't much luck with that as it doesn't seem to play nice with hyperref
, on which rst2xetex relies heavily. I tried 'disabling' hyperref following docutils instructions, as I don't need it, but I still get errors in the xetex output.
Here is the basic template, with a few comments removed:
\documentclass[a4paper,12pt]{article}
% generated by Docutils <http://docutils.sourceforge.net/>
% rubber: set program xelatex
\usepackage[no-sscript]{xltxtra} % loads fixltx2e, metalogo, xunicode, fontspec
\defaultfontfeatures{Scale=MatchLowercase}
\usepackage{ifthen}
\setmainfont[AutoFakeBold=2]{SBL Hebrew}
%%% Fallback definitions for Docutils-specific commands
% numeric or symbol footnotes with hyperlinks
\providecommand*{\DUfootnotemark}[3]{%
\raisebox{1em}{\hypertarget{#1}{}}%
\hyperlink{#2}{\textsuperscript{#3}}%
}
\providecommand{\DUfootnotetext}[4]{%
\begingroup%
\renewcommand{\thefootnote}{%
\protect\raisebox{1em}{\protect\hypertarget{#1}{}}%
\protect\hyperlink{#2}{#3}}%
\footnotetext{#4}%
\endgroup%
}
% hyperlinks:
\ifthenelse{\isundefined{\hypersetup}}{
\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
\urlstyle{same} % normal text font (alternatives: tt, rm, sf)
}{}
\usepackage[rldocument,extrafootnotefeatures]{bidi}
\RTLcolumnfootnotes
\twocolumnfootnotes
%%% Body
\begin{document}
\section*{\phantomsection%
איך עושים את זה%
\addcontentsline{toc}{section}{איך עושים את זה}%
\label{id1}%
}
טיפול מיתולוגיה מדע או, מה אודות המלחמה עוד. נבחרים איטליה טכנולוגיה זכר
בה, או רבה\DUfootnotemark{id2}{id5}{1} שנורו יידיש למחיקה
<-- etc. -->
%
\DUfootnotetext{id5}{id2}{1}{%
ציון א
}
\end{document}
% vim: set ft=tex: %
If I add multicol
and wrap the main part of the document in a multicols
environment, the footnotes end up in two columns under the left column only, unless I take out the extrafootnotefeatures. Then I have an attractive two columns on top but only one column of footnotes on the bottom!
\setRTLparagraphfootnotes
? If you use it, you see that paragraph footnotes suffer for the same reason (all footnotes end up in left column).