diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/examples/ex0004.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/examples/ex0004.tex | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/examples/ex0004.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/examples/ex0004.tex new file mode 100644 index 00000000000..88f7f3a5d99 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/examples/ex0004.tex @@ -0,0 +1,60 @@ +\documentclass[ngerman,a4paper]{scrartcl} +\usepackage[latin1]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{mathptmx} +\usepackage[scaled=.92]{helvet} +\usepackage{courier} +\renewcommand*{\familydefault}{phv} +\usepackage[left=25mm,top=25mm,bottom=10mm,right=10mm]{geometry} +\usepackage{fancyhdr} +\lhead{ABC, Inc.}\chead{}\rhead{XYZ Dept.} +\lfoot{}\cfoot{}\rfoot{} +\pagestyle{fancy} +\usepackage{graphicx} +\usepackage{color} +\usepackage[ + pdftex,a4paper=true,colorlinks=true, + pdftitle={Key form},pdfsubject={Key}, + pdfauthor={ich},pdfpagemode=UseNone,pdfstartview=FitH, + pagebackref,pdfhighlight={/N} +]{hyperref} +\newcommand{\textforlabel}[2]{% +\TextField[name={#1},value={#2},width=7em,% +align=2,bordercolor={1 1 1},readonly=true]{}% +} +\begin{document} +\section*{Request for a key} +\begin{Form} +\begin{tabular}{|rl|} +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Employee}}\\ +&\\*[-0.9em]\textforlabel{vn}{First name:}&% +\TextField[name=vorname,width=20em]{}\\ +&\\*[-0.9em]\textforlabel{nn}{Name:}&% +\TextField[name=name,width=20em]{}\\ +&\\*[-0.9em]\textforlabel{ab}{Department:}&% +\ChoiceMenu[name=abt,width=20em,popdown=true,value=v]{}{% +Sales=v,Production=f,Service=s}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Time}}\\ +&\\*[-0.9em]\textforlabel{z}{Time:}&% +\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u]{}{% +unlimited=u,limited=b}\\ +&\\*[-0.9em]\textforlabel{v}{from:}&% +\TextField[name=from,width=10em]{}\\ +&\\*[-0.9em]\textforlabel{b}{until:}&% +\TextField[name=until,width=10em]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Doors}}\\ +&\\*[-0.9em]\textforlabel{th}{Front door:}&% +\CheckBox[name=ht,width=1.2em]{}\\ +&\\*[-0.9em]\textforlabel{t1}{Ground floor:}&% +\CheckBox[name=e1,width=1.2em]{}\\ +&\\*[-0.9em]\textforlabel{t2}{First floor:}&% +\CheckBox[name=e2,width=1.2em]{}\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} |