| 1 |
\documentclass{article} |
| 2 |
\usepackage{lipsum} |
| 3 |
\usepackage{bidi-atbegshi} |
| 4 |
\usepackage{bidi} |
| 5 |
\setbox0\hbox{\Huge\textbf{Upper Left}} |
| 6 |
\setbox1\hbox{\Huge\textbf{Upper Right}} |
| 7 |
\setbox2\hbox{\Huge\textbf{Lower Left}} |
| 8 |
\setbox3\hbox{\Huge\textbf{Lower Right}} |
| 9 |
\AtBeginShipout{% |
| 10 |
\AtBeginShipoutUpperLeftForeground{% |
| 11 |
\put(0,-\ht0){\usebox0} |
| 12 |
} |
| 13 |
\AtBeginShipoutUpperRightForeground{% |
| 14 |
\put(-\wd1,-\ht1){\usebox1} |
| 15 |
} |
| 16 |
\AtBeginShipoutLowerLeftForeground{% |
| 17 |
\put(0,\dp2){\usebox2} |
| 18 |
} |
| 19 |
\AtBeginShipoutLowerRightForeground{% |
| 20 |
\put(-\wd3,\dp3){\usebox3} |
| 21 |
} |
| 22 |
} |
| 23 |
\begin{document} |
| 24 |
\lipsum |
| 25 |
\end{document} |