summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/photo/photo_test.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-09 00:44:40 +0000
committerKarl Berry <karl@freefriends.org>2006-01-09 00:44:40 +0000
commitb4fc5f639874db951177ec539299d20908adb654 (patch)
tree52f08823ca58fffe3db6a9b075635038c567626c /Master/texmf-dist/doc/latex/photo/photo_test.tex
parentdec3d98ebe442d7ea93efbaa8dd2e2be8149a467 (diff)
doc 4
git-svn-id: svn://tug.org/texlive/trunk@80 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/photo/photo_test.tex')
-rw-r--r--Master/texmf-dist/doc/latex/photo/photo_test.tex123
1 files changed, 123 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/photo/photo_test.tex b/Master/texmf-dist/doc/latex/photo/photo_test.tex
new file mode 100644
index 00000000000..843bebd57d8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/photo/photo_test.tex
@@ -0,0 +1,123 @@
+\documentclass{article}
+
+%\let\oldpageref\pageref
+\usepackage[english,german]{babel}
+%\let\pageref\oldpageref
+
+\usepackage[
+ shortlop,
+ under,
+ % side,
+ % top,
+ % center,
+ % bottom,
+ ]{photo}
+\oecaptionsep 2mm
+
+\usepackage{vmargin}
+\setmargins{30mm}{15mm}{150mm}{250mm}{10pt}{5mm}{}{10mm}
+\columnsep 5mm
+
+\parindent 0em
+\parskip 3ex
+
+\fboxsep 0mm
+\fboxrule 1pt
+
+\newcommand\captext{
+abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc
+}
+\newcommand\capt{
+abc abc abc abc abc abc abc
+}
+\newcommand\ph[1]{%
+ %\fbox{\parbox{#1}{\rule[-0mm]{0mm}{0mm}}}%
+ \fbox{\parbox{#1}{\leavevmode Mg\vrule width 0mm height 05mm depth 011mm}}%
+}
+
+
+\begin{document}
+
+\rule{\textwidth}{2mm}
+
+\listofphotos
+
+\newpage
+\rule{\textwidth}{1mm}
+
+\putphoto[l]{label1}{grapher}{\ph{0.8\textwidth}}{placement left. \captext}
+
+\putphoto[r]{label2}{grapher}{\ph{0.8\textwidth}}{placement right. \captext}
+
+\putphoto[i]{}{photographer}{\ph{0.8\textwidth}}{placement inside. \captext}
+
+\putphoto[o]{}{photographer}{\ph{0.8\textwidth}}{placement outside. \captext}
+
+\putphoto[o]{}{photographer}{\ph{0.8\textwidth}}{placement outside. \capt}
+
+\newpage
+\rule{\textwidth}{1mm}
+
+\putphoto[ot]{}{photographer}{\ph{70mm}}{placement outside. t caption. \capt}
+
+\putphoto[oc]{}{photographer}{\ph{70mm}}{placement outside. c caption. \capt}
+
+\putphoto[oc]{}{photographer}{\ph{70mm}}{placement outside. short c caption.}
+
+\putphoto[ob]{}{photographer}{\ph{70mm}}{placement outside. b caption. \capt}
+
+\putphoto[itu]{}{photographer}{\ph{70mm}}{placement inside. t caption. u. \capt}
+
+\putphoto[icu]{}{photographer}{\ph{70mm}}{placement inside. c caption. u. \capt}
+
+\putphoto[icu]{}{photographer}{\ph{70mm}}{inside. short c caption. u.}
+
+\putphoto[ibu]{}{photographer}{\ph{70mm}}{placement inside. b caption. u. \capt}
+
+\newpage
+\rule{\textwidth}{1mm}
+
+\putphoto[lst]{}{photographer}{\ph{70mm}}{photo l. t caption. taker s. \capt}
+
+\putphoto[lsc]{}{photographer}{\ph{70mm}}{photo l. c caption. taker s. \capt}
+
+\putphoto[lsc]{}{photographer}{\ph{70mm}}{photo l. c caption. taker s.}
+
+\putphoto[lsb]{}{photographer}{\ph{70mm}}{photo l. b caption. taker s. \capt
+\label{ph:photo}}
+
+\putphoto[rst]{}{photographer}{\ph{70mm}}{photo r. t caption. taker s. \capt}
+
+\putphoto[rsc]{}{photographer}{\ph{70mm}}{photo r. c caption. taker s. \capt}
+
+\putphoto[rsc]{}{photographer}{\ph{70mm}}{photo r. c caption. taker s.}
+
+\putphoto[rsb]{}{photographer}{\ph{70mm}}{photo r. b caption. taker s. \capt}
+
+\newpage
+\rule{\textwidth}{1mm}
+
+\putphoto{}{photographer}{\ph{70mm}}{defaults.}
+
+\putphoto{}{photographer}{\ph{70mm}}[lop caption]{lop cap, defaults.}
+
+%\clearpage % will start a new page and put floats there
+\defaultphotoplacement{hb} % will put floats "here"
+% everything else will mix up order of floats with fixed placements!!
+
+\begin{Photo}[i]{}{phogr}{Photo environment. i. caption for this.}
+\ph{70mm}
+\end{Photo}
+
+\begin{Photo}[i]{}{phogr}[Photo env lop cap]{Photo environment. i. caption.}
+\ph{70mm}
+\end{Photo}
+
+\putphoto{}{photographer}{\ph{70mm}}{defaults again.}
+
+\vspace{10mm}
+
+Testing cross-referencing:
+This is lower-case \phref{ph:photo}, and upper-case: \Phref{ph:photo}.
+
+\end{document}