Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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} 
share|improve this question
    
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 '13 at 21:22

1 Answer 1

up vote 8 down vote accepted

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}
share|improve this answer
    
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 '13 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 –  David Carlisle Mar 8 '13 at 14:20
    
Unfortunately the \beginR command seems to be ignored as well, it produces the same result. –  Tonton80 Mar 8 '13 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:-) –  David Carlisle Mar 8 '13 at 14:54
    
I just put an example in the question. Thanks –  Tonton80 Mar 9 '13 at 1:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.