When there is only one footnote, no problem, because there’s nothing to align. Two or more and we have problems.
Code: Select all
Code, edit and compile here:
\documentclass{scrartcl}\usepackage[english,french]{babel}\usepackage{enumerate}\usepackage{parcolumns} % needed to get two columns without breaking \begin{enumerate}\usepackage{footmisc} % needed to reuse footnotes with labels & references\usepackage{pgf} % needed for math calclations\usepackage{lipsum}% \bilingual constructs two columns, one for each language, and keeps% the paragraphs parallel. The “parcolumns” pkg was favored over the% “parallel” and “paracol” pkgs because /enumerate/ environments are% possible without messing up the vertical line that divides the two% columns.%% Left col → French% Right col → English%% syntax:% \bilingual{<French text>}{<English test>}%\newcommand{\bilingual}[2]{%\colchunk{\selectlanguage{french}#1}%\colchunk{\selectlanguage{english}#2}%\colplacechunks}\newlength{\padding}% bilingual footnote syntax:% \bilingualfn{<tag>}{<French text>}{<English test>}%% BUG: \pgfmathsetlength does not correctly calculate \padding\newcommand{\bilingualfn}[3]{%\addtocounter{footnote}{1}%\pgfmathsetlength{\padding}{0.5\textwidth-width("#2")}%\footnotetext{%\emph{(fr)}~\selectlanguage{french}#2\selectlanguage{english}%\hspace{\padding}\arabic{footnote}.%\emph{(en)}~#3\label{#1}}%}