summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex/bidi-atbegshi/test-LTR.tex
blob: 04c773f6e54540bb97dd72bd5c0cd14404b4555c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
\documentclass{article}
\usepackage{lipsum}
\usepackage{bidi-atbegshi}
\usepackage{bidi}
\setbox0\hbox{\Huge\textbf{Upper Left}}
\setbox1\hbox{\Huge\textbf{Upper Right}}
\setbox2\hbox{\Huge\textbf{Lower Left}}
\setbox3\hbox{\Huge\textbf{Lower Right}}
\AtBeginShipout{%
\AtBeginShipoutUpperLeft{%
\put(0,-\ht0){\usebox0}
}
\AtBeginShipoutUpperRight{%
\put(-\wd1,-\ht1){\usebox1}
}
\AtBeginShipoutLowerLeft{%
\put(0,\dp2){\usebox2}
}
\AtBeginShipoutLowerRight{%
\put(-\wd3,\dp3){\usebox3}
}
}
\begin{document}
\lipsum
\end{document}