diff options
Diffstat (limited to 'Master/texmf-dist/doc/xelatex/bidi-atbegshi/test-foreground-RTL.tex')
-rw-r--r-- | Master/texmf-dist/doc/xelatex/bidi-atbegshi/test-foreground-RTL.tex | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/xelatex/bidi-atbegshi/test-foreground-RTL.tex b/Master/texmf-dist/doc/xelatex/bidi-atbegshi/test-foreground-RTL.tex new file mode 100644 index 00000000000..4a8d9d3597d --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/bidi-atbegshi/test-foreground-RTL.tex @@ -0,0 +1,25 @@ +\documentclass{article} +\usepackage{lipsum} +\usepackage{bidi-atbegshi} +\usepackage[RTLdocument]{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{% +\AtBeginShipoutUpperRightForeground{% +\put(0,\LengthToUnit{-\ht1}){\usebox1} +}% +\AtBeginShipoutUpperLeftForeground{% +\put(\LengthToUnit{-\wd0},\LengthToUnit{-\ht0}){\usebox0} +}% +\AtBeginShipoutLowerRightForeground{% +\put(0,\LengthToUnit{\dp3}){\usebox3} +}% +\AtBeginShipoutLowerLeftForeground{% +\put(\LengthToUnit{-\wd2},\LengthToUnit{\dp2}){\usebox2} +}% +} +\begin{document} +\lipsum +\end{document}
\ No newline at end of file |