5

I would like to shade the whole footnote area (bottom of the page). Does anyone know, if it can be done ?

Edit : Using the answer provided, the text direction commands \setRL and \setLR, from the Bidi package, get ignored. Here is an example :

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[a4paper,12pt]{article}
\TeXXeTstate=1


\usepackage{framed}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{bidi}
\usepackage{fontspec}
\usepackage{color}

\defaultfontfeatures{Scale=MatchLowercase}
\setmainfont{Times New Roman}
\newfontfamily{\sbl}[Script=Hebrew]{SBLHebrew}
\setmainlanguage{english}
\setotherlanguage[numerals=hebrew]{hebrew}


%colored footnotes

\def\colorftns#1{%
\nointerlineskip\hbox{\fboxsep0pt \colorbox{yellow}{\box#1}}}
\let\oldfootnoterule\footnoterule 
\def\footnoterule{\oldfootnoterule\let\unvbox\colorftns}

\begin{document}
\setRL
\H
h e b r e w t e x t   \setLR\footnote{a b c d e f} \setRL
\end{document} 
1
  • Do you mean with “shading” the boxing way as given by David or more a colour progression from background colour (e.g. white) into a different colour?
    – Speravir
    Mar 4, 2013 at 21:22

1 Answer 1

8

This removes some of the flexible space between footnotes in order to box and colour the area, but is probably OK in practice.

\documentclass{article}
\usepackage{color}


\def\colorftns#1{%
\nointerlineskip\hbox{\fboxsep0pt \colorbox{yellow}{\box#1}}}

\let\oldfootnoterule\footnoterule
\def\footnoterule{\oldfootnoterule\let\unvbox\colorftns}



\begin{document}

aaa\footnote{one two three}

aaa\footnote{four five six}

aaa\footnote{red blue green

}
\end{document}
5
  • This answer provided is working is correspond to the question, but there seems to be some conflict with the "bidi" package, as the shading also changes the orientation of the text : the \setLR command is ignored. (The document is Right-to-left, but the footnotes are Left-to right)
    – Tonton80
    Mar 8, 2013 at 14:13
  • Ah well as a workaround I guess you can put \hbox{\beginR\fboxsep0pt \colorbox{yellow}{\box#1}}\endR} ping me again if that doesn't work Mar 8, 2013 at 14:20
  • Unfortunately the \beginR command seems to be ignored as well, it produces the same result.
    – Tonton80
    Mar 8, 2013 at 14:47
  • If you can make a small bidi example and add it here or as a new question I'll try to look at the weekend (ping me in a comment if you add it here otherwise I wont see it:-) Mar 8, 2013 at 14:54
  • I just put an example in the question. Thanks
    – Tonton80
    Mar 9, 2013 at 1:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .